漂泊雪狼的博客

思考,讨论,分享C#,JavaScript,.NET,Oracle,SQL Server……技术

导航

centos 下安装.net core

Posted on 2016-05-21 13:24  漂泊雪狼  阅读(1447)  评论(0编辑  收藏  举报

先要安装libunwind,

libunwind库为基于64位CPU和操作系统的程序提供了基本的堆栈辗转开解功能,32位操作系统不要安装。其中包括用于输出堆栈跟踪的API、用于以编程方式辗转开解堆栈的API以及支持C++异常处理机制的API。

The primary goal of this project is to define a portable and efficient C programming interface (API) to determine the call-chain of a program.

 

yum install libunwind

 或者

wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz
tar -xf libunwind-1.1.tar.gz
cd libunwind-1.1
./configure
make
make install

 或者

cd /usr/local/src/
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.0.1.tar.gz
tar zvxf libunwind-1.0.1.tar.gz
cd libunwind-1.0.1
./configure --enable-shared
make && make install

  

  

执行命令:

curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview1-002702 --install-dir ~/dotnet
sudo ln -s ~/dotnet/dotnet /usr/local/bin

mkdir hwapp
cd hwapp
dotnet new

dotnet restore
dotnet run

  输出Hello world!