我正在尝试在CentOS 7上安装MonoDevelop 4,如这篇文章所述:Install Mono and Monodevelop on CentOS 5.x/6.x,但是当我试图在mono-addins src目录中执行./autogen.sh --prefix=/usr时,我得到了错误:
Running autoconf ...
Running ./configure --prefix=/usr ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for gmcs... no
configure: error: mcs Not foundmcs编译器已成功安装,如果我执行
mcs --version
它返回
Mono C# compiler version 4.0.3.0
在autoconf输出的其他示例中,我看到检查gmc会返回类似于/usr/local/bin/gmcs或/usr/bin/gmcs的内容,但在我的系统上,在编译mono之后,我根本没有gmcs。
mcs和gmcs之间有什么区别,我在哪里可以找到第二个?
发布于 2016-06-01 14:24:10
mono-gmcs在迁移到mcs之前是一个临时编译器。我在Centos 7上安装Bless (一个mono/C#十六进制编辑器)时遇到了这个问题(“配置:错误:找不到gmcs C#编译器”)。不确定这是否是其他发行版的答案,但我添加了一个与ln -s mcs gmcs的符号链接,以便寻找gmcs的脚本可以找到它,但它将重定向到mcs,当前的mono C#编译器。两者都应该在/usr/local中。对于Bless,还有一个对" scrollkeeper“的依赖,我用一个yum install scrollkeeper来解决这个问题。
发布于 2021-11-08 06:51:28
我使用的是Ubuntu 20.04.3 LTS;而且它也没有mcs。我真的需要它来保佑。因此,我使用以下命令安装mcs
sudo apt install mono-mcs所以现在
which mcs 现在返回/usr/bin/mcs
要让bless正常工作,您还需要安装cmake;使用
sudo apt inztall cmake gtk-sharp2 nunit-console xsltproc 并按照自述文件中的说明进行安装;即
git clone https://github.com/afrantzis/bless
meson setup build
ninja -C build
sudo ninja -C build installhttps://stackoverflow.com/questions/31570023
复制相似问题