[Mono-dev] Problems with running mono executables as a native app on Ubuntu
jonpryor at vt.edu
Tue Apr 28 12:40:27 EDT 2009
On Tue, 2009-04-28 at 16:28 +0100, James Smith wrote:
> in order to overcome the problem I outlined in my previous post I’ve
> gone ahead and compiled the mono packages from source using a script
> kindly furnished by Boris Scheiman here,
> (the original script is linked to from this article).
> I can now compile thus:
> sudo mono /usr/local/lib/mono/1.0/mcs.exe hello.cs
> but cannot compile thus:
> mcs hello.cs
The problem is likely your $PATH -- Mono was installed with /usr/local/
as the installation prefix, thus there should be a /usr/local/bin/mcs
script, but /usr/local/bin isn't within PATH.
Try doing this in your shell:
> I understand installing mono-common should configure mono to allow mcs
> (and other applications) to run natively, but installing it via
> aptitude makes no apparent difference. I feel that until I can get
> mono apps to run natively (or, more specifically, understand the
> issues in doing so), I cannot progress to running ASP.NET
> applications. How do I achieve this given that mono-common seems to
> fail in it’s allotted task?
Running apps from the command line is ~completely different from running
To run an ASP.NET app, you need to do one of two things:
1. cd path/to/your/asp.net/app, then run xsp2. This will start a local
web server listening to http://localhost:8080.
2. Configure Apache and mod_mono: http://mono-project.com/Mod_mono (and
likely lots of other Google-able sources).
Finally, for command-line apps (not ASP.NET apps), you should read over:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list