Skip to content

Instantly share code, notes, and snippets.

@avsm
Last active August 29, 2015 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save avsm/9041133 to your computer and use it in GitHub Desktop.
OCaml iocaml on MacOS X 10.9 howto
#!/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
@fdagnat
Copy link

fdagnat commented Feb 18, 2014

This script worked like a charm on my os x 10.9...
Thanks for sharing

@andrewray
Copy link

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`

@brabalan
Copy link

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