[Mono-dev] Problems with running mono executables as a native app on Ubuntu
Jonathan Pryor
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,
> http://www.bscheiman.org/2009/03/18/compiling-mono-22-on-slicehost/,
> (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:
export PATH=/usr/local/bin:$PATH
mcs --help
> 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
ASP.NET apps.
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:
http://www.mono-project.com/Guidelines:Application_Deployment
- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090428/9fc0c9f0/attachment.html
More information about the Mono-devel-list
mailing list