Skip to content

Instantly share code, notes, and snippets.

@thorrr
Last active January 4, 2017 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thorrr/495cc9df7c6e4d81fe4b to your computer and use it in GitHub Desktop.
Save thorrr/495cc9df7c6e4d81fe4b to your computer and use it in GitHub Desktop.
install ipython notebook under cygwin
#!/bin/bash
set -e
LIBSODIUM_URL=https://github.com/jedisct1/libsodium/releases/download/1.0.3/libsodium-1.0.3.tar.gz
LIBZMQ_URL=https://github.com/zeromq/libzmq.git
#start
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
tmpdir=`mktemp -d`
pushd "$tmpdir"
wget $LIBSODIUM_URL
git clone $LIBZMQ_URL
#libsodium
tar -xvzf libsodium-1.0.3.tar.gz
cd libsodium-1.0.3/
./configure
make && make install
cd ..
#libzmq
cd libzmq/
./autogen.sh
./configure
make && make install
#pip will pick up the libraries correctly now
PIP_REQUIRE_VIRTUALENV="" pip install ipython[notebook]
popd
rm "$tmpdir" -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment