Link to home
Start Free TrialLog in
Avatar of itnifl
itniflFlag for Norway

asked on

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.
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

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.
apt-file search nugets
Avatar of itnifl

ASKER

sudo apt-file search nugets

I got no reply.
You should look for missing command, since lack of it will skip building some components.
Avatar of itnifl

ASKER

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?
SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
step1 gives output of apt-file...
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

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.