我正在尝试使用Mono 2.8.2来设置Amazon EC2 AMI( 详细信息 )。 我遇到了几个问题。
问题一
我得到一个Permission Denied错误当我尝试执行以下步骤
cat >>/etc/profile.d/mono_path.sh export PATH=$PATH:/opt/mono-2.8.1/bin export PKG_CONFIG_PATH=/opt/mono-2.8.1/lib/pkgconfig/:$PKG_CONFIG_PATH
即使做了sudo cat >>/etc/profile.d/mono_path.sh导致相同的Permission Denied错误,所以我决定使用VI创build一个/etc/profile.d/mono_path.sh并在上面两行中添加它。
问题二
当试图安装XSP-2.8.1时,我需要使用sudo来运行以下命令
./configure –prefix=/opt/mono-2.8.1
它失败,出现以下错误输出
[ec2-user@ip-10-245-39-133 xsp-2.8.1]$ sudo ./configure –prefix=/opt/mono-2.8.1 checking build system type… i686-pc-linux-gnu checking host system type… i686-pc-linux-gnu checking target system type… i686-pc-linux-gnu checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… /bin/mkdir -p checking for gawk… gawk checking whether make sets $(MAKE)… yes checking whether to enable maintainer-specific portions of Makefiles… no checking for a BSD-compatible install… /usr/bin/install -c checking for pkg-config… /usr/bin/pkg-config checking if tracing is requested… no checking for csc… no checking for gmcs… no checking for dmcs… no checking for runtime in the installation prefix… /opt/mono-2.8.1/bin/mono checking for gacutil… no checking for sn… no configure: error: No C# compiler found
现在我不知道如何解决这个问题。 任何帮助,将不胜感激。
sudo cat >>/etc/profile.d/mono_path.sh只以root sudo cat >>/etc/profile.d/mono_path.sh运行cat ,redirect以原始用户的身份发生。 sudoland的等价物是cat | sudo tee -a /etc/profile.d/mono_path.sh cat | sudo tee -a /etc/profile.d/mono_path.sh
在这篇文章中可以find更好的安装mono的方法。 花了我几分钟来安装单声道二进制文件,只需要添加应该包含两行的mono_path.sh文件: –
export PATH=$PATH:/opt/novell/mono/bin export PKG_CONFIG_PATH=/opt/novell/mono/lib/pkgconfig/:$PKG_CONFIG_PATH
现在运行我的孩子刚刚想要的Terraria服务器!