Skip to content

Instantly share code, notes, and snippets.

@technomancy
Created January 7, 2012 04:06
Show Gist options
  • Select an option

  • Save technomancy/1573752 to your computer and use it in GitHub Desktop.

Select an option

Save technomancy/1573752 to your computer and use it in GitHub Desktop.
building ocaml/ocsigen on heroku (doesn't work)
#!/bin/sh
# Run this on an empty Heroku app:
# heroku create -s cedar -a my-ocsigen-test
# heroku -a my-ocsigen-test run bash
OCAML_URL=http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.gz
curl $OCAML_URL | tar xzf -
cd ocaml-3.12.1
./configure -prefix /app/ocaml -no-curses -no-tk
make world.opt
make install
cd
export PATH=/app/ocaml/bin/:$PATH
FINDLIB_URL=http://download.camlcity.org/download/findlib-1.2.1.tar.gz
curl $FINDLIB_URL | tar xzf -
cd findlib-1.2.1
./configure -sitelib /app/ocaml
make all
make install
cd
curl http://p.hagelb.org/pcre-config > /app/ocaml/bin/pcre-config
chmod 755 /app/ocaml/bin/pcre-config
OCSIGEN_URL=http://ocsigen.org/download/ocsigen-bundle-2.0.2c.tar.gz
curl $OCSIGEN_URL | tar xzf -
cd ocsigen-bundle-2.0.2c
./configure --with-missing-libs --prefix=/app/ocsigen --disable-sqlite3 --disable-libev
# WTF, needs system-level pcre-dev to continue:
make -C others
make install
make
make install
cd
@tom-pang
Copy link

tom-pang commented Jan 7, 2012

-a isn't even a valid option on the current release of the heroku gem (it's --app).

@alexy
Copy link

alexy commented May 10, 2013

@technomancy, did you ever get this to work? Do Clojure people know? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment