Trying to install MonoDevelop from sourde on Ubuntu 14.04 trusty

I am using this guide:
http://www.davidloo.com/?p=479

When I get to the 'sudo make' part, I get the error output:
nuget restore
/bin/bash: nuget: command not found
make[2]: *** [restore-packages] Error 127
make[2]: Leaving directory `/tmp/mono/monodevelop/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mono/monodevelop/main'
make: *** [all-recursive] Error 1

Open in new window


I tried installing the nuget plugin in my existing MonoDevelop installation, but that doesn't help.

I am trying to avoid another error by installing the newest version of Monodevelop from source. It is this one when I create a MVC3 project:
System.IO.FileNotFoundException: Could not find file "/usr/lib/monodevelop/AddIns/MonoDevelop.AspNet.Mvc/Templates/Common/Index.cshtml".
File name: '/usr/lib/monodevelop/AddIns/MonoDevelop.AspNet.Mvc/Templates/Common/Index.cshtml'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at System.IO.File.ReadAllText (System.String path) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.TextFileDescriptionTemplate.CreateContent (System.String language) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.CreateContent (MonoDevelop.Projects.Project project, System.Collections.Generic.Dictionary`2 tags, System.String language) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.CreateFileContent (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String fileName, System.String identifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.SaveFile (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String baseDirectory, System.String entryName) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.AddFileToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.AddToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.DirectoryTemplate.AddToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.DirectoryTemplate.AddToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.InitializeItem (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage, MonoDevelop.Projects.SolutionEntityItem item) [0x00000] in <filename unknown>:0 

Open in new window


So Index.cshtml is missing. i could just create it, or install MonoDevelop properly.
LVL 2
itniflAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
apt-get install apt-file
apt-file nuget
apt-file mono.h
0
itniflAuthor Commented:
Thanks for the comment.
I did:
sudo apt-get install apt-file
sudo apt-file update
And then:
sudo apt-file nuget

apt-file [options] action [pattern]
apt-file [options] -f action <file>
apt-file [options] -D action <debfile>

Configuration options:
    --architecture     -a  <arch>       Use specific architecture
    --cache            -c  <dir>        Cache directory
    --cdrom-mount      -d  <cdrom>      Use specific cdrom mountpoint
    --dummy            -y               run in dummy mode (no action)
    --fixed-string     -F               Do not expand pattern
    --from-deb         -D               Use file list of .deb package(s) as
                                        patterns; implies -F
    --from-file        -f               Read patterns from file(s), one per line
                                        (use '-' for stdin)
    --ignore-case      -i               Ignore case distinctions
    --non-interactive  -N               Skip schemes requiring user input
                                        (useful in cron jobs)
    --package-only     -l               Only display packages name
    --regexp           -x               pattern is a regular expression
    --sources-list     -s  <file>       sources.list location
    --verbose          -v               run in verbose mode
    --help             -h               Show this help.
                       --               End of options (neccessary if pattern
                                        starts with a '-')

Action:
    update                              Fetch Contents files from apt-sources.
    search|find        <pattern>        Search files in packages
    list|show          <pattern>        List files in packages
    purge                               Remove cache files

I seem to be missing something.
0
gheistCommented:
apt-file search nugets
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

itniflAuthor Commented:
sudo apt-file search nugets

I got no reply.
0
gheistCommented:
You should look for missing command, since lack of it will skip building some components.
0
itniflAuthor Commented:
I am not familiar with apt-file, what command would I be looking for and where would I look?
Perhaps I am just missing a repository?
0
Duncan RoeSoftware DeveloperCommented:
I found this page about Running NuGet command-line on Linux - is that what you need?
For the Makefile to keep working, you would need a nuget shell script somewhere along your PATH to invoke it as described in the article
0
gheistCommented:
step1 gives output of apt-file...
0
itniflAuthor Commented:
Duncan Roe:
I see the nuget.exe does get downloaded to/created in /tmp/monodevelop/main/external/nuget-binary
I was hoping step 1 in your guide might help me run it.
But not by itself.

I had to edit vi /tmp/monodevelop/main/Makefile.am
and change the line:
nuget restore
with:
mono /tmp/monodevelop/main/external/nuget-binary/NuGet.exe restore

The whole thing then goes like this:
WARNING: Error: SendFailure (Error writing headers)
Installing 'Newtonsoft.Json 6.0.8'.
Installing 'Microsoft.AspNet.Razor 3.2.2'.
Installing 'NUnit 2.6.4'.
Installing 'SharpSvn.1.8-x86 1.8013.3576.94'.
Installing 'SharpZipLib 0.86.0'.
Installing 'Microsoft.AspNet.Mvc 5.2.2'.
Installing 'Microsoft.AspNet.WebPages 3.2.2'.
Installing 'LibGit2Sharp.NativeBinaries 1.0.51'.
ERROR building certificate chain: System.ArgumentException: certificate ---> System.Security.Cryptography.CryptographicException: Unable to decode public key. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at System.Security.Cryptography.X509Certificates.PublicKey..ctor (Mono.Security.X509.X509Certificate certificate) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.Process (Int32 n) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain (X509ChainStatusFlags flag) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  at System.Net.ServicePointManager+ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection certs) [0x00000] in <filename unknown>:0 
Please, report this problem to the Mono team
Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
Successfully installed 'Microsoft.AspNet.Razor 3.2.2'.
Successfully installed 'NUnit 2.6.4'.
ERROR building certificate chain: System.ArgumentException: certificate ---> System.Security.Cryptography.CryptographicException: Unable to decode public key. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at System.Security.Cryptography.X509Certificates.PublicKey..ctor (Mono.Security.X509.X509Certificate certificate) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey () [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.PrepareForNextCertificate (Int32 n) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.ValidateChain (X509ChainStatusFlags flag) [0x00000] in <filename unknown>:0 
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Security.Cryptography.X509Certificates.X509Chain.Build (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 
  at System.Net.ServicePointManager+ChainValidationHelper.ValidateChain (Mono.Security.X509.X509CertificateCollection certs) [0x00000] in <filename unknown>:0 
Please, report this problem to the Mono team
Successfully installed 'SharpZipLib 0.86.0'.
Successfully installed 'Microsoft.AspNet.Mvc 5.2.2'.
Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
Successfully installed 'Microsoft.AspNet.WebPages 3.2.2'.
Successfully installed 'Newtonsoft.Json 6.0.8'.
Successfully installed 'SharpSvn.1.8-x86 1.8013.3576.94'.
Successfully installed 'LibGit2Sharp.NativeBinaries 1.0.51'.
Unable to find version '2.6.4' of package 'NUnit.Runners'.
make[2]: *** [restore-packages] Error 1
make[2]: Leaving directory `/tmp/monodevelop/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/monodevelop/main'
make: *** [all-recursive] Error 1

Open in new window


I then restarted the whole process as root and edited as commented above after make failed with nuget. Ran make again and I got:

	wrapper/WidgetEventHandler.cs(10,3): error CS0246: The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?
	wrapper/WidgetEventHandler.cs(12,27): error CS0246: The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?
	wrapper/WidgetEventHandler.cs(25,10): error CS0246: The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?
	TopLevelWindow.cs(10,3): error CS0246: The type or namespace name `Gdk' could not be found. Are you missing an assembly reference?
	TopLevelWindow.cs(24,10): error CS0246: The type or namespace name `Gdk' could not be found. Are you missing an assembly reference?
	TopLevelDialog.cs(10,3): error CS0246: The type or namespace name `HButtonBox' could not be found. Are you missing an assembly reference?
	TopLevelDialog.cs(11,3): error CS0246: The type or namespace name `VBox' could not be found. Are you missing an assembly reference?
	TopLevelDialog.cs(12,3): error CS0246: The type or namespace name `HSeparator' could not be found. Are you missing an assembly reference?
	TopLevelDialog.cs(25,10): error CS0246: The type or namespace name `HButtonBox' could not be found. Are you missing an assembly reference?
	TopLevelDialog.cs(29,10): error CS0246: The type or namespace name `VBox' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(62,36): error CS0246: The type or namespace name `GLib' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(62,66): error CS0246: The type or namespace name `NotifyHandler' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(68,39): error CS0246: The type or namespace name `GLib' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(68,54): error CS0246: The type or namespace name `NotifyHandler' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(73,39): error CS0246: The type or namespace name `GLib' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(73,71): error CS0246: The type or namespace name `NotifyHandler' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(78,39): error CS0246: The type or namespace name `GLib' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(78,69): error CS0246: The type or namespace name `NotifyHandler' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(84,42): error CS0246: The type or namespace name `GLib' could not be found. Are you missing an assembly reference?
	wrapper/NotifyWorkaround.cs(84,57): error CS0246: The type or namespace name `NotifyHandler' could not be found. Are you missing an assembly reference?
	editor/GtkWorkarounds.cs(38,43): error CS0246: The type or namespace name `Gdk' could not be found. Are you missing an assembly reference?
	editor/GtkWorkarounds.cs(43,43): error CS0246: The type or namespace name `Gdk' could not be found. Are you missing an assembly reference?
	editor/GtkWorkarounds.cs(73,40): error CS0246: The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?
	editor/GtkWorkarounds.cs(225,10): error CS0246: The type or namespace name `Gdk' could not be found. Are you missing an assembly reference?

	 93 Warning(s)
	 751 Error(s)

Time Elapsed 00:00:13.8553090
make[2]: *** [sln_build] Error 1
make[2]: Leaving directory `/tmp/monodevelop/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/monodevelop/main'
make: *** [all-recursive] Error 1

Open in new window


Seems that the following link has the solution to the above:
http://stackoverflow.com/questions/22744041/error-while-compiling-monodevelop-4-2-2-from-tarball-in-ubuntu
Simply:
cd /usr/lib/mono/gac/

sudo gacutil -i glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll &&
sudo gacutil -i atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll &&
sudo gacutil -i gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll &&
sudo gacutil -i gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll &&
sudo gacutil -i glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll &&
sudo gacutil -i pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll &&
sudo gacutil -i gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll && 
sudo gacutil -i gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll &&
sudo gacutil -i gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll

Open in new window

After this was done 'make' worked successfully. Then also 'make install' worked as it should. Now I have MonoDevelop 5.10 installed, just tested it right now.

Thanks for the help and comments :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itniflAuthor Commented:
I contributed to my own solution, therefore selecting my comment as a part of the solution for later reference and possible usage by other users.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.