soegaard / sci

Racket libraries for scientific computing
18 stars 4 forks source link

ffi-lib: could not load foreign library #5

Open rohanposthumus opened 3 years ago

rohanposthumus commented 3 years ago

During the installation of this package, raco gave the following error: raco setup: ffi-lib: could not load foreign library raco setup: path: libopenblas.dll raco setup: system error: The specified module could not be found.; win_err=126 raco setup: context...:

The documentation states: On Windows: A tester is needed. Install CBLAS and LAPACK and let me know if it works. Otherwise, make an Issue at Github and we will add the proper paths.

I don't mind being the tester. What do you recommend is the next step for Windows users?

soegaard commented 3 years ago

Hi Rohan,

Den tir. 23. feb. 2021 kl. 09.27 skrev rohanposthumus < notifications@github.com>:

During the installation of this package, raco gave the following error: raco setup: ffi-lib: could not load foreign library raco setup: path: libopenblas.dll raco setup: system error: The specified module could not be found.; win_err=126 raco setup: context...:

The documentation states: On Windows: A tester is needed. Install CBLAS and LAPACK and let me know if it works. Otherwise, make an Issue at Github and we will add the proper paths.

I don't mind being the tester.

That would be great!

What do you recommend is the next step for Windows users?

The next step is to get hold of libopenblas.dll.

I got some positive feedback from a Windows user, who used OpenBLAS ( openblas.net). That's why the Windows version right now, is looking for "libopenblas.dll". As far as I know, everything ought to work.

In the meantime I've bought a Windows machine, so I decided to try it out. But ... now I can't find any binaries anywhere. It looks as if they used to host binaries at Source Forge, but the latest versions doesn't seem to have any.

Do you happen to know where we can find a binary? Or do you know of another, easier to install, version of BLAS/LAPACK for Windows?

I noticed that Julia uses OpenBLAS, so on that account, it might be worth the trouble of figuring out, how to install it.

/Jens Axel

soegaard commented 3 years ago

Rereading the mail, I see that msys2 was mentioned, and openblas is listed as a package here:

https://packages.msys2.org/package/

Try installing openblas from here, and let me know if it works.

/Jens Axel