0

嗨,我在 Windows 7 上并想安装 GSL http://www.gnu.org/software/gsl/以便我可以将它与 Ruby GSL http://rb-gsl.rubyforge.org/一起使用。

我安装了 MINGW 和 MSYS。我在这里找到了 1.13 版 GSL 的二进制安装程序http://ascend4.org/Binary_installer_for_GSL-1.13_on_MinGW但由于最新版本是 1.15 于 2011 年 5 月 6 日发布,我认为构建它来安装它会很好,但我没有不怎么样。

谁能告诉我如何构建它以便安装Windows?

4

1 回答 1

1

我修改了安装 GNU 线性编程工具包 (GLPK) 的步骤,该工具包也有 ruby​​ 包装器“rglpk”。 http://en.wikibooks.org/wiki/GLPK/Ruby

打开

运行 cd /C/temp/gsl-1.14 ./configure --enable-shared make make check make install cp include/gsl-config /C/Ruby193/include/ruby-1.9.1 cp src/.libs/libgsl.a /C/Ruby193/lib 宝石安装 gsl

如果这不起作用,那么在 Virtual Box 上安装 Ubuntu 并在那里构建你的包可能更有意义。

https://www.virtualbox.org/ http://www.ubuntu.com/

于 2011-12-28T16:32:11.527 回答