From: Keith W. <Kei...@cl...> - 2004-11-29 11:03:28
|
Hi... recently I attempted to install wxHaskell on a system with multiple versions of GHC installed. I did ./configure --prefix=/usr/local/foo --with-opengl make su make install The "make" phase used the default "ghc" in my path. The "make install" phase used the default "ghc-pkg" in my path. However, my paths as ordinary user and as root are _different_, and so these were different: /usr/local/bin/ghc -> /usr/local/bin/ghc-6.3.20041124 versus /usr/bin/ghc-pkg -> /usr/bin/ghc-pkg-6.2.2. This had the obvious consequence of registering a wxHaskell built for one ghc, ghc-6.3.20041124, with the wrong ghc, ghc-6.2.2. AFAICS, a straightforward solution is for the configure script to determine the absolute paths of both ghc and ghc-pkg, and for the rest of the build system to use those absolute paths, rather than relying on the executable search path to find them. This still breaks if "ghc-pkg" does not correspond to "ghc" even with the same path; but this is a much less likely scenario (and the --hc=foo, --hcpkg=foo, switches are still there to address it). Thanks for a great piece of software; I'm enjoying using it! --KW 8-) -- Keith Wansbrough <kw...@cl...> http://www.cl.cam.ac.uk/users/kw217/ University of Cambridge Computer Laboratory. |