May 13, 2013
1. Make sure you have Haskell module loaded.
[yuy121@cyberstar231: ~]# module list Currently Loaded Modulefiles: 1) realvnc/4.5r21561 6) matlab/R2012a 11) emacs/23.2 2) java/1.6.0_45 7) mkl/10.3.10.319 12) git/1.7.3.1 3) intel/11.1.073 8) netcdf/gcc/4.1.1 13) gcc/4.7.0 4) pgi/10.9 9) python/2.7.3 14) haskell/4.0.0 5) gstreamer/0.10.32 10) latex/051112
2. update cabal
[yuy121@cyberstar231: ~]# cabal update Config file path source is default config file. Config file /gpfs/home/yuy121/.cabal/config not found. Writing default configuration to /gpfs/home/yuy121/.cabal/config Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Note that all the cabal-related files are stored in ~/.cabal
3. cabal
reinstall
[yuy121@cyberstar231: ~]# cabal install cabal-install Resolving dependencies... Downloading Cabal-1.16.0.3... [ 1 of 65] Compiling Distribution.Compat.Exception ( /tmp/Cabal-1.16.0.3-10477/Cabal-1.16.0.3/Distribution/Compat/Exception.hs, /tmp/Cabal-1.16.0.3-10477/Cabal-1.16.0.3/dist/setup/Distribution/Compat/Exception.o ) [ 2 of 65] Compiling Distribution.Compat.TempFile ( /tmp/Cabal-1.16.0.3-10477/Cabal-1.16.0.3/Distribution/Compat/TempFile.hs, /tmp/Cabal-1.16.0.3-10477/Cabal-1.16.0.3/dist/setup/Distribution/Compat/TempFile.o ) ... [64 of 65] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Install.o ) [65 of 65] Compiling Main ( Main.hs, dist/build/cabal/cabal-tmp/Main.o ) Linking dist/build/cabal/cabal ... Installing executable(s) in /gpfs/home/yuy121/.cabal/bin
4. Install biosff
[yuy121@cyberstar231: ~]# cabal install biosff Resolving dependencies... Downloading cmdargs-0.10.3... Configuring cmdargs-0.10.3... Building cmdargs-0.10.3... Preprocessing library cmdargs-0.10.3... [ 1 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.o ) ... [8 of 8] Compiling Main ( src/Flower/Main.hs, dist/build/flower/flower-tmp/Main.o ) Linking dist/build/flower/flower ... Installing library in /gpfs/home/yuy121/.cabal/lib/biosff-0.3.3/ghc-7.4.2 Installing executable(s) in /gpfs/home/yuy121/.cabal/bin Registering biosff-0.3.3...
5. Check flower
[yuy121@cyberstar231: ~]# ~/.cabal/bin/flower flower: Please provide an input file - or use --help for more information.
Comments Off on Haskell on Cyberstar