Problem installing Cabal-1.4.0.1 with ghc-6.8.3

View: New views
2 Messages — Rating Filter:   Alert me  

Problem installing Cabal-1.4.0.1 with ghc-6.8.3

by Sasko Mateski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

 

After reading the latest article on the Haskell Hacking blog (Daily Haskell: Download and analyse logs, then generate sparklines) 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@...

glasgow-haskell-bugs@...

 

After some googling, I couldn't find anything on the web related to the problem, so posting to a Haskell mailing list seemed like an obvious next step.  Since I'm a novice Haskell any help would be very much appreciated, indeed.

I'm using ghc-6.8.3 on a Windows XP Professional SP3.

 

Regards

Sasko


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Problem installing Cabal-1.4.0.1 with ghc-6.8.3

by Duncan Coutts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe
LightInTheBox - Buy quality products at wholesale price