Re: [Haskell-cafe] Trying to install Cabal
On Fri, 2009-02-20 at 09:19 -0500, David wrote: > Hi! > > I've just installed ghc (v 6.10.1) for Windows, and it seems to be > installed correctly, and now I'm trying to install Cabal (v1.6.0.2), > but I'm getting the following error message (along with a lot of > warnings about a deprecated something-or-other, which I assume I can > ignore): > During interactive linking, GHCi couldn't find the following symbol: > shgetfolderpa...@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-b...@haskell.org > > Am I missing a dependency, or is ghc not installed properly, or am I > doing something else wrong? As Andrea (and the README file) say you need to ghc --make Setup ./Setup configure --user ... etc The reason the first thing you tried did not work is due to: #325 SHGetFolderPath requiered to configure cabal on windows http://hackage.haskell.org/trac/hackage/ticket/325 The solution is for some Windows person to update the Win32 binding package to bind these functions, then we can import them directly rather than having to FFI import them ourselves (which does not work in ghci because we cannot tell ghci which extra dll libs are needed). Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install Cabal
the solution here is to compile Setup.hs with ghc first, i.e. "ghc --make Setup.hs" and then use the produced Setup.exe, this is also recommended un linux since runghc will have to load and interpret many modules if not. However if you've already built cabal-install against 1.6.0.1 you can simply "cabal update" and then "cabal install Cabal cabal-install" to get both working with the latest code. On Fri, Feb 20, 2009 at 3:19 PM, David wrote: > Hi! > > I've just installed ghc (v 6.10.1) for Windows, and it seems to be > installed correctly, and now I'm trying to install Cabal (v1.6.0.2), > but I'm getting the following error message (along with a lot of > warnings about a deprecated something-or-other, which I assume I can > ignore): > > C:\Temp>runghc Setup configure -p > > Distribution\Simple\Utils.hs:1:11: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\Utils.hs:4:15: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\InstallDirs.hs:1:11: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\InstallDirs.hs:4:15: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > During interactive linking, GHCi couldn't find the following symbol: > shgetfolderpa...@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-b...@haskell.org > > Am I missing a dependency, or is ghc not installed properly, or am I > doing something else wrong? > > Thanks, > David. > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install Cabal
Probably not, but I'd like to understand what I'm doing wrong. I think it might have something to do with the fact that I've also got Hugs for Windows installed. Could there be some sort of conflict? I'm just following the steps in Appendix A of "Real World Haskell", which doesn't mention the pre-built version of Cabal. Anyway, I'll try your suggestion. Thanks for your help. David. On Fri, Feb 20, 2009 at 5:31 PM, Thomas DuBuisson wrote: > Is there a reason you can't use the pre-built Cabal windows executable [1]? > > [1] http://haskell.org/cabal/download.html > > On Fri, Feb 20, 2009 at 6:19 AM, David wrote: >> Hi! >> >> I've just installed ghc (v 6.10.1) for Windows, and it seems to be >> installed correctly, and now I'm trying to install Cabal (v1.6.0.2), >> but I'm getting the following error message (along with a lot of >> warnings about a deprecated something-or-other, which I assume I can >> ignore): >> >> C:\Temp>runghc Setup configure -p >> >> Distribution\Simple\Utils.hs:1:11: >>Warning: -fffi is deprecated: use -XForeignFunctionInterface or >> pragma {-# LANGUAGE ForeignFunctionInterface#-} instead >> >> Distribution\Simple\Utils.hs:4:15: >>Warning: -fffi is deprecated: use -XForeignFunctionInterface or >> pragma {-# LANGUAGE ForeignFunctionInterface#-} instead >> >> Distribution\Simple\InstallDirs.hs:1:11: >>Warning: -fffi is deprecated: use -XForeignFunctionInterface or >> pragma {-# LANGUAGE ForeignFunctionInterface#-} instead >> >> Distribution\Simple\InstallDirs.hs:4:15: >>Warning: -fffi is deprecated: use -XForeignFunctionInterface or >> pragma {-# LANGUAGE ForeignFunctionInterface#-} instead >> >> During interactive linking, GHCi couldn't find the following symbol: >> shgetfolderpa...@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-b...@haskell.org >> >> Am I missing a dependency, or is ghc not installed properly, or am I >> doing something else wrong? >> >> Thanks, >> David. >> ___ >> Haskell-Cafe mailing list >> Haskell-Cafe@haskell.org >> http://www.haskell.org/mailman/listinfo/haskell-cafe >> > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install Cabal
Is there a reason you can't use the pre-built Cabal windows executable [1]? [1] http://haskell.org/cabal/download.html On Fri, Feb 20, 2009 at 6:19 AM, David wrote: > Hi! > > I've just installed ghc (v 6.10.1) for Windows, and it seems to be > installed correctly, and now I'm trying to install Cabal (v1.6.0.2), > but I'm getting the following error message (along with a lot of > warnings about a deprecated something-or-other, which I assume I can > ignore): > > C:\Temp>runghc Setup configure -p > > Distribution\Simple\Utils.hs:1:11: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\Utils.hs:4:15: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\InstallDirs.hs:1:11: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > Distribution\Simple\InstallDirs.hs:4:15: >Warning: -fffi is deprecated: use -XForeignFunctionInterface or > pragma {-# LANGUAGE ForeignFunctionInterface#-} instead > > During interactive linking, GHCi couldn't find the following symbol: > shgetfolderpa...@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-b...@haskell.org > > Am I missing a dependency, or is ghc not installed properly, or am I > doing something else wrong? > > Thanks, > David. > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Trying to install Cabal
Hi! I've just installed ghc (v 6.10.1) for Windows, and it seems to be installed correctly, and now I'm trying to install Cabal (v1.6.0.2), but I'm getting the following error message (along with a lot of warnings about a deprecated something-or-other, which I assume I can ignore): C:\Temp>runghc Setup configure -p Distribution\Simple\Utils.hs:1:11: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead Distribution\Simple\Utils.hs:4:15: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead Distribution\Simple\InstallDirs.hs:1:11: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead Distribution\Simple\InstallDirs.hs:4:15: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead During interactive linking, GHCi couldn't find the following symbol: shgetfolderpa...@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-b...@haskell.org Am I missing a dependency, or is ghc not installed properly, or am I doing something else wrong? Thanks, David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
On Thu, 2008-07-10 at 18:53 -0400, Brandon S. Allbery KF8NH wrote: > On 2008 Jul 10, at 14:00, Eric wrote: > > > I have downloaded cabal and am trying to install it but have gotten > > the > > following error message: > > > > C:\cabal\cabal-install-0.5.1>runghc Setup configure Note that Eric is talking about cabal-install, not the Cabal library package. > Cabal itself is a special case; you need the same version of Cabal > already installed to install it via Cabal... The Cabal library package always bootstraps using its own source code. It does not need any existing version. Despite the bootstrapping it is just an ordinary Cabal package. It can be configured and built in the standard way using runhaskell or cabal-install. > Just run "make" to bootstrap it, IIRC. Though that also works. Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
On Mon, 14 Jul 2008, Tillmann Rendel wrote: Apropos cabal-install: can i make it build documentation during the installation process and store them in some central location? I also wondered about that. Maybe a '--haddock' flag for 'cabal install' ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
Brandon S. Allbery KF8NH wrote: I have downloaded cabal and am trying to install it but have gotten the following error message: C:\cabal\cabal-install-0.5.1>runghc Setup configure Cabal itself is a special case; you need the same version of Cabal already installed to install it via Cabal... Just run "make" to bootstrap it, IIRC. Cabal managed to bootstrap just fine when installed with runhaskell Setup.hs ... as usual on my windows machine. (and running make would have been a problem). But to install cabal-install (the command line interface), you have to install cabal (the library) first. I assume that in the future, ghc will include cabal-install? Until then, it would be nice to have some ad-hoc solution to add cabal-install to a fresh installation of ghc (e.g. a tarball containing cabal-install and it's dependencies and a build script, or a script which downloads said dependencies). Currently, people have to learn dependency chasing and manual hackage/cabal installation just to install cabal-install, which does a great job at making this skill useless. Apropos cabal-install: can i make it build documentation during the installation process and store them in some central location? Tillmann ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
On 2008 Jul 10, at 14:00, Eric wrote: I have downloaded cabal and am trying to install it but have gotten the following error message: C:\cabal\cabal-install-0.5.1>runghc Setup configure Cabal itself is a special case; you need the same version of Cabal already installed to install it via Cabal... Just run "make" to bootstrap it, IIRC. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED] system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED] electrical and computer engineering, carnegie mellon universityKF8NH ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
Hello Eric. Em Qui, 2008-07-10 às 19:00 +0100, Eric escreveu: > C:\cabal\cabal-install-0.5.1>runghc Setup configure > Configuring cabal-install-0.5.1... > Setup: At least the following dependencies are missing > Cabal >=1.4&&<1.5, HTTP >=3000&&<3002, zlib >=0.4 > > I'm not sure from this message what packages I need to install to get > cabal up and running. Can anyone help? You can get these listed packages (Cabal, HTTP and zlib) in Hackage ( http://hackage.haskell.org/ ). Greetings. -- Marco Túlio Gontijo e Silva Página: http://marcotmarcot.googlepages.com/ Blog: http://marcotmarcot.blogspot.com/ Correio: [EMAIL PROTECTED] XMPP: [EMAIL PROTECTED] IRC: [EMAIL PROTECTED] Telefone: 25151920 Celular: 98116720 Endereço: Rua Turfa, 639/701 Prado 30410-370 Belo Horizonte/MG Brasil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Trying to install cabal
eeoam: > Dear all, > > I have downloaded cabal and am trying to install it but have gotten the > following error message: > > C:\cabal\cabal-install-0.5.1>runghc Setup configure > Configuring cabal-install-0.5.1... > Setup: At least the following dependencies are missing >Cabal >=1.4&&<1.5, HTTP >=3000&&<3002, zlib >=0.4 > > I'm not sure from this message what packages I need to install to get > cabal up and running. Can anyone help? All Haskell packages of good repute live on hackage.haskell.org. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Trying to install cabal
Dear all, I have downloaded cabal and am trying to install it but have gotten the following error message: C:\cabal\cabal-install-0.5.1>runghc Setup configure Configuring cabal-install-0.5.1... Setup: At least the following dependencies are missing Cabal >=1.4&&<1.5, HTTP >=3000&&<3002, zlib >=0.4 I'm not sure from this message what packages I need to install to get cabal up and running. Can anyone help? Eric M. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe