I used these instructions on Elementary OS (0.4 Loki). I think they installed correctly, but I could never see the MonoGame templates in MonoDevelop.
Did you launch “MonoDevelop” or “MonoDevelop Stable”, the second one is the correct one to launch. I probably should have mentioned that in the instructions.
Yeah, I actually tried both, and I couldn’t see the templates in either.
When you run monogame-sdk.run do you get [Found] for MonoDevelop 6?
Also, I tried running these instructions on a fresh Lubuntu virtual machine, and got these errors when I tried to launch monodevelop-stable
:
ERROR [2017-04-01 13:41:21Z]: Failed to redirect output to log file
System.UnauthorizedAccessException: Access to the path "/home/josh/.cache/MonoDevelop-6.0/Logs" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00070] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in <f712f98eb8e445c8918edaf595bbe465>:0
at MonoDevelop.Core.LoggingService.RedirectOutputToFileUnix () [0x00012] in <ecded49933f54915a63b93f09319c157>:0
at MonoDevelop.Core.LoggingService.RedirectOutputToLogFile () [0x00019] in <ecded49933f54915a63b93f09319c157>:0
INFO [2017-04-01 13:41:22Z]: Starting MonoDevelop 6.2
INFO [2017-04-01 13:41:22Z]: Running on Mono 4.8.0 (Stable 4.8.0.520/8f6d0f6 Wed Mar 15 16:18:35 UTC 2017) (64-bit)
INFO [2017-04-01 13:41:22Z]: Operating System: Linux
Linux lubvm 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
INFO [2017-04-01 13:41:22Z]: Using GTK+ 2.24.30
System.UnauthorizedAccessException: Access to the path "/home/josh/.cache/MonoDevelop-6.0/addin-db-002/hosts/MonoDevelop.addins" is denied.
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x00022] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00061] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f712f98eb8e445c8918edaf595bbe465>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string)
at Mono.Addins.AddinRegistry.CreateHostAddinsFile (System.String hostFile) [0x00142] in <bd16ebf525e04bea9f1e0907860e61de>:0
at Mono.Addins.AddinEngine.Initialize (System.Reflection.Assembly startupAsm, System.String configDir, System.String addinsDir, System.String databaseDir) [0x0009f] in <bd16ebf525e04bea9f1e0907860e61de>:0
at Mono.Addins.AddinManager.Initialize (System.String configDir, System.String addinsDir, System.String databaseDir) [0x0001e] in <bd16ebf525e04bea9f1e0907860e61de>:0
at MonoDevelop.Core.Runtime.Initialize (System.Boolean updateAddinRegistry) [0x00110] in <ecded49933f54915a63b93f09319c157>:0
INFO [2017-04-01 13:41:23Z]: GTK: Using Gtk theme from /usr/share/themes/Lubuntu-default
Starting MonoDevelop
FATAL ERROR [2017-04-01 13:41:23Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC.
System.InvalidOperationException: Add-in engine not initialized.
at Mono.Addins.AddinEngine.CheckInitialized () [0x0000c] in <bd16ebf525e04bea9f1e0907860e61de>:0
at Mono.Addins.AddinManager.GetExtensionObjects (System.String path) [0x00006] in <bd16ebf525e04bea9f1e0907860e61de>:0
at MonoDevelop.Ide.DesktopService.Initialize () [0x00010] in <8e60aa0560c44ca69e4f561f2f540933>:0
at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00332] in <8e60aa0560c44ca69e4f561f2f540933>:0
at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000ab] in <8e60aa0560c44ca69e4f561f2f540933>:0
In MonoDevelop, go Tools
> Addins
, check if you have Game Development
> MonoGame Addin
, maybe the addin got disabled for you for some reason. If it doesn’t exist, install it from Gallery
tab.
Well, now I’m having trouble just getting monodevelop-stable
to launch. I’m getting the errors mentioned above.
Sorry, did not see that while I was writing my comment… anyway System.UnauthorizedAccessException
for both the config and log folders is what seems to be causing the crash… not sure why MD can’t get access to those folders… you might want to check the permissions on the folders manually.
So, I ran these two things (on the virtual machine):
sudo chown -R josh ~
sudo chmod -R 777 ~
But I still didn’t have any luck. Any other suggestions?
If you are not paranoid about something like teamviewer I can try to fix it for you…
Can I DM you somehow?
For some reason, I hit a weird limit on replies in the DM. But no, it didn’t work. I did sudo apt-get update
and sudo apt-get install monodevelop
, but monodevelop-stable
still won’t launch.
Well turns out there is a bug with MG installer because it’s launching mdtool with root privileges… solution was to delete .config/MonoDevelop-6.0 and .cache/MonoDevelop-6.0 folders.
Hi, I am trying to follow along with this guide but I cannot launch Monodevelop Stable after installation. When I try to launch the program there is no response; nothing opens, no error messages show, absolutely nothing. If I try to run the monodevelop-stable file from terminal I get the following output:
Starting MonoDevelop
FATAL ERROR [2017-05-03 12:11:59Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC.
System.InvalidOperationException: Add-in engine not initialized.
at Mono.Addins.AddinEngine.CheckInitialized () [0x0000c] in <bd16ebf525e04bea9f1e0907860e61de>:0
at Mono.Addins.AddinManager.GetExtensionObjects (System.String path) [0x00006] in <bd16ebf525e04bea9f1e0907860e61de>:0
at MonoDevelop.Ide.DesktopService.Initialize () [0x00010] in <8e60aa0560c44ca69e4f561f2f540933>:0
at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00332] in <8e60aa0560c44ca69e4f561f2f540933>:0
at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000ab] in <8e60aa0560c44ca69e4f561f2f540933>:0
I definitely have gtk-sharp installed, but I don’t know what the Add-in engine it mentions is. Can anybody help me get around this issue? Not much of a point in having monogame if I can’t even start an IDE to use it with.
Thanks
What Linux distro and version are you running?
Thanks for the fast reply. I am running GalliumOS 2.1 on an Acer Chromebook 15 (Broadwell).
When I have access to my machine again (on my phone now) I might try building directly from the source code.
I tried to use your monodevelop install script but it returns an error:
./monodevelop-6.2.0.1778-1.run: 1: eval: ./postinstall.sh: Permission denied
It’s trying to open a script wich not ever exist. What should postinstall.sh be? Have I to third party download it?
postinstall scrip does exist, the .run installers are just self extracting archives that run a script from a temp dir, tho it seems that for some reason it does not get extracted with executable permissions… what distro are you using?
what distro are you using?
Linux Mint 18 (KDE edition). It’s based on Ubuntu 16.04.
Thks for the fast answer.