Thanks for the help, It seems that it is the root of the problem. "mount" list some mount point among which I can find "c:" but no "c:/msys/c" directory exist. I then tried to create a "c" directory and the "mount" command to create a "physical" location at the root of my path but it did not work any better.
However, I managed to install wxHaskell by doing the following: - 1) copying the wxWidget include directory "/c/haskell-platform/2010.2.0.0/mingw/include/wx-2.8" in the mingw include directory, "/c/haskell-platform/2010.2.0.0/mingw/include", (and done as well with /c/haskell-platform/2010.2.0.0/mingw/lib/wx/include/msw-unicode-release-2.8) so as not to have to pass any --extra-include-dirs to cabal, - 2) launch cabal install wx --ghc-pkg-options="-v2 --force" If my memories are correct even with 1), ghc-pkg complained about the directories not existing; when using the "--force" option as in 2), it manages to properly install the packages. It turns out my set up required some --jedi skills :-) On 04/25/2011 08:12 PM, Howard B. Golden wrote: > Hi Rémy, > > This is just a guess because I use cygwin with Windows but not msys: > > On cygwin the way to access a drive is /cygdrive/c/... > > Does /c exist by itself as a directory on msys? If not, you may need to use a > prefix similar to the way cygwin requires /cygdrive. > > Hope this helps. > > Cheers, > > Howard > Northridge, California, USA > > --- On Wed, 4/20/11, Rémy Mouëza<remy.mou...@gmail.com> wrote: > >> From: Rémy Mouëza<remy.mou...@gmail.com> >> Subject: [wxhaskell-users] Compiling WxHaskell: ghc-pkg problem with wxcore >> on Windows XP. >> To:wxhaskell-users@lists.sourceforge.net >> Date: Wednesday, April 20, 2011, 2:13 PM >> I can't manage to install >> wxHaskell's wxcore package under Windows >> despite being seemingly able to compile it. >> >> I am using the Haskell Platform 2010.2.0.0 (with ghc >> 6.12.3) on Windows >> XP, wxWidgets 2.8 with unicode support and msys with a >> setup as >> described on the following blog: >> http://blog.johantibell.com/2011/01/setting-up-haskell-development.html >> >> with a small alteration, the haskell platform being >> installed in >> C:\haskell-platform rather than "C:\Program Files\Haskell >> Platform" >> to get to compile wxWidgets. >> >> WxWidgets itself has been successfully compiled with the >> following >> configuration: >> >> $ ./configure >> --prefix=/c/haskell-platform/2010.2.0.0/mingw/ \ >> >> --enable-optimise \ >> >> --enable-unicode \ >> >> --enable-monolithic \ >> >> --enable-shared \ >> >> --enable-threads \ >> >> I have install wxdirect successfully using "cabal install >> --global >> wxdirect". I am using a "--global" install setup because >> while I >> searched for solutions it seemed to be the recommended way >> of installing >> wxHaskell. >> >> Then when I try to build wxcore, using the following >> command (I got the >> include and lib dirs using "wx-config --cxxflags --libs"): >> >> $ cabal configure --global \ >> >> >> --extra-include-dirs=/c/haskell-platform/2010.2.0.0/mingw/lib/wx/include/msw-unicode-release-2.8 >> >> \ >> >> >> --extra-include-dirs=/c/haskell-platform/2010.2.0.0/mingw/include/wx-2.8 >> \ >> >> >> --extra-lib-dirs=/c/haskell-platform/2010.2.0.0/lib >> \ >> >> >> --ghc-options="-I/c/haskell-platform/2010.2.0.0/mingw/lib/wx/include/msw-unicode-release-2.8 >> >> >> >> -I/c/haskell-platform/2010.2.0.0/mingw/include/wx-2.8 >> >> >> >> -L/c/haskell-platform/2010.2.0.0/mingw/lib >> >> >> -D__WXMSW__ -mthreads >> -Wl,--subsystem,windows -mwindows -lwx_mswu-2.8" >> $ cabal build >> >> I get the following error message at the end of the build >> (haskell >> modules and C++ binding files compile without errors): >> >> Registering wxcore-0.12.1.6... >> setup.exe: wxcore-0.12.1.6: >> library-dirs: >> >> /c/haskell-platform/2010.2.0.0/mingw/lib >> doesn't exist or isn't a >> directory >> (use --force to override) >> wxcore-0.12.1.6: include-dirs: >> >> /c/haskell-platform/2010.2.0.0/mingw/include/wx-2.8 >> doesn't exist >> or isn't a >> directory (use --force to >> override) >> wxcore-0.12.1.6: include-dirs: >> >> /c/haskell-platform/2010.2.0.0/mingw/lib/wx/include/msw-unicode-release-2.8 >> doesn't exist or isn't a directory >> (use --force to override) >> cabal.exe: Error: some packages >> failed to install: >> wxcore-0.12.1.6 failed during the >> building phase. The exception was: >> ExitFailure 1 >> >> However, the files and directories listed as missing do >> exist. >> I have also tried to do it in a MS-DOS like "cmd" console >> but I got the >> same results. >> I have try to force the install using "ghc-pkg --force" but >> when trying >> to compile the wx package, I got an error message about the >> same >> "missing" directories. >> >> Also, using a verbosity level 2, I can see that ghc-pkg is >> invoked with >> the following arguments: >> >> c:\haskell-platform\2010.2.0.0\bin\ghc-pkg.exe >> -v2 update - >> --global --no-user-package-conf >> --package-conf=dist\package.conf.inplace >> >> I am now getting short on ideas. Has anyone ever got the >> same kind of >> problem? ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users