Skip to content

Instantly share code, notes, and snippets.

@theturtle32
Created July 25, 2012 20:57
Show Gist options
  • Select an option

  • Save theturtle32/3178637 to your computer and use it in GitHub Desktop.

Select an option

Save theturtle32/3178637 to your computer and use it in GitHub Desktop.

Revisions

  1. theturtle32 revised this gist Jul 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ $ sudo yum install python26
    Set python26 to be the default in your shell when you simply execute 'python'
    This is critical to being able to build node modules with native extensions
    ```bash
    $ mkdir -p $HOME/bin`
    $ mkdir -p $HOME/bin
    $ ln -s /usr/bin/python26 $HOME/bin/python
    $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
    ```
  2. theturtle32 revised this gist Jul 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Compiling/Installing Node 0.8.3 (and Python 2.6, required by Node) on CentOS 5
    Compiling/Installing Node 0.8.4 (and Python 2.6, required by Node) on CentOS 5
    ==============================================================================

    Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
  3. theturtle32 revised this gist Jul 25, 2012. 1 changed file with 45 additions and 17 deletions.
    62 changes: 45 additions & 17 deletions compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -2,51 +2,79 @@ Compiling/Installing Node 0.8.3 (and Python 2.6, required by Node) on CentOS 5
    ==============================================================================

    Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
    `$ sudo yum update`
    ```bash
    $ sudo yum update
    ```

    Install the EPEL Repo:
    `$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm`
    ```bash
    $ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    ```

    Install the newly available python26 Package from EPEL Repo:
    `$ sudo yum install python26`
    ```bash
    $ sudo yum install python26
    ```

    Set python26 to be the default in your shell when you simply execute 'python'
    This is critical to being able to build node modules with native extensions
    ```bash
    $ mkdir -p $HOME/bin`
    $ ln -s /usr/bin/python26 $HOME/bin/python
    $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
    $ mkdir -p $HOME/bin`
    $ ln -s /usr/bin/python26 $HOME/bin/python
    $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
    ```

    Activate modified .bashrc for current terminal session
    `$ source ~/.bashrc`
    ```bash
    $ source ~/.bashrc
    ```

    Verify Python 2.6 is ready to go. (Should print "Python 2.6.8")
    `$ python -V`
    ```bash
    $ python -V
    ```

    Install Development Toolchain
    `$ sudo yum groupinstall "Development Tools"`
    ```bash
    $ sudo yum groupinstall "Development Tools"
    ```

    Switch to home directory:
    `$ cd ~`
    ```bash
    $ cd ~
    ```

    Download Node 0.8.4 source tarball:
    `$ wget http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz`
    ```bash
    $ wget http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz
    ```

    Untar:
    `$ tar -xzf node-v0.8.4.tar.gz`
    ```bash
    $ tar -xzf node-v0.8.4.tar.gz
    ```

    Switch to node directory:
    `$ cd node-v0.8.4`
    ```bash
    $ cd node-v0.8.4
    ```

    Run configure script with newly installed python binary
    $ ./configure
    ```bash
    $ ./configure
    ```

    Compile Node
    $ make -j5
    ```bash
    $ make -j5
    ```

    Install Node
    $ sudo make install
    ```bash
    $ sudo make install
    ```

    Verify installation (should print "v0.8.4")
    $ node --version
    ```bash
    $ node --version
    ```
  4. theturtle32 revised this gist Jul 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ Install the newly available python26 Package from EPEL Repo:

    Set python26 to be the default in your shell when you simply execute 'python'
    This is critical to being able to build node modules with native extensions
    ```
    ```bash
    $ mkdir -p $HOME/bin`
    $ ln -s /usr/bin/python26 $HOME/bin/python
    $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
  5. theturtle32 revised this gist Jul 25, 2012. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -12,9 +12,11 @@ Install the newly available python26 Package from EPEL Repo:

    Set python26 to be the default in your shell when you simply execute 'python'
    This is critical to being able to build node modules with native extensions
    `$ mkdir -p $HOME/bin`
    `$ ln -s /usr/bin/python26 $HOME/bin/python`
    `$ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc`
    ```
    $ mkdir -p $HOME/bin`
    $ ln -s /usr/bin/python26 $HOME/bin/python
    $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
    ```

    Activate modified .bashrc for current terminal session
    `$ source ~/.bashrc`
  6. theturtle32 created this gist Jul 25, 2012.
    50 changes: 50 additions & 0 deletions compilingNode0.8.4onCentOS5.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    Compiling/Installing Node 0.8.3 (and Python 2.6, required by Node) on CentOS 5
    ==============================================================================

    Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
    `$ sudo yum update`

    Install the EPEL Repo:
    `$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm`

    Install the newly available python26 Package from EPEL Repo:
    `$ sudo yum install python26`

    Set python26 to be the default in your shell when you simply execute 'python'
    This is critical to being able to build node modules with native extensions
    `$ mkdir -p $HOME/bin`
    `$ ln -s /usr/bin/python26 $HOME/bin/python`
    `$ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc`

    Activate modified .bashrc for current terminal session
    `$ source ~/.bashrc`

    Verify Python 2.6 is ready to go. (Should print "Python 2.6.8")
    `$ python -V`

    Install Development Toolchain
    `$ sudo yum groupinstall "Development Tools"`

    Switch to home directory:
    `$ cd ~`

    Download Node 0.8.4 source tarball:
    `$ wget http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gz`

    Untar:
    `$ tar -xzf node-v0.8.4.tar.gz`

    Switch to node directory:
    `$ cd node-v0.8.4`

    Run configure script with newly installed python binary
    $ ./configure

    Compile Node
    $ make -j5

    Install Node
    $ sudo make install

    Verify installation (should print "v0.8.4")
    $ node --version