Talk:OCamlInstall

From Baka-Tsuki
Jump to navigation Jump to search

I kinda feel like most of this can be made into a script, so I started designing a one press script installer, but working from a clean install doesn't seem to work (crashes with the Godi bootstrap part one; the ocaml bytecode runtime). I've tried using different section numbers (like the recent 3.10 and the mentioned 3.09), but to no avail. I've installed Cygwin as stated exactly from the article discussion --- that is, Devel button, bc, and ncurses.

#!/bin/bash


PROXY=""
GODIVERSION=20080118
OMAKEVERSION=0.9.6.8
OMAKESUBVER=1
RLDEVVERSION=1.40

export http_proxy="$PROXY"
export PATH="/opt/godi/bin:/opt/godi/sbin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/usr/local/bin"
export MANPATH="/opt/godi/man:$MANPATH"
export OCAMLLIB=/opt/godi/lib/ocaml/std-lib/

[ ! -d "./RLinstall" ] && mkdir /RLinstall

cd /RLinstall

wget "http://download.camlcity.org/download/godi-bootstrap-$GODIVERSION.tar.gz"
wget "http://omake.metaprl.org/downloads/omake-$OMAKEVERSION-$OMAKESUBVER.tar.gz"
svn co http://svn.haeleth.net/pub/rldev

tar -zxvf godi-bootstrap-$GODIVERSION.tar.gz && rm godi-bootstrap-$GODIVERSION.tar.gz*
tar -zxvf omake-$OMAKEVERSION-$OMAKESUBVER.tar.gz && rm omake-$OMAKEVERSION-$OMAKESUBVER.tar.gz*


cd ./godi-bootstrap-$GODIVERSION
./bootstrap --section=3.09
./bootstrap_stage2

godi_build godi-extlib
godi_build godi-ulex
godi_build godi-xml-light

cd ../omake-$OMAKEVERSION
make install

cd ../rldev/src
omake && omake install

That's what I have so far, it's a bit simplistic, but I can't really spice it up until I fix the problem with Godi's bootstrapping.

M 11:35, 11 June 2008 (PDT)

You have to use section=3.09 because otherwise it will not compile correctly. That was my big mistake. It caused all kinds of trouble (omake 0.9.6.8 would not compile, syntax deprecation). You also grabbed an experimental version of GODI. The older version seems to work.

Litghost 13:49, 11 June 2008 (PDT)