# Install GSL\\Ruby 1.8.3 with Mingw/MSYS at Windows failed?

**URL:** <https://rubytalk.org/t/install-gsl-ruby-1-8-3-with-mingw-msys-at-windows-failed/32065>\
**Category:** ruby-talk\
**Created:** [19 October 2006 00:40 UTC](https://rubytalk.org/t/install-gsl-ruby-1-8-3-with-mingw-msys-at-windows-failed/32065 "2006-10-19T00:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jianhong.Wang](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jianhong.Wang](https://rubytalk.org/u/Jianhong.Wang)\
**Post date:** [19 October 2006 00:40 UTC](https://rubytalk.org/t/install-gsl-ruby-1-8-3-with-mingw-msys-at-windows-failed/32065/1 "2006-10-19T00:40:06Z")

</div>

Hi

I tried installing GSL\Ruby 1.8.3 with Mingw/MSYS at Windows XP. But it  
failed, I am wondering if someone can give me some help.

I installed Ruby at Windows using a one-click Ruby installer  
ruby185-21.exe.

1. I installed GSL 1.8 with MingW/MSYS sucessfully.  
2. Try % ruby setup.rb config failed and the error information is like  
below

> **···**
>
> # ======================================================== ---\> lib ---\> lib/gsl \<--- lib/gsl \<--- lib ---\> ext c:/ruby/bin/ruby c:/Software/Ruby/rb-gsl-1.8.3/ext/extconf.rb checking gsl version... c:/Software/Ruby/rb-gsl-1.8.3/ext/extconf.rb:146: Check GSL\>=0.9.4 is installed, and the command "gsl-config" is in search path. (RuntimeError) setup.rb:535:in `command': 'system c:/ruby/bin/ruby c:/Software/Ruby/rb-gsl-1.8.3/ext/extconf.rb ' failed (RuntimeError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1112:in `extconf' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1107:in `config\_dir\_ext' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1321:in `\_\_send\_\_' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1321:in `traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1338:in `dive\_into' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1319:in `traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1313:in `exec\_task\_traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1308:in `each' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1308:in `exec\_task\_traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1097:in `exec\_config' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:878:in `exec\_config' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:710:in `\_\_send\_\_' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:710:in `invoke' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:674:in `invoke' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1352
> 
> Then I found if I changed  
> ---------------------------------------------------  
> if /mingw/ =~ RUBY\_PLATFORM  
> &nbsp;&nbsp;GSL\_CONFIG = "sh gsl-config"  
> else  
> &nbsp;&nbsp;GSL\_CONFIG = "gsl-config"  
> end
> 
> to
> 
> GSL\_CONFIG = "sh gsl-config"
> 
> # then this step can run sucessfully. and the result is like below
> 
> # ---\> lib ---\> lib/gsl \<--- lib/gsl \<--- lib ---\> ext c:/ruby/bin/ruby c:/Software/Ruby/rb-gsl-1.8.3/ext/extconf.rb checking gsl version... 1.8 checking gsl cflags... -I/usr/local/include checking for main() in cblas.lib... no checking gsl libs... -L/usr/local/lib -lgsl -lgslcblas -lm checking for rngextra/rngextra.h... no checking for gsl\_tensor/gsl\_tensor.h... no checking rb-gsl version...1.8.3 checking ruby version... 1.8.5 checking for graph... no checking for narray.h... no checking for tamu\_anova/tamu\_anova.h... no checking for main() in tamuanova.lib... no checking for round()... no creating Makefile \<--- ext
> 
> # 4. Try ruby setup.rb setup, it fails and show some error like below
> 
> # ---\> lib ---\> lib/gsl \<--- lib/gsl \<--- lib ---\> ext nmake setup.rb:535:in `command': 'system nmake ' failed (RuntimeError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:543:in `make' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1156:in `setup\_dir\_ext' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1321:in `\_\_send\_\_' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1321:in `traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1338:in `dive\_into' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1319:in `traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1313:in `exec\_task\_traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1308:in `each' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1308:in `exec\_task\_traverse' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1123:in `exec\_setup' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:883:in `exec\_setup' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:710:in `\_\_send\_\_' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:710:in `invoke' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:674:in `invoke' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from setup.rb:1352

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [19 October 2006 04:58 UTC](https://rubytalk.org/t/install-gsl-ruby-1-8-3-with-mingw-msys-at-windows-failed/32065/2 "2006-10-19T04:58:42Z")

</div>

a pre-compiled version is here - it may help

&nbsp;&nbsp;&nbsp;[http://codeforpeople.com/lib/ruby/rb-gsl-win/](http://codeforpeople.com/lib/ruby/rb-gsl-win/)

this build included narray

regards.

-a

> **···**
>
> On Thu, 19 Oct 2006, Jianhong.Wang@gmail.com wrote:
> 
> > Hi
> > 
> > I tried installing GSL\Ruby 1.8.3 with Mingw/MSYS at Windows XP. But it  
> > failed, I am wondering if someone can give me some help.
> 
> --  
> my religion is very simple. my religion is kindness. -- the dalai lama
