How can I tell if Mono is installed properly on Linux?

linux, mono

Solution

If `mono` is properly installed, you should not get a message like `-bash: mono: command not found`. If something is installed then it most typically is in the `$PATH`.

On my system the executable is located on `/usr/bin/mono` (as most things are) but things may be different on a RPM-based system.

Your `./configure`, however, got the prefix `/opt/mono`, so probably your executable also is located under that special path. (And thus `mono` isn't properly installed.) Why did you install it there? Anyway. If this is the fact, then you can execute it using sth like

/opt/mono/bin/mono foo.exe

to find the executable below your prefix path you could use

find /opt/mono -name mono

to see all directory entries which are named exactly `mono`. One of those should be your executable.

Problem

I asked IT to install Mono on CentOS using the following commands: ``` $yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget $cd /usr/local/src $wget http://download.mono-project.com/sources/mono/mono-3.2.5.tar.bz2 $tar jxf mono-3.2.5.tar.bz2 $cd mono-3.2.5 $./configure --prefix=/opt/mono $make && make install ``` However, when I run `mono myapp.exe` I get ``` -bash: mono: command not found ``` I know nothing about Linux - I feel like I'm in Japan. Assuming Linux has a path variable or something like it, maybe mono isn't in the path? I can't even find an executable called `mono` in `/usr/local/src`, just a `mono` folder. Mind you I can't work out how to even search for a file so I might not be looking properly. How can I tell whether its installed correctly? Maybe its just not available to the non-admin account I use? I'm lost. Help!

Original source

Related problems