. NET open source, with more DIY fun. This blog post records the Deb installation package for generating the. NET Core SDK on the newly installed Linux Ubuntu 14.04 by self-compiling the dotnet CLI source code.
1) Install an existing version of the. NET Core SDK
sudo sh-c ' echo ' Deb [ARCH=AMD64] https://apt-mo.trafficmanager.net/repos/dotnet-release/trusty main ">/etc/apt/ Sources.list.d/dotnetdev.list ' sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 417A0893sudo Apt-get Updateapt-get Install dotnet-dev-1.0.0-preview2.1-003177
If you do not install, the following error will appear on build
Dotnet_install:Error:Unable to locate Libunwind. Install Libunwind to Continuedotnet_install:Error:Unable to locate Libicu. Install Libicu to continue
2) Check out the source code of the dotnet CLI from GitHub
Apt-get Install Gitgit clone https://github.com/dotnet/cli.git
3) Install dependent components liblldb, devscripts, Debhelper
Apt-get Install liblldb-3.6apt-get Install devscriptsapt-get install debhelperapt-get Install Curl
4) Run the build command
./build.sh/t:compile
5) output results after build success
~/cli/artifacts/ubuntu.14.04-x64/packages# ls Dotnet-host-ubuntu-x64.1.0.1.debdotnet-hostfxr-ubuntu-x64.1.0.1.debdotnet-sharedframework-ubuntu-x64.1.0.1.deb
Note: Build progress can be viewed through the init-microsoft.dotnet.buildtools.log log file at build.
Compile the dotnet CLI source code on Linux to generate the. NET Core SDK installation package