How do you install packages / libraries without Cabal or Cabal-Install?

I am trying to configure Haskell from scratch on Ubuntu 11.04, without using the deprecated Debian repository or the Haskell platform.

I installed GHC-7.0.4from the source without any problems, and now you need to install Cabal (which seems to be already included in the GHC in / usr / local / lib / ghc -7.0.4 / Cabal-1.10.2.0) and Cabal Install.

The latter defines several dependencies ( parsecand network), each of which has several own dependencies ( mtl, textetc.).

What command to install these packages that I made from hackage to tar.gz? Unzip, then runhaskell doesn't work. I see Setup.lhs, but it is not clear what it is or how to use it.

Most of the Haskell documentation that I found suggests that you installed from a repo or Haskell-Package and do not explain it very well.

Thank!

+5
source share
2 answers

cabal-installhas a shell script that does this. If you download it from hackage and install it, you can run bootstrap.shto install cabal-install. Then you can use it to install other packages.

+11
source

There are two different packages: Cabaland cabal-install. Cabal is a library, and cabal-install is an executable file with a name Cabal.

, cabal-install Cabal, Cabal.

http://hackage.haskell.org/trac/ghc/wiki/Commentary/Libraries, Cabal , , GHC, Cabal .

ghc-pkg, , :

# ghc-pkg list

, Cabal GHC. , cabal :

http://haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package

cabal-install, , cabal-install . :

# runhaskell Setup configure
# runhaskell Setup build
# sudo runhaskell Setup install

tarball Setup.hs Setup.lhs . , root - runhaskell Setup configure --user

cabal , cabal install {package-name} .

, Haskell - cabal-install .

+5

All Articles