-
Notifications
You must be signed in to change notification settings - Fork 16
Installing Hubris Haskell
These steps are for Ubuntu 9.10. They may work for other ’nixy environments.
You also need to be using GHC 6.12, compiled to allow creating shared objects.
See Installation of GHC 6.12.1 on Ubuntu 9.10 for some details.
Some important things to know:
- You have to have built your ruby with the shared option, since Haskell-Hubris will look for
libruby.so
- You may have to tweak the Haskell-Hubris files, unless they’ve been updated.
The ultimate goal is that this package can be installed via a simple cabal install hubris
invocation. In the meantime you need to work with the source files.
That means getting source code. You can fetch from the GitHub repo, or download the cabal package and unbundle it.
Download the hubris cabal package
Unpack it and cd into the source directory.
Delete Includes.hs
Run these commands (I ended up putting this into a shell script file since I initially had to tweak it a bit until it workd):
runhaskell Setup.hs clean
runhaskell Setup.hs configure --enable-shared --user \
--extra-include-dirs=/usr/local/lib/ruby/1.8/i686-linux \
--extra-include-dirs=/usr/local/lib/ \
--extra-lib-dirs=/usr/local/lib/
runhaskell Setup.hs build
# runhaskell Setup.hs install
You will likely have to alter this to use the correct paths for your Ruby libs and headers.
Once you are sure this is working you can uncomment the last line to complete the installation.
Note that this is based off the assumption you have been installing packages to your own user location. I (James) have found that to be handy when I need to poke around or remove things.