在没有sudo的情况下运行更新版本的mono

时间:2015-07-08 14:54:26

标签: compilation mono debian virtualhost

我在使用Debian的虚拟主机上,它有一个过时的单声道版本。我没有sudo权限。我已经使用./configure --prefix = $ HOME。

将更新版本编译到我的主目录中

如何使用已编译的版本运行程序?

1 个答案:

答案 0 :(得分:1)

With a prefix of $HOME and assuming you have done a 'make install', add mono's bin dir to your path and test to see you are are picking up the correct/newer one:

export PATH=${HOME}/bin:${PATH}
which mono

At that point, you can:

mono yourprogram.exe

Note: Instead of using your home directory as the prefix, you might want to install to a sub-directory to keep all those mono sub-dirs separate from your other HOME directories; i.e. Use --prefix=$HOME/mono when you autogen/configure mono.