Re: Trouble trying to find packages for ubuntu linux
Brian, I had this exact problem, and I found this approach to work wonderfully: http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/ Chad
In the spirit of... I hate package chasing, cabal doesn't do this automatically (yet), and hard disk space is cheap... Here is a script to just hit the deb/ubuntu repos and install as much haskell-loooking stuff as possible. If you're going to do this, I would recommend pulling at least from the feisty repo, as described in pupeno's blog, and in more detail in my other post linked above. Basically, this installs all ghc6* packages, with ad-hoc blocking of packages that cause aptitude to complain. The basic approach seems sound though. If it gets stuck at some point, I'll just add the offending package to the filter list. (I suspect there's a more intelligent way to do this if you know debian package management better than I do.) The script below has been cranking away for a pretty long time now -- so not only may your mileage vary, mine isnt' even yet. I also wouldn't recommend doing this on a production server. (When/if I hose my system, I can reload a virgin ubuntu in under five minutes using my linode control panel.) ********* apt-cache search libghc6 | ghc -e 'interact $ unlines . map (\l -> head $ words l ) . lines' \ | grep -ivE \(ghc6-hopengl\|libghc6-c2hs-dev\) \ | xargs apt-get -y install 2007/3/16, Chad Scherrer <chad.scherrer@gmail.com>:
Brian,
I had this exact problem, and I found this approach to work wonderfully:
http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
Chad _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
and in more detail in my other post linked above.
I meant, linked below. 2007/4/5, Thomas Hartman <tphyahoo@gmail.com>:
In the spirit of...
I hate package chasing, cabal doesn't do this automatically (yet), and hard disk space is cheap...
Here is a script to just hit the deb/ubuntu repos and install as much haskell-loooking stuff as possible.
If you're going to do this, I would recommend pulling at least from the feisty repo, as described in pupeno's blog, and in more detail in my other post linked above.
Basically, this installs all ghc6* packages, with ad-hoc blocking of packages that cause aptitude to complain.
The basic approach seems sound though. If it gets stuck at some point, I'll just add the offending package to the filter list. (I suspect there's a more intelligent way to do this if you know debian package management better than I do.)
The script below has been cranking away for a pretty long time now -- so not only may your mileage vary, mine isnt' even yet.
I also wouldn't recommend doing this on a production server. (When/if I hose my system, I can reload a virgin ubuntu in under five minutes using my linode control panel.)
*********
apt-cache search libghc6 | ghc -e 'interact $ unlines . map (\l -> head $ words l ) . lines' \ | grep -ivE \(ghc6-hopengl\|libghc6-c2hs-dev\) \ | xargs apt-get -y install
2007/3/16, Chad Scherrer <chad.scherrer@gmail.com>:
Brian,
I had this exact problem, and I found this approach to work wonderfully:
http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
Chad _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I did actually get into some (not serious) trouble running this "install them all and let god sort them out" approach. There were complaints about some haskell gtk packages which hung during the apt-get command, which I had to end with ctrl-c. Thereafter, these packages would cause error messages whenever I used apt (even for non haskell purposes). I considered this not too too serious since apt continued to install the stuff I needed, but the errors were annoying. I was able to back my package repository into a non-error-printing state by following the instructions in the "If It Hangs" section (which I just wrote) at http://www.mepis.org/docs/en/index.php/Repairing_apt-get_database Basically use apt-get --autoclean apt-get autoremove and then apt-get --purge remove package for every package causing problems The errors then stopped. The above script did leave with a lot of haskell stuff installed from packages, which is convenient, but I will refine it so it completes without errors, time allowing. 2007/4/5, Thomas Hartman <tphyahoo@gmail.com>:
and in more detail in my other post linked above.
I meant, linked below.
2007/4/5, Thomas Hartman <tphyahoo@gmail.com>:
In the spirit of...
I hate package chasing, cabal doesn't do this automatically (yet), and hard disk space is cheap...
Here is a script to just hit the deb/ubuntu repos and install as much haskell-loooking stuff as possible.
If you're going to do this, I would recommend pulling at least from the feisty repo, as described in pupeno's blog, and in more detail in my other post linked above.
Basically, this installs all ghc6* packages, with ad-hoc blocking of packages that cause aptitude to complain.
The basic approach seems sound though. If it gets stuck at some point, I'll just add the offending package to the filter list. (I suspect there's a more intelligent way to do this if you know debian package management better than I do.)
The script below has been cranking away for a pretty long time now -- so not only may your mileage vary, mine isnt' even yet.
I also wouldn't recommend doing this on a production server. (When/if I hose my system, I can reload a virgin ubuntu in under five minutes using my linode control panel.)
*********
apt-cache search libghc6 | ghc -e 'interact $ unlines . map (\l -> head $ words l ) . lines' \ | grep -ivE \(ghc6-hopengl\|libghc6-c2hs-dev\) \ | xargs apt-get -y install
2007/3/16, Chad Scherrer <chad.scherrer@gmail.com>:
Brian,
I had this exact problem, and I found this approach to work wonderfully:
http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
Chad _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
refined as below. This "one-shot install" runs without any errors. I wouldn't expect this to necessarily continue to work, as feisty is "unstable". (A little hazy on what that means) The troubles are indeed all connected to gtk. thartman@linodehaskell:~/shellenv/installs/haskell-installs>cat apt-install-as-many-haskell-libs-as-possible.sh #!/bin/bash apt-cache search libghc6 | ghc -e ' -- do not install any of the following let exclude_strings = ["ghc6-hopengl", "libghc6-c2hs-dev", "libghc6-gtk-dev", "gtk2hs-doc", "libghc6-gtkglext-dev", "libghc6-soegtk-dev", "libghc6-mozembed-dev", "libghc6-sourceview-dev", "libghc6-glade-dev" ] matches_any x xs = any (x==) xs matches_no_exclude_strings x = not $ matches_any x exclude_strings column1 l = head $ words l in interact $ unlines . filter matches_no_exclude_strings . map column1 . lines ' \ | xargs apt-get -y install -o APT::Cache-Limit=25165824 # xargs --max-lines=1 can be helpful for debugging if anything goes wrong in the above. thartman@linodehaskell:~/shellenv/installs/haskell-installs> 2007/4/6, Thomas Hartman <tphyahoo@gmail.com>:
... I will refine it so it completes without errors, time allowing.
On 05/04/07, Thomas Hartman <tphyahoo@gmail.com> wrote:
In the spirit of...
I hate package chasing, cabal doesn't do this automatically (yet), and hard disk space is cheap...
Agreed. As much as I like the rest of Ubuntu I'm beginning to dislike binary packages after only a week away from Gentoo ;-) Still, at least they install quicker! Are there recommended ways of setting up current development systems? I'm the only person on this machine, so having system-wide packages isn't much of an issue. Would I be better just building all my own from tarball rather than hoping Feisty stays up to date? Cheers, D.
This approach is fleshed out at http://groups.google.de/group/fa.haskell/browse_thread/thread/ceabae2c3fdc8a... 2007/3/16, Chad Scherrer <chad.scherrer@gmail.com>:
Brian,
I had this exact problem, and I found this approach to work wonderfully:
http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/
Chad _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Chad Scherrer -
Dougal Stanton -
Thomas Hartman