LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   mono: error running custom app via mono on linux RH (http://www.linuxquestions.org/questions/linux-software-2/mono-error-running-custom-app-via-mono-on-linux-rh-4175411224/)

kirk5000 06-13-2012 09:48 AM

mono: error running custom app via mono on linux RH
 
When I try to launch my C# application on our red hat enterprise system via the .NET emulator known as mono (v2.5.2), I get the following error:

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

I have installed mono in another location than the one mentioned in the error message and I do see the mscorlib.dll in that location so my question is:
How does mono resolve that location and can I configure mono to find it where it's at?

Thanks in advance for any help on this.

kirk5000 06-13-2012 06:15 PM

Would this be the windoze version of LD_LIBRARY_PATH?
 
I'm thinking it is but I don't know the windoze equivalent.
I've tried a number of things that the mono web site and other google results suggested but to no avail.
Again, any help is appreciated!

John VV 06-13-2012 11:46 PM

kirk5000 you probably already know this but

you might want to port that code off the MS only language C# to a normal everyday language C++

mono dose NOT support all the Microsoft c# API's

Quote:

I have installed mono in another location than the one mentioned
???????????? how ?????
mono is in the RHN repo
the RECOMMENDED way is to use yum
Code:

su -
yum install mono

if you put a second install of mono someplace on the system you most likely broke it

you might want to ask red hat
the documentation for RHEL 6 and the older 5
https://access.redhat.com/knowledge/...erprise_Linux/
do a search of the Red hat knowledge base for "mono"

https://access.redhat.com/knowledge/...en&cid=2474740

you WILL need to log in to your rhn account to use the knowledge base

kirk5000 06-15-2012 01:06 AM

The target machine is a company resource
 
Quote:

???????????? how ?????
mono is in the RHN repo
the RECOMMENDED way is to use yum
The target machine is a company resource and Yum is not an option for me.
mono was installed from the source code via configure make install with the appropriate --prefix option.

John VV 06-15-2012 04:22 AM

if your system admin can NOT install it from RHN you might be out of luck

I would get the administrator to install the correct version for mono from RHN for this version of RHEL


All times are GMT -5. The time now is 12:55 AM.