Error when compiling MonoDevelop 5.3 on Linux

荒凉一梦 提交于 2019-12-07 04:42:44

问题


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.


回答1:


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)




回答2:


I had the same problem, being unable to find a solution, I found a ppa here:

https://launchpad.net/~inizan-yannick/+archive/ubuntu/mono

Which installed 5.3 fine. The information came from the MonoDevelop google+ group here:

https://plus.google.com/communities/116399945085263839159



来源:https://stackoverflow.com/questions/24793207/error-when-compiling-monodevelop-5-3-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!