Install node under Ubuntu

Source: Internet
Author: User
Tags install node git clone joyent

sudo apt-get updatesudo apt-get install build-essential -y
sudo apt-get install git -y

node. js itself requires very little in the "the" of dependencies.

  • Python-version 2.6 or 2.7.
  • Libssl-dev-you would need this if your plan to use SSL/TLS encryption.
  • sudo apt-get install python libssl-dev -y
    Cd/usr/local/src
    1.
    sudo mkdir nodecd nodesudo wget http://nodejs.org/dist/v0.6.17/node-v0.6.17.tar.gzsudo tar -xzvf node-v0.6.17.tar.gz
    cd node-v0.6.17sudo ./configure
    2、
    cd /usr/local/srcsudo git clone git://github.com/joyent/node.git
    cd nodesudo git checkout v0.6.17
    sudo ./configure
    sudo makesudo make install
    cd /usr/local/src/nodesudo git checkout mastersudo git pull origin master
    sudo git checkout vx.x.xsudo ./configuresudo makesudo make install
    mkdir -p ~/local/srccd ~/local/srcgit clone git://github.com/joyent/node.gitcd nodegit checkout v0.6.17./configure --prefix=~/localmakemake install

Install node under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.