Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when compiling MonoDevelop 5.3 on Linux

I have installed Ubuntu 14.04 on my laptop and I'm trying to compile the code of MonoDevelop 5.3 that I downloaded from GitHub, I've installed all the dependencies.

I have installed Mono 3.2.8:

raven@raven-laptop:~/Downloads/monodevelop$ mono -V
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

When I used ./Configure I get this:

Configuration summary

   * Installation prefix = /usr
   * Version = 5.3
   * Version Label = 5.3
   * Compat Version = 5.0
   * C# compiler = /usr/bin/dmcs
   * Mono class library development extensions: yes
   * Version control providers:
   *     Subversion (Unix): yes
   *     Git: yes
   * Platform bindings: GNOME 
   * Unit tests: no

Now type `make' to compile MonoDevelop
Configuration Summary
---------------------

MonoDevelop has been configured with 
    prefix = /usr
    profile = default

Packages included in the build:
    main

But when I use make sends me this error:

Errors:

/home/raven/Downloads/monodevelop/main/Main.sln (default targets) ->
(Build target) ->
/home/raven/Downloads/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj (default targets) ->
(BeforeBuild target) ->

    /home/raven/Downloads/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj: error : Command 'mono ../../../external/nuget-binary/NuGet.exe restore -SolutionDirectory ../../..' exited with code: 1.

     1 Warning(s)
     1 Error(s)

Time Elapsed 00:00:24.5810510
make[2]: *** [sln_build] Error 1
make[2]: Leaving directory `/home/raven/Downloads/monodevelop/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raven/Downloads/monodevelop/main'
make: *** [all-recursive] Error 1

If anyone knows how to fix this error, please let me know, thanks.

like image 284
R4v3nPr0 Avatar asked Jul 17 '14 00:07

R4v3nPr0


1 Answers

If there is a NuGet error when compiling MonoDevelop on Linux then you can see the actual error message by running NuGet restore directly on the command line.

mono external/nuget-binary/NuGet.exe restore Main.sln

If the error message contains:

Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

Then this is most likely a certificate error since Linux by default does not trust any certificates.

This NuGet error can usually be fixed by running the following command:

mozroots --import --sync

If the above does not work take a look at the NuGet on Linux Error Getting Response Stream StackOverflow post which has other slightly different mozroots commands you can try.

(The above was moved from the comments to make it easy to find)

like image 73
Matt Ward Avatar answered Oct 31 '22 20:10

Matt Ward