
The web site lists these two places to get Debian packages (.debs): ix86-Linux for Debian: http://people.debian.org/~bfulgham/nhc98 http://www-i2.informatik.rwth-aachen.de/Software/Haskell/debian/ --but neither link leads anywhere fruitful. So, I decide to build from nhc98src-1.14a.tar.gz on my Debian 3.0 ("Woody") machine, getting the following fatal error: sh /n/cs/nhc98-1.14a/targets/ix86-Linux/hmake3.config hmake-config: Warning: Config file not found: '/n/cs/nhc98-1.14a/lib/ix86-Linux/hmakerc' hmake-config: Starting new config from scratch. sh: /usr/bin/ghc-pkg-5.02.2: No such file or directory On my system, /usr/bin/ghc-pkg is a symlink to /etc/alternatives/ghc-pkg which is a symlink to /usr/lib/ghc-5.02.2/bin/ghc-pkg which is a symlink to ghc-pkg-5.02.2 (Yes, I do that many symlinks is stupid.) Please tell me the easiest way to get basic NHC installed.

On Tue, 04 Feb 2003 22:12:17 -0800
Richard Uhtenwoldt
The web site lists these two places to get Debian packages (.debs):
ix86-Linux for Debian: http://people.debian.org/~bfulgham/nhc98 http://www-i2.informatik.rwth-aachen.de/Software/Haskell/debian/
You can get sources and binaries from: ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98_1.4-8_i386.deb ftp://ftp.debian.org/debian/pool/main/n/nhc98/nhc98-doc_1.4-8_all.deb ftp://ftp.debian.org/debian/pool/main/h/hmake/hmake_3.06-2_i386.deb ftp://ftp.debian.org/debian/pool/main/h/hat/hat_2.00-5_i386.deb Or, you can adjust your /etc/apt/sources.lst to point to the "testing" branch of Debian and use apt-get to install and handle dependencies for you. Thanks, -Brent

Richard Uhtenwoldt
The web site lists these two places to get Debian packages (.debs): ix86-Linux for Debian: http://people.debian.org/~bfulgham/nhc98 http://www-i2.informatik.rwth-aachen.de/Software/Haskell/debian/ --but neither link leads anywhere fruitful.
I have updated the "downloads" page with the new location of the .deb packages. Thanks to Brent for the updated information.
sh: /usr/bin/ghc-pkg-5.02.2: No such file or directory
On my system, /usr/bin/ghc-pkg is a symlink to ...
It looks as though the debian installation of ghc is non-standard. All of ghc-5.02.2, ghci-5.02.2, and ghc-pkg-5.02.2, should exist in addition to ghc, ghci, and ghc-pkg. The idea is that you can have several versions of ghc installed simultaneously, and refer to the version number explicitly to select any non-default one. Regards, Malcolm

* Richard Uhtenwoldt
http://www-i2.informatik.rwth-aachen.de/Software/Haskell/debian/
Yes, Brent's packages supersede mine. The archive is stale.
On my system, /usr/bin/ghc-pkg is a symlink to /etc/alternatives/ghc-pkg which is a symlink to /usr/lib/ghc-5.02.2/bin/ghc-pkg which is a symlink to ghc-pkg-5.02.2
(Yes, I do that many symlinks is stupid.)
*wearing the Debian GHC maintainer's hat*
Well, if you care you could ask yourself why I did it like this.
Looking into /etc/alternatives/, there are seemingly many other
packages doing the same thing. The update-alternatives(8) man page is
a good starting place, too.
In short:
* to be able to have ghc4 and ghc5 (two different packages, explicit
decision by me back then) coexist friendly on one system.
* to give admins an easy choice about the site-wide default
compiler.
* Malcolm Wallace
It looks as though the debian installation of ghc is non-standard.
Which standard? The upstream tarball installs to /usr/local by default or whereever I want to, IIRC.
All of ghc-5.02.2, ghci-5.02.2, and ghc-pkg-5.02.2, should exist in addition to ghc, ghci, and ghc-pkg.
They do exist: [215]% dpkg -L ghc5|grep 'bin/.*5.04' /usr/lib/ghc-5.04.2/bin/ghc-pkg-5.04.2 /usr/lib/ghc-5.04.2/bin/ghc-5.04.2 /usr/lib/ghc-5.04.2/bin/ghci-5.04.2 To switch between ghc4 and ghc5: export PATH=/usr/lib/ghc-$VERSION/bin:$PATH Easy setup, all programs (including the non-version-in-name ones) always consistantly fitting together. Least maintenance effort. No shared/overwritten files. Works for me since ~1999.
The idea is that you can have several versions of ghc installed simultaneously, and refer to the version number explicitly to select any non-default one.
It's not possible to install more than one version of a single Debian package. Whether this is a good thing or not may be arguable, but it's the status quo. If someone wants different versions of the same software installed, it's a special need, and so s/he needs to install them locally to ~/, or some other place. Creating a .deb with a different name is also an option. I try to keep it relatively easy, even. I think only two files need trivial changes, but I haven't tried this in a long time. I do accept patches and am responsive to questions usually, though. HTH, HAND :) Michael (not subscribed, please honor the M-F-T header)
participants (4)
-
Brent Fulgham
-
Malcolm Wallace
-
Michael Weber
-
Richard Uhtenwoldt