Last active
December 9, 2016 17:18
-
-
Save mayconbordin/7871356 to your computer and use it in GitHub Desktop.
Install node.js and ZeroMQ without root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install node.js | |
# --------------- | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install | |
export PATH=$PATH:~/local/bin | |
curl https://npmjs.org/install.sh | sh | |
# Install ZeroMQ | |
# -------------- | |
wget http://download.zeromq.org/zeromq-4.0.3.tar.gz | |
tar xfz zeromq-4.0.3.tar.gz | |
cd zeromq-4.0.3/ | |
./configure --prefix=~/local | |
make install | |
# Install zmq library | |
#------------------- | |
export LD_LIBRARY_PATH=~/local/lib/ | |
export PKG_CONFIG_PATH=~/local/lib/pkgconfig/ | |
# in some OS's you may need this too: | |
export CXXFLAGS="-I ~/local/include" | |
export LDFLAGS="-L ~/local/lib/ -Wl,-rpath=~/local/lib/" | |
npm install zmq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment