"配置:错误:mcs未找到"在CentOS上配置mono-addins时

时间:2015-07-22 17:26:51

标签: linux mono centos monodevelop

我试图在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 found

mcs编译器已成功安装,如果我执行

mcs --version

它返回

Mono C# compiler version 4.0.3.0

在autoconf输出的其他示例中,我看到检查gmcs会返回类似/usr/local/bin/gmcs/usr/bin/gmcs的内容,但在编译单声道后我的系统上没有gmcs所有。

mcs和gmcs有什么区别,我在哪里可以找到第二个?

1 个答案:

答案 0 :(得分:2)

在转向mcs之前,

mono-gmcs是一个临时编译器。我试图在Centos 7上安装Bless(单声道/ C#十六进制编辑器)时遇到了这个问题(“configure:error:没有找到gmcs C#编译器”)。不确定这是否是其他发行版的答案,但我添加了一个与ln -s mcs gmcs的符号链接,以便寻找gmcs的脚本将找到它,但它将重定向到mcs,即当前的单声道C#编译器。两者都应该在/ usr / local中。对于Bless来说,还有对“scrollkeeper”的依赖,我用yum install scrollkeeper处理了它。

相关问题