gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 12:14:11 24 4
gpt4 key购买 nike

我正在尝试按照这篇文章中的描述在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com