
In order support some older software that we released, we need to get a working GHC 7.4.2 on Ubuntu Trusty. We currently have GHC 7.8.3. The binary tarball for GHC 7.4.2 does not install on Trusty due to multiple incompatibilities. For example, GHC requires GMP 3, but Trusty only provides GMP >= 4. Etc. I tried building GHC 7.4.2. from source on Trusty. But the process won't boot from our currently installed GHC 7.8.3. The oldest GHC binary I can get is GHC 7.6.3, which happens to be still available from the Ubuntu distribution itself (neither the binary tarball nor compiling from source work for GHC 7.6.3 on Trusty either). But booting from GHC 7.6.3 won't work either. How do I get a working GHC 7.4.2 on Trusty? Thanks, Yitz

Here's an off-the-wall solution idea: you could try the Nix package
manager. It essentially sandboxes everything all the time, so you
shouldn't have any trouble with dependencies like this, and ghc 7.4.2 is
explicitly supported. Of course, if your requirements include tight apt
integration, this won't help; but if you just need to get things running
reliably "somehow", I think Nix can handle it.
Feel free to message me off-list for more details.
Ryan
On Wed, Oct 22, 2014 at 6:48 AM, Yitzchak Gale
In order support some older software that we released, we need to get a working GHC 7.4.2 on Ubuntu Trusty. We currently have GHC 7.8.3.
The binary tarball for GHC 7.4.2 does not install on Trusty due to multiple incompatibilities. For example, GHC requires GMP 3, but Trusty only provides GMP >= 4. Etc.
I tried building GHC 7.4.2. from source on Trusty. But the process won't boot from our currently installed GHC 7.8.3. The oldest GHC binary I can get is GHC 7.6.3, which happens to be still available from the Ubuntu distribution itself (neither the binary tarball nor compiling from source work for GHC 7.6.3 on Trusty either). But booting from GHC 7.6.3 won't work either.
How do I get a working GHC 7.4.2 on Trusty?
Thanks, Yitz _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Wed, 2014-10-22 at 13:48 +0300, Yitzchak Gale wrote:
In order support some older software that we released, we need to get a working GHC 7.4.2 on Ubuntu Trusty. We currently have GHC 7.8.3.
The binary tarball for GHC 7.4.2 does not install on Trusty due to multiple incompatibilities. For example, GHC requires GMP 3, but Trusty only provides GMP >= 4. Etc.
You can try to make a symlink from libgmp.so.10 to libgmp.so.3 AFAIK ghc doesn't use anything specific to new gmp. Then you can recompile with ghc from sources and link it with gmp10. Also precise provides both gmp3 and gmp10, so you can bootstrap on precise using 7.4.2/gmp3 to get 7.4.2/gmp10 binary.
I tried building GHC 7.4.2. from source on Trusty. But the process won't boot from our currently installed GHC 7.8.3. The oldest GHC binary I can get is GHC 7.6.3, which happens to be still available from the Ubuntu distribution itself (neither the binary tarball nor compiling from source work for GHC 7.6.3 on Trusty either). But booting from GHC 7.6.3 won't work either.
How do I get a working GHC 7.4.2 on Trusty?
Thanks, Yitz _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (3)
-
Ryan Trinkle
-
Yitzchak Gale
-
Yuras Shumovich