lambda-llama / bitset

A compact functional set data structure
http://hackage.haskell.org/package/bitset
MIT License
13 stars 13 forks source link

Error Installing Haskell BitSet Package on Windows XP #9

Closed alhambra1 closed 11 years ago

alhambra1 commented 11 years ago

Hi,

If you have the time, please see my question on SO, here:

http://stackoverflow.com/questions/17632434/error-installing-haskell-bitset-package-on-windows-xp

Thanks,

superbobry commented 11 years ago

Hello, thank you for reporting this. Unfortunately I've never used Haskell under Windows, so I can't really give any specific advice, however, the issue is clearly related to the missing libgmp.dll in the linker path.

On Linux, GHC is linked dynamically with GMP:

$ ldd /usr/lib/ghc/lib/ghc
    # ...
    libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f97df3d9000)

Maybe the same is true for Windows version? can you please look for the DLL in the GHC / Platform directory tree?

alhambra1 commented 11 years ago

Hi Sergei,

A windows search found this:

C:\Program Files\Haskell Platform\2012.4.0.0\mingw\bin\libgmp-10.dll

Could that help?

Sincerely, Gilad

On Sun, Jul 14, 2013, at 05:38 PM, Sergei Lebedev wrote:

Hello, thank you for reporting this. Unfortunately I've never used Haskell under Windows, so I can't really give any specific advice, however, the issue is clearly related to the missing libgmp.dll in the linker path.

On Linux, GHC is linked dynamically with GMP:

$ ldd /usr/lib/ghc/lib/ghc

...

libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f97df3d9000)

Maybe the same is true for Windows version? can you please look for the DLL in the GHC directory tree?

Reply to this email directly or [1]view it on GitHub. [a3ennMFEw074u61Ekxip3PBvTFbuTtvt-cxuGBRXIIvaW_OtCoYuSHxvPab9k-a5.gif]

References

  1. https://github.com/lambda-llama/bitset/issues/9#issuecomment-20944369

http://www.fastmail.fm - Choose from over 50 domains or use your own

superbobry commented 11 years ago

Gilad, I've fixed an issue with Windows builds yesterday, but I've only tested it in VirtualBox. Can you please try to build the latest version from master and confirm that it works for you?

alhambra1 commented 11 years ago

high five

shesliva

gilad

On Tue, Jul 16, 2013, at 03:13 AM, Sergei Lebedev wrote:

Gilad, I've fixed an issue with Windows builds yesterday, but I've only tested it in the VirtualBox. Can you please try to build the latest version from master and confirm that it works for you?

Reply to this email directly or [1]view it on GitHub. [a3ennMFEw074u61Ekxip3PBvTFbuTtvt-cxuGBRXIIvaW_OtCoYuSHxvPab9k-a5.gif]

References

  1. https://github.com/lambda-llama/bitset/issues/9#issuecomment-21025091

http://www.fastmail.fm - Email service worth paying for. Try it for free

superbobry commented 10 years ago

@alhambra1 can you please try building the master version of bitset on Windows, if you still happen to use the library? The previous solution (adding gmp.h from OS X) seems like a gross hack, especially since GHC is linked agains its own version of libgmp.

I think your original issue can be worked around by pointing C_INCLUDE_DIRS to the directory with libgmp headers.

alhambra1 commented 10 years ago

Sure. Here's what happened after unzipping the master from github:

C:\Users\IBM-USER\Desktop>cd bitset-master

C:\Users\IBM-USER\Desktop\bitset-master>runhaskell setup configure

Configuring bitset-1.4.8...

C:\Users\IBM-USER\Desktop\bitset-master>runhaskell setup build

bin\mkDerivedGmpConstants.c:15:17: fatal error: gmp.h: No such file or directory

compilation terminated.

C:\Users\IBM-USER\Desktop\bitset-master>

Sincerely,

Gilad

gilad12@fastmail.fm

On Wed, May 14, 2014, at 10:07 AM, Sergei Lebedev wrote:

[1]@alhambra1 can you please try building the master version of bitset on Windows, if you still happen to use the library? The previous solution (adding gmp.h from OS X) seems like a gross hack, especially since GHC is linked agains its own version of libgmp.

I think your original issue can be worked around by pointing C_INCLUDE_DIRS to the directory with libgmp headers.

Reply to this email directly or [2]view it on GitHub. [1774245__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNTY5NTYyN iwiZGF0YSI6eyJpZCI6MTM2NDU2MzV9fQ==--076c7cbde1aec38892711cf0cb35c93342 88cd54.gif]

References

  1. https://github.com/alhambra1
  2. https://github.com/lambda-llama/bitset/issues/9#issuecomment-43084394

http://www.fastmail.fm - IMAP accessible web-mail