CentOS Up & Running With Mono/ASP.Net vNext
Update yum:
sudo yum update
Add the Mono Project GPG signing key:
$ sudo rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
Install yum utilities:
This will add the yum-config-manager we will use later.
This will add the yum-config-manager we will use later.
$ sudo yum install yum-utils
Add the Mono package repository:
$ sudo yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
Add the REPEL package repository:
Add the REPEL repository to satisfy all dependencies.
Add the REPEL repository to satisfy all dependencies.
$ sudo yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/6/x86_64/
Install the mono-complete package:
$ sudo yum install mono-complete
Install Git:
$ sudo yum install git
Download and build libuv:
Libuv is a multi-platform asynchronous IO library that is used by the KestrelHttpServer that we will use to host our web applications. To build libuv will require gcc ,the GNU Compiler Collection, the GNU libtool, a generic library support script that hides the complexity of using shared libraries behind a consistent interface, GNU make, which controls the generation of executables from the program's source files and automake, for automatically generating Makefile.in files compliant with the GNU Coding Standards .Note: You will need to ensure that libuv.so is available as libuv.so.1. I use a symbolic link below to achieve the mapping.
$ sudo yum install make $ sudo yum install automake $ sudo yum install libtool $ git clone https://github.com/libuv/libuv.git $ cd libuv $ sh autogen.sh $ ./configure $ make $ make check $ sudo make install
$ ldconfig
$ sudo ln -s /usr/local/lib/libuv.so /usr/lib64/libuv.so.1
Install DNVM:
$ curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
Install the latest DNRE:
$ dnvm update
Test the install by running dnvm:
$ dnvm Note: If dnvm is already installed but fails run the command
$ source ~/.dnx/dnvm/dnvm.sh
$ dnvm
Get the latest from aspnet/Home repo:
$ git clone https://github.com/aspnet/Home.git $ cd Home/samples
$ dnu restore
Run the Hello World! console app.
$ cd latest/ConsoleApp
$ dnx . run
Run the HelloMvc app.
$ cd latest/HelloMvc
$ dnx . kestrel
Ctrl+Z (to exit)
$ cd latest/HelloWeb
$ dnx . kestrel
Ctrl+Z (to exit)
Resources:
Comments
Post a Comment