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

Discussion in 'Ruby' started by Jianhong.Wang@gmail.com, Oct 19, 2006.

  1. Guest

    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)
    from setup.rb:1112:in `extconf'
    from setup.rb:1107:in `config_dir_ext'
    from setup.rb:1321:in `__send__'
    from setup.rb:1321:in `traverse'
    from setup.rb:1338:in `dive_into'
    from setup.rb:1319:in `traverse'
    from setup.rb:1313:in `exec_task_traverse'
    from setup.rb:1308:in `each'
    from setup.rb:1308:in `exec_task_traverse'
    from setup.rb:1097:in `exec_config'
    from setup.rb:878:in `exec_config'
    from setup.rb:710:in `__send__'
    from setup.rb:710:in `invoke'
    from setup.rb:674:in `invoke'
    from setup.rb:1352
    =============================================================

    Then I found if I changed
    ---------------------------------------------------
    if /mingw/ =~ RUBY_PLATFORM
    GSL_CONFIG = "sh gsl-config"
    else
    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)
    from setup.rb:543:in `make'
    from setup.rb:1156:in `setup_dir_ext'
    from setup.rb:1321:in `__send__'
    from setup.rb:1321:in `traverse'
    from setup.rb:1338:in `dive_into'
    from setup.rb:1319:in `traverse'
    from setup.rb:1313:in `exec_task_traverse'
    from setup.rb:1308:in `each'
    from setup.rb:1308:in `exec_task_traverse'
    from setup.rb:1123:in `exec_setup'
    from setup.rb:883:in `exec_setup'
    from setup.rb:710:in `__send__'
    from setup.rb:710:in `invoke'
    from setup.rb:674:in `invoke'
    from setup.rb:1352
    ===============================================================
    , Oct 19, 2006
    #1
    1. Advertising

  2. Guest

    On Thu, 19 Oct 2006, 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.



    a pre-compiled version is here - it may help

    http://codeforpeople.com/lib/ruby/rb-gsl-win/

    this build included narray

    regards.

    -a
    --
    my religion is very simple. my religion is kindness. -- the dalai lama
    , Oct 19, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rhzehr
    Replies:
    4
    Views:
    1,114
    Mark McIntyre
    Apr 25, 2005
  2. Kaspar Schiess

    Ruby 1.9 on XP using mingw/msys

    Kaspar Schiess, Aug 18, 2004, in forum: Ruby
    Replies:
    0
    Views:
    145
    Kaspar Schiess
    Aug 18, 2004
  3. Wolfgang Nádasi-Donner
    Replies:
    3
    Views:
    169
    Wolfgang Nádasi-Donner
    May 4, 2007
  4. Marcel O.

    mkmf-bug under mingw without msys

    Marcel O., Feb 1, 2011, in forum: Ruby
    Replies:
    4
    Views:
    132
    Marcel O.
    Feb 7, 2011
  5. Bushido Hacks

    OT: Installing MySQL with MSYS/MINGW

    Bushido Hacks, Apr 26, 2005, in forum: Perl Misc
    Replies:
    8
    Views:
    369
    Keith Keller
    Apr 26, 2005
Loading...

Share This Page