Skip to content

Instantly share code, notes, and snippets.

@avsm avsm/setup-iocaml-macos.sh
Last active Aug 29, 2015

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

fdagnat commented Feb 18, 2014

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

@andrewray

This comment has been minimized.

Copy link

andrewray commented Feb 18, 2014

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

This comment has been minimized.

Copy link

brabalan commented Jan 16, 2015

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
You can’t perform that action at this time.