Problem installing Cabal-1.4.0.1 with ghc-6.8.3

Hi,
After reading the latest article on the Haskell Hacking blog (Daily Haskell:
Download and analyse logs, then generate
sparklineshttp://cgi.cse.unsw.edu.au/%7Edons/blog/2008/06/24#daily-haskell-one)
I wanted to install cabal-install to check it out. Soon I found out that it
has a dependency on
Cabal (>=1.4&&<1.5), so next thing to do was getting and installing
Cabal-1.4.0.1 (since the version coming with
ghc-6.8.3 is 1.2.4.0). But during the configuration part of the installation
I got the following error:
During interactive linking, GHCi couldn't find the following symbol:
SHGetFolderPathA@20
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please send a bug report to:
glasgow-haskell-bugs@haskell.org

On Wed, 2008-06-25 at 10:15 +0200, Sasko Mateski wrote:
I wanted to install cabal-install to check it out. Soon I found out that it has a dependency on Cabal (>=1.4&&<1.5), so next thing to do was getting and installing Cabal-1.4.0.1 (since the version coming with ghc-6.8.3 is 1.2.4.0). But during the configuration part of the installation I got the following error:
During interactive linking, GHCi couldn't find the following symbol: SHGetFolderPathA@20 This may be due to you not asking GHCi to load extra object files,
Instead of using runghc Setup.hs configure, use: ghc --make Setup.hs Setup.exe configure Setup.exe build Setup.exe install (This is documented in the README in the Cabal package tarball) That way you are compiling Setup.hs using ghc rather than running it using ghci. The problem is that on Windows Cabal needs to use some Win32 FFI calls and ghci doesn't know about the libs we are linking to. You only have to use this workaround when installing Cabal itself (and only on Windows). Once it's installed the runghc method works for all other packages. Even better, once you've got cabal-install working there'll be no need for this kind of fiddling at all as cabal-install will compile Setup.hs automatically (if that's necessary, often it can do it directly without compiling Setup.hs at all). Duncan
participants (2)
-
Duncan Coutts
-
Sasko Mateski