Skip to content

Instantly share code, notes, and snippets.

@mayconbordin
Last active December 9, 2016 17:18
Show Gist options
  • Save mayconbordin/7871356 to your computer and use it in GitHub Desktop.
Save mayconbordin/7871356 to your computer and use it in GitHub Desktop.
Install node.js and ZeroMQ without root
# 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