WebFaction
Community site: login faq

How can I install mono to use C#/F# programming?

asked 20 May '11, 15:57

prosseek
48413
accept rate: 100%


Hi,

You can install Mono using the following guide. I have used the latest trunk version available as of now to do the install:

cd; wget http://mono.ximian.com/monobuild/snapshot/snapshot_sources/mono/mono-142439.tar.bz2
tar -xvjf mono-142439.tar.bz2
cd mono-142439
./configure --prefix=$HOME
make
make install
export PATH=~/bin:$PATH

You would then need to install Nginx which can be easily accomplished by installing the latest Rails version from the panel.

You can then remove all the Rails specific parts from Nginx conf and the webapps directory.

Then, you would need to configure Nginx to use Mono using: http://mono-project.com/FastCGI_Nginx

Please note that the above guide contains many system level paths please be sure to change them to your own $HOME-specific paths and create appropriate directories and files if necessary.

You would also need to create a new Custom app (listening on port) so that you can reserve a port for Mono where you can run its FastCGI server.

Hope that helps!

permanent link

answered 20 May '11, 21:28

neeravk
1.5k3412
accept rate: 41%

To build FastCGI and thus the 'fastcgi-mono-server2' binary the commands are,

wget http://download.mono-project.com/sources/xsp/xsp-2.10.tar.bz2
tar -xf xsp-2.10.tar.bz2 
cd xsp-2.10
export PKG_CONFIG_PATH='/home/<USERNAME>/lib/pkgconfig/'
./configure --prefix=$HOME
make
install

Replace <username> with your username. The export command must be the directory for the file 'mono-nunit.pc' or there will be errors during make

(27 Oct '12, 21:36) johns

Can you explain this in a bit more detail please? I followed the steps so far and got it installed. I need the custom app process and editing the configs process.

(16 Jul '13, 05:44) sevenalive

Information about custom applications is available in our documentation: Custom Applications

If you can tell us more about the application you're building, we might be able to assist with whatever configuration problem you're having.

(16 Jul '13, 16:46) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102

question asked: 20 May '11, 15:57

question was seen: 5,096 times

last updated: 16 Jul '13, 16:46

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM