[Mono-list] mcs: command not found
Jonathan Pryor
jonpryor at vt.edu
Wed Aug 24 22:52:36 EDT 2005
On Wed, 2005-08-24 at 09:00 -0700, Jeremy Vaught wrote:
> I installed Mono two ways, with the bin, after I couldn't get that
> working after a successful install, then compiling from source. In
> both cases, I had successful installs. In both cases the command
> 'mcs' is not found. From what I can tell, there is an mcs in
> mono-install-directory/bin/ but that points to the mcs.exe that is in
> the mono-install-directory/lib/mono/1.0/. Even in these directories,
> I still get mcs: command not found.
You're probably not setting up your environment correctly. Unless you
use a prefix of $HOME, `mcs' will not be placed in ~/bin, it will be
placed into mono-install-directory/bin, which probably isn't in your
$PATH, and thus won't be found.
The solution: set up your environment correctly:
export MONO_PREFIX=mono-install-directory
export PATH=$MONO_PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:
$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MONO_PREFIX/lib
# This is so we find also use the global GAC
in /usr/lib/mono/gac,
# in addition to my custom build.
# This is only necessary if there is a global install of mono.
export MONO_GAC_PREFIX=$MONO_PREFIX:/usr
Place the above into your ~/.bashrc (or appropriate equivalent), or
always set those variables before using `mcs'.
- Jon
More information about the Mono-list
mailing list