Created
January 7, 2012 04:06
-
-
Save technomancy/1573752 to your computer and use it in GitHub Desktop.
building ocaml/ocsigen on heroku (doesn't work)
This file contains hidden or 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 | |
| # 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-a isn't even a valid option on the current release of the heroku gem (it's --app).