.Net Core CLI–Ubuntu 14安装

sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893

sudo apt-get update

sudo apt-get install dotnet=1.0.0.001598-1

如果使用web功能的话(kestrel)还需要安装libuv

sudo apt-get install make automake libtool curl

curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src

cd /usr/local/src/libuv-1.8.0

sudo sh autogen.sh

sudo ./configure

sudo make

sudo make install

sudo rm -rf /usr/local/src/libuv-1.8.0 && cd ~/

sudo ldconfig

参考资料:

http://dotnet.github.io/getting-started/

https://docs.asp.net/en/latest/getting-started/installing-on-linux.html#installing-on-ubuntu-14-04

posted @ 2016-03-17 09:25  draweye  阅读(265)  评论(0编辑  收藏  举报