A
Alexandru Popescu
Hi!
For the first time I am trying to install a Ruby package that has C
extensions (at least this is what I read). I am talking about
rubynode-0.1.0.
So, I have unarchived the tar.gz and tried running ruby setup.rb.
Unfortunately what I see is:
[console]
D:\mydlds\ruby\rubynode-0.1.0>ruby setup.rb
---> lib
<--- lib
---> ext
---> ext/ruby_node_ext
C:/ruby/ruby_1.8.4/bin/ruby.exe
D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/extconf.rb
C:/ruby/ruby_1.8.4/lib/ruby/1.8/i386-mswin32/node.h
is different from
D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/ruby_src/1.8.4/node.h
Please set RUBY_SOURCE_DIR to the source path of the current ruby!
*** D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/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
--srcdir=D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext
--curdir
--ruby=C:/ruby/ruby_1.8.4/bin/ruby
setup.rb:655:in `command':
system("C:\\ruby\\ruby_1.8.4\\bin\\ruby.exe"
"D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext
/extconf.rb") failed (RuntimeError)
from setup.rb:660:in `ruby'
from setup.rb:1238:in `extconf'
from setup.rb:1230:in `config_dir_ext'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1534:in `traverse'
from setup.rb:1533:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1223:in `exec_config'
from setup.rb:991:in `exec_config'
from setup.rb:812:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
[/console]
I have an WinXP system, on which I have Ruby 1.8.4 (OneClickInstall -
I am reading the thread about compilers; in fact I am the one that
re-started somehow this discussion ), and MinGW.
If I try setting the env variable
RUBY_SOURCE_DIR=C:\ruby\ruby_1.8.4\src\ruby-1.8.4\ or alternatives I
am always seeing the same error.
How can I get passed this? (so that I at least reach the problem
regarding compilers).
/alex
For the first time I am trying to install a Ruby package that has C
extensions (at least this is what I read). I am talking about
rubynode-0.1.0.
So, I have unarchived the tar.gz and tried running ruby setup.rb.
Unfortunately what I see is:
[console]
D:\mydlds\ruby\rubynode-0.1.0>ruby setup.rb
---> lib
<--- lib
---> ext
---> ext/ruby_node_ext
C:/ruby/ruby_1.8.4/bin/ruby.exe
D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/extconf.rb
C:/ruby/ruby_1.8.4/lib/ruby/1.8/i386-mswin32/node.h
is different from
D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/ruby_src/1.8.4/node.h
Please set RUBY_SOURCE_DIR to the source path of the current ruby!
*** D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext/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
--srcdir=D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext
--curdir
--ruby=C:/ruby/ruby_1.8.4/bin/ruby
setup.rb:655:in `command':
system("C:\\ruby\\ruby_1.8.4\\bin\\ruby.exe"
"D:/mydlds/ruby/rubynode-0.1.0/ext/ruby_node_ext
/extconf.rb") failed (RuntimeError)
from setup.rb:660:in `ruby'
from setup.rb:1238:in `extconf'
from setup.rb:1230:in `config_dir_ext'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1534:in `traverse'
from setup.rb:1533:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1223:in `exec_config'
from setup.rb:991:in `exec_config'
from setup.rb:812:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
[/console]
I have an WinXP system, on which I have Ruby 1.8.4 (OneClickInstall -
I am reading the thread about compilers; in fact I am the one that
re-started somehow this discussion ), and MinGW.
If I try setting the env variable
RUBY_SOURCE_DIR=C:\ruby\ruby_1.8.4\src\ruby-1.8.4\ or alternatives I
am always seeing the same error.
How can I get passed this? (so that I at least reach the problem
regarding compilers).
/alex