Skip to content

Instantly share code, notes, and snippets.

@theturtle32
Created October 8, 2012 20:05
Show Gist options
  • Select an option

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

Select an option

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

Revisions

  1. theturtle32 revised this gist Oct 8, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions node-amazon-linux-install.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,7 @@ $ node --version

    Make Node available via sudo
    ```bash
    $ sudo ln -s /usr/local/bin/node
    $ sudo ln -s /usr/local/bin/node-wav
    $ sudo ln -s /usr/local/bin/npm
    $ sudo ln -s /usr/local/bin/node /bin/node
    $ sudo ln -s /usr/local/bin/node-wav /bin/node-waf
    $ sudo ln -s /usr/local/bin/npm /bin/npm
    ```
  2. theturtle32 revised this gist Oct 8, 2012. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions node-amazon-linux-install.md
    Original file line number Diff line number Diff line change
    @@ -49,4 +49,11 @@ $ sudo make install
    Verify installation (should print "v0.8.11")
    ```bash
    $ node --version
    ```

    Make Node available via sudo
    ```bash
    $ sudo ln -s /usr/local/bin/node
    $ sudo ln -s /usr/local/bin/node-wav
    $ sudo ln -s /usr/local/bin/npm
    ```
  3. theturtle32 created this gist Oct 8, 2012.
    52 changes: 52 additions & 0 deletions node-amazon-linux-install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    Compiling/Installing Node 0.8.11 on Amazon Linux
    ==============================================================================

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

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

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

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

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

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

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

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

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

    Verify installation (should print "v0.8.11")
    ```bash
    $ node --version
    ```