Support Requests: Browse | Submit New | Admin

[#29286] Unable to install gem on Window XP

Date:
2011-06-18 06:47
Priority:
3
Submitted By:
Todd Moyer (toddmoyer)
Assigned To:
Nobody (None)
Category:
Install Problem (example)
State:
Open
Summary:
Unable to install gem on Window XP

Detailed description
Please help, any advice is appreciated. Output as follows...

C:\Documents and Settings\Todd\My Documents\Downloads\rb-gsl-1.14.7>gem install
gsl
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing gsl:
        ERROR: Failed to build gem native extension.

C:/Ruby191/bin/ruby.exe extconf.rb
sh: gsl-config: No such file or directory
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby191/bin/ruby
extconf.rb:237:in `rescue in <main>': Check GSL>=0.9.4 is installed, and the command "gsl-config"
is in search path. (RuntimeError)
        from extconf.rb:138:in `<main>'
checking gsl version...

Gem files will remain installed in C:/Ruby191/lib/ruby/gems/1.9.1/gems/gsl-1.14.7 for inspection.
Results logged to C:/Ruby191/lib/ruby/gems/1.9.1/gems/gsl-1.14.7/ext/gem_make.out

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-12-18 15:39
Sender: Mikhail Polovnev

Looks like you doesn't have gsl library installed.

Try following:

1. Download GSL sources (http://www.gnu.org/s/gsl/) to some folder
inside <DevKitDir>\home\Todd\

2. Extract it

3. Run the MSYS shell   ( <DevKitDir>\msys.bat )

4. Enter the GSL sources and type
  $ ./configure
  $ make
  $ make install

5. Check if gsl-config works
  $ gsl-config --version

5. run 
  $ gem install gsl --platform=ruby
inside your msys shell.


Now installer tries to compile gem... but fails.
There are others issues like this
http://rubyforge.org/forum/forum.php?thread_id=17809&forum_id
=1225

I'll write as soon as i find a full solution

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item