Mono3的“ make get-monolite-latest”错误


4

我是ubuntu的新手,并打算在ubuntu上安装最新的mono。当我发出命令时

make get-monolite-latest

但我收到此错误消息

rm -fr /home/avalon/monobuild/mono/mcs/class/lib/monolite-* mkdir -p
    /home/avalon/monobuild/mono/mcs/class/lib test ! -d
    /home/avalon/monobuild/mono/mcs/class/lib/monolite || test ! -d
    /home/avalon/monobuild/mono/mcs/class/lib/monolite.old || rm -fr
    /home/avalon/monobuild/mono/mcs/class/lib/monolite.old test ! -d
    /home/avalon/monobuild/mono/mcs/class/lib/monolite || mv -f
    /home/avalon/monobuild/mono/mcs/class/lib/monolite
    /home/avalon/monobuild/mono/mcs/class/lib/monolite.old cd
    /home/avalon/monobuild/mono/mcs/class/lib && { (wget -O-
    http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-110-latest.tar.gz
    || curl
    http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-110-latest.tar.gz)
    | gzip -d | tar xf - ; }
        --2014-01-07 07:51:57--  http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-110-latest.tar.gz
    Resolving storage.bos.xamarin.com (storage.bos.xamarin.com)...
        198.0.162.157 Connecting to storage.bos.xamarin.com (storage.bos.xamarin.com)|198.0.162.157|:80... connected. HTTP
    request sent, awaiting response... 404 Not Found 2014-01-07 07:51:59
    ERROR 404: Not Found.

        /bin/bash: curl: command not found

        gzip: stdin: unexpected end of file tar: This does not look like a tar archive tar: Exiting with failure status due to previous
    errors make:
        *** [get-monolite-latest] Error 2

有人说monolite的最新版本现在是111,而不是110,但是我不知道如何将链接更改应用于“ make get-monolite-latest”命令以安装monolite编译器


您是否尝试过从 github存储库下载:github.com/mono/mono/tree/mono-3.2.6-branch,然后提供下面的说明?
jobin 2014年

Answers:



2

另请注意,在版本111中,gmcs.exe重命名为basic.exe

因此运行:

make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/basic.exe"

0

我现在也面临着同样的问题。并发现url已关闭并更改为其他内容。

解决方案是从make文件中我接受了此命令

cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite

我修改了它并在shell上运行了它们。通过将$(mcslib)替换为我的单声道源的mcs lib的路径。
以及带有正确网址的$(monolite_url)。

所以在我的情况下,路径是/ home / ubuntu / softwares / mono

cd /home/ubuntu/softwares/mono/mcs/class/lib && { (wget -O- http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz|| curl http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz)| gzip -d | tar xf - ; } 
cd /home/ubuntu/softwares/mono/mcs/class/lib && mv -f monolite-* monolite

然后你可以跑

make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/gmcs.exe"

希望这也能解决您的问题。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.