Hello Ginkolo,
I made a sfs package of the ghc system. It includes all sources and also a lot of documentatio. So it is rather large ~110 MB.
Download of ghc-12.6.1.sfs
Executables are in /usr/local/bin.
You can start the compiler mode with
ghc-6.12.1 and the interpreter mode with
ghci-6.12.1 from terminal. Later I saw that I didn't got the latest stable release which is version 6.12.3, hrmmmpf ...
However If you want to keep up-to-date this should help you building on your own (you will need the devx.sfs)
Cookbook:
I downloaded the package "for all Linux distros"
ghc-6.12.1.20100329-i386-unknown-linux.tar.bz2
open terminal in your download location ([Tab] means press Tab for autocompletion of name) and then type the following commands:
Code: Select all
# tar xjvf ghc-[Tab]
# cd ghc-[Tab]
# ./configure (*)
# new2dir make install (**)
# cd ..
# mksquashfs ghc-12.6.1-i468 ghc-12.6.1.sfs (***)
Ok, the stars indicate that it was not completely straightforward, at
* it complained for a missing libgmp.so.3
and at ** it complained about missing libtinfo.so which turned out that libtinfo is included in libncursesw and so I downloaded the libraries from
http://www.puppylinux.ca/tpp/ttuuxxx/Libs/
and symlinked libtinfo.so to libncursesw.so like this
Code: Select all
# ln -s libncursesw.so.5 libtinfo.so.5
# ln -s libtinfo.so.5 libtinfo.so
then I put the missing libraries in /usr/lib. I guess it is better to include them also in the sfs package, therefore i copied them into /ghc-12.6.1-i486/usr/lib before the mksquashfs command (thats why there is the (***)).
Build took about 30 minutes on my dual core machine ...
I doubt that it will work in Lupu but you can try, otherways the above cookbook should give you a starter to build your own version (there is also a ubuntu binary on their server, but binaries don't always work so well).
Edit: Oh, I forgot: Welcome to the puppy forum!