OCaml iocaml on MacOS X 10.9 howto
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
#!/bin/sh | |
# Various things to get OCaml/IPython working on MacOS X | |
# get the right version of zmq | |
brew tap homebrew/versions | |
brew install zeromq32 | |
brew link zeromq32 | |
# install ipython | |
pip install ipython | |
pip install pyzmq | |
pip install jinja2 | |
pip install tornado | |
# install from latest opam sources | |
opam update | |
opam install iocaml | |
# configure ipython | |
ipython profile create iocaml | |
cp -r `opam config var share`/iocaml/profile/* ~/.ipython/profile_iocaml | |
# all set! | |
git clone git://github.com/andrewray/iocaml | |
cd iocaml/notebooks | |
ipython notebook --profile iocaml |
A wee FYI; this line is almost certainly correct for this installation procedure
cp -r `opam config var share`/iocaml/profile/* ~/.ipython/profile_iocaml
However, if you play with different versions of IPython the profile directory can mysteriously move! This should always work
cp -r `opam config var share`/iocaml/profile/* `ipython locate profile iocaml`
I'm giving this a try, but the directory (opam config var share)/iocaml/
is empty (there is no `profile sub directory).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script worked like a charm on my os x 10.9...
Thanks for sharing