From: Bernhard Urban Date: Thu, 26 Apr 2012 19:04:14 +0000 (+0200) Subject: tools: script for installing the required haskell environment X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=commitdiff_plain;h=95cc49e2567d0903d871a1672b059499f11e0291 tools: script for installing the required haskell environment --- diff --git a/Makefile b/Makefile index aacf0ff..48f9c92 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ GHC_LD := -optl-Xlinker -optl-x all: mate $(CLASS_FILES) -test: $(TEST_CLASS_FILES) +test: mate $(TEST_CLASS_FILES) %: %.class mate @./tools/openjdktest.sh $@ diff --git a/README b/README index 67ebed3..aacc02e 100644 --- a/README +++ b/README @@ -1,4 +1,17 @@ +MateVM is i686 only, at the moment. + == DEPENDENCIES == +=== GHC === +install GHC via your distro manager. make sure you install +it with shared libaries. +on ubuntu 12.04 LTS it is: + $ sudo apt-get install ghc-dynamic + +for an "easy" installation of the remaining packages, you can use +the script "./tools/installhaskellenv.sh". +note, that it deletes your ~/.cabal and ~/.ghc directory first. + + === HARPY === $ cabal install harpy --enable-shared @@ -21,6 +34,7 @@ for `hs-java' a patched build is needed: hint: for some unknown reason yet, it seems building from source will be easier if you first install `hs-java' via cabal (like `harpy' above) + === MISC === $ cabal install missingh --enable-shared $ cabal install heap --enable-shared @@ -145,28 +159,30 @@ libraries (yes, no x86_64 so far!): unix-2.5.1.0 /home/lewurm/.ghc/i386-linux-7.4.1/package.conf.d: - Glob-0.7 HUnit-1.2.4.2 MissingH-1.1.1.0 + QuickCheck-2.4.2 binary-state-0.1.1 - bindings-DSL-1.0.15 control-monad-exception-0.10.2 data-binary-ieee754-0.4.2.1 disassembler-0.1.0.1 - dlist-0.5 failure-0.2.0.1 + ghc-paths-0.1.0.8 harpy-0.4.3.0 + haskell-src-1.0.1.5 + heap-1.0.0 hs-java-0.2 hslogger-1.1.5 monadloc-0.6 mtl-1.1.1.1 - mtl-2.1 - network-2.3.0.11 + mtl-2.1.1 + network-2.3.0.13 parsec-2.1.0.1 + plugins-1.5.2.1 random-1.0.1.1 regex-base-0.93.2 regex-compat-0.95.1 regex-posix-0.95.1 - transformers-0.2.2.0 + syb-0.3.6.1 transformers-0.3.0.0 utf8-string-0.3.7 diff --git a/tools/.gitignore b/tools/.gitignore new file mode 100644 index 0000000..e495c5b --- /dev/null +++ b/tools/.gitignore @@ -0,0 +1,2 @@ +harpy +hs-java diff --git a/tools/installhaskellenv.sh b/tools/installhaskellenv.sh new file mode 100755 index 0000000..c9dd8f8 --- /dev/null +++ b/tools/installhaskellenv.sh @@ -0,0 +1,27 @@ +#!/bin/bash -x + +rm -rf ~/.ghc ~/.cabal +cabal update +cabal install cabal-install +export PATH=~/.cabal/bin:$PATH +cabal update +cabal install hs-java --enable-shared +cabal install harpy --enable-shared +cabal install missingh --enable-shared +cabal install heap --enable-shared +cabal install plugins --enable-shared + +git clone git://wien.tomnetworks.com/harpy.git +cd harpy +cabal install --enable-shared +cd .. +rm -rf harpy + +git clone git://wien.tomnetworks.com/hs-java.git +cd hs-java +git checkout -t origin/v0.2 +cabal install --enable-shared +cd .. +rm -rf hs-java + +echo DONE