linux - 在 CentOS 上配置单插件期间出现 "configure: error: mcs Not found"

标签 linux mono centos monodevelop

我正在尝试按照这篇文章中的描述在 CentOS 7 上安装 MonoDevelop 4:Install Mono and Monodevelop on CentOS 5.x/6.x ,但是当我试图执行 ./autogen.sh --prefix=/usr 在 mono-addins src 目录中,我得到错误:

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# 编译器版本 4.0.3.0

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

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

最佳答案

mono-gmcs 是迁移到 mcs 之前的临时编译器。我在 Centos 7 上尝试安装 Bless(一个单声道/C# 十六进制编辑器)时遇到了这个问题(“配置:错误:找不到 gmcs C# 编译器”)。不确定这是否是其他发行版的答案,但我添加了一个与 ln -s mcs gmcs 的符号链接(symbolic link),这样寻找 gmcs 的脚本会找到它,但它会重定向到 mcs,当前的单声道 C# 编译器。两者都应该在/usr/local 中。对于 Bless,还有对“scrollkeeper”的依赖,我用 yum install scrollkeeper 解决了这个问题。

关于linux - 在 CentOS 上配置单插件期间出现 "configure: error: mcs Not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31570023/

相关文章:

c++ - C++:使用waitpid时等待子进程终止

linux - 如何部署 Mono 应用程序?

python - 在 Python 中导入 tensorflow 时出现非法指令

ios - 在 Xamarin Studio 中针对较旧的 Mono 框架版本编译 iOS 应用程序

Apache 服务器问题?使用 vmware 时无法从主机操作系统访问 guest 操作系统中的 apache 服务器

google-cloud-platform - 如何让 podman/buildah 容器在 GCE 上的 CentOS 下运行?

c++ - 我应该在 dlopen 之前锁定吗?

linux - 排除目录 mv unix

linux - 为什么我无法在自修改代码中单步执行 aeskeygenassist 指令?

android - 单体机器人 : Running out of space on fresh Virtual Device?