Trouble trying to find packages for ubuntu linux

Hi, I'm a total linux newbie and am trying to get ghc6.6 installed together with all the libraries. I'm using Ubuntu linux which uses Debian package format but has its own repositories which only have ghc6.4.2 at the moment.
From the ghc downloads page it says the Debian packages are in Debian testing and unstable (I assume 'testing' is the one people are supposed to use(?)). I've managed to get ghc by itself by just browsing the Debian testing repo at http://packages.debian.org/testing/devel/ but the problem arises when I try to get the library packages, since some of them eg libghc6-base-dev, libghc6-base-prof are not listed there (also not found in the unstable repo at the corresponding url above).
I'm trying to find all the ghc library packages so I can download them to my own computer and make a local repository to then add to my /etc/apt/sources.list so that I can install the libs without the danger of their dependencies causing other things in the Debian repository to overwrite stuff I've already got from the Ubuntu repository (I've read about apt pinning but this is far too complicated and risky for me at my level of inexperience, and the last time I added the whole Debian repo to my apt sources I make a complete mess of my installation and had to start from scratch...). The ideal thing would be if there was a ghc repo hosted by haskell.org containing only ghc* + libghc* so that any Debian-related linux distro could use it safely by adding the repo to the software sources, so that other things the packages depend on could be obtained from the distro-specific repository as usual (eg libc etc). In any case has anyone managed to get the latest ghc + libs installed in Ubuntu without breaking their system (or their mind :-)) ? Thanks, Brian.

On Thu, Mar 15, 2007 at 11:32:13PM +0000, Brian Hulley wrote:
From the ghc downloads page it says the Debian packages are in Debian testing and unstable (I assume 'testing' is the one people are supposed to use(?)).
For GHC debs, they're currently identical.
I've managed to get ghc by itself by just browsing the Debian testing repo at http://packages.debian.org/testing/devel/ but the problem arises when I try to get the library packages, since some of them eg libghc6-base-dev, libghc6-base-prof are not listed there (also not found in the unstable repo at the corresponding url above).
base is provided by the ghc6 and ghc6-prof packages; see the output of $ dpkg -s ghc6 | grep Provides $ dpkg -s ghc6-prof | grep Provides for the complete list they provide. Thanks Ian

On Fri, 2007-03-16 at 00:16 +0000, Ian Lynagh wrote:
On Thu, Mar 15, 2007 at 11:32:13PM +0000, Brian Hulley wrote:
From the ghc downloads page it says the Debian packages are in Debian testing and unstable (I assume 'testing' is the one people are supposed to use(?)).
For GHC debs, they're currently identical.
I've managed to get ghc by itself by just browsing the Debian testing repo at http://packages.debian.org/testing/devel/ but the problem arises when I try to get the library packages, since some of them eg libghc6-base-dev, libghc6-base-prof are not listed there (also not found in the unstable repo at the corresponding url above).
base is provided by the ghc6 and ghc6-prof packages; see the output of
$ dpkg -s ghc6 | grep Provides $ dpkg -s ghc6-prof | grep Provides
for the complete list they provide.
Thanks - perhaps the problem was that I'd installed ghc6 directly instead of putting it into my local repo along with the libraries. However after putting the ghc6 package into my repo and uninstalling it (so I can re-install it properly from the beginning) I'm now stumped by another problem: where to find the GPG key needed to authenticate the packages? I can't find any info on the debian.org website about where to find the key or what command to use to tell apt about it. Do you know where the GPG key for the repo can be found? I've spent hours googling with no luck. Thanks, Brian.

At Fri, 16 Mar 2007 01:07:31 +0000, Brian Hulley wrote:
I can't find any info on the debian.org website about where to find the key or what command to use to tell apt about it. Do you know where the GPG key for the repo can be found? I've spent hours googling with no luck.
Hello, In general you can do: apt-get install debian-archive-keyring You might also want debian-keyring. If you point at 3rd-party repositories you can do something like this script: $ cat ~/getkey.sh #!/bin/sh gpg --keyserver subkeys.pgp.net --recv $1 && gpg --export --armor $1 | apt-key add - HTH, j.

On Thu, 2007-03-15 at 18:15 -0700, Jeremy Shaw wrote:
At Fri, 16 Mar 2007 01:07:31 +0000, Brian Hulley wrote:
I can't find any info on the debian.org website about where to find the key or what command to use to tell apt about it. Do you know where the GPG key for the repo can be found? I've spent hours googling with no luck.
Hello,
In general you can do:
apt-get install debian-archive-keyring
You might also want debian-keyring. [snipped useful script]
Thanks. However I think I might be trying to do something fundamentally impossible, because reading section 7.4.1 of the "Securing Debian Manual" at http://sdn.vlsm.org/share/Debian-Doc/manuals/securing-debian-howto/ch7.en.ht... suggests to me that the GPG key is a function of the Packages.gz file of the whole repo. However I'm trying to make my own local repo with only the ghc packages, and I made the local Packages.gz file using the command: sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz found at http://odzangba.wordpress.com/2006/10/13/how-to-build-local-apt-repositories... so the problem is that even though I've added the debian keys to apt, my local package would need a different key because my Packages.gz file is not the same as that of the whole debian repository. The authentication mechanism strangely does not appear to be per-package but per-repository afaiu. A possible way might be for me to manually authenticate each package using the MD5 checksum given in the download page then work out how to create a GPG key for my local repository and then add that to apt so that it can authenticate the local repo. Anyway it's now 2:25am so I'll need to sleep on it... Brian.

Brian Hulley wrote:
I'm trying to find all the ghc library packages so I can download them to my own computer and make a local repository to then add to my /etc/apt/sources.list
After downloading them, another option is to skip apt and repositories, e.g., sudo dpkg -i ghc6_6.6-3_i386.deb Afterwards you can still use apt-get, aptitude, synaptic, etc., to view its status and uninstall it.

Brian Hulley wrote:
I'm a total linux newbie and am trying to get ghc6.6 installed together with all the libraries. I'm using Ubuntu linux which uses Debian package format but has its own repositories which only have ghc6.4.2 at the moment.
I'm in the same situation, and found it most convenient to download and install a binary snapshot of GHC to /usr/local. (I also tried to get Ubuntu to ship 6.4.2 in Dapper and 6.6 in Edgy, but both were a tad too late. I bet 6.6.1 will arrive just after Feisty is out, too :-) Anyway: the binary snapshots are easy and quick to install, includes a bunch of libraries, and cabal makes it easy to add anything else. -k

Thanks to everyone for sending me info on how to install ghc6.6 on Ubuntu. The way I used eventually was one sent to me off list and uses the generic i86 linux at http://www.haskell.org/ghc/download_ghc_66.html#x86linux The exact steps I used after downloading the tarball at the above URL to my Desktop were: ~$ mkdir ghc-6.6 ~$ mkdir tarball ~$ mv Desktop/ghc-6.6-i386-unknown-linux.tar.bz2 tarball ~$ cd tarball ~/tarball$ tar -jxvf ghc-6.6-i386-unknown-linux.tar.bz2 ~/tarball$ sudo apt-get install libreadline4 libncurses5 ~/tarball$ cd ghc-6.6 ~/tarball/ghc-6.6$ ./configure --prefix=$HOME/ghc-6.6 ~/tarball/ghc-6.6$ make install ~/tarball/ghc-6.6$ cd ../.. ~$ gedit .bashrc& and added $HOME/ghc-6.6/bin to my PATH (must be no spaces in the line below): export PATH=$HOME/ghc-6.6/bin:$PATH Then closed the terminal and opened a new terminal and lo! ghc, ghci, and many libraries are now available! :-) Thanks again for the other suggestions also - I chose the above method just because it will allow me to easily try out different versions of ghc in future while still being able to keep the 6.6 version around just by changing my PATH to whatever version I want to use. Best regards, Brian.

i am not an ubuntu user, but are you aware that they are in fiesty?
http://packages.ubuntu.com/feisty/devel/ghc6
On 3/16/07, Brian Hulley
Thanks to everyone for sending me info on how to install ghc6.6 on Ubuntu. The way I used eventually was one sent to me off list and uses the generic i86 linux at http://www.haskell.org/ghc/download_ghc_66.html#x86linux
The exact steps I used after downloading the tarball at the above URL to my Desktop were:
~$ mkdir ghc-6.6 ~$ mkdir tarball ~$ mv Desktop/ghc-6.6-i386-unknown-linux.tar.bz2 tarball ~$ cd tarball ~/tarball$ tar -jxvf ghc-6.6-i386-unknown-linux.tar.bz2 ~/tarball$ sudo apt-get install libreadline4 libncurses5 ~/tarball$ cd ghc-6.6 ~/tarball/ghc-6.6$ ./configure --prefix=$HOME/ghc-6.6 ~/tarball/ghc-6.6$ make install ~/tarball/ghc-6.6$ cd ../.. ~$ gedit .bashrc&
and added $HOME/ghc-6.6/bin to my PATH (must be no spaces in the line below):
export PATH=$HOME/ghc-6.6/bin:$PATH
Then closed the terminal and opened a new terminal and lo! ghc, ghci, and many libraries are now available! :-)
Thanks again for the other suggestions also - I chose the above method just because it will allow me to easily try out different versions of ghc in future while still being able to keep the 6.6 version around just by changing my PATH to whatever version I want to use.
Best regards, Brian.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (6)
-
Albert Y. C. Lai
-
Anatoly Yakovenko
-
Brian Hulley
-
Ian Lynagh
-
Jeremy Shaw
-
Ketil Malde