R
Remi Gillig
Hello,
I'm trying to load the statically linked extensions. Ruby
(1.8.7) was compiled using the "--with-static-linked-ext" flag.
I made a little program that loads and runs a Ruby script.
Unfortunately, the extensions don't seem to work inside
my own code. However, they work with the normal Ruby
interpreter.
Here is the error I have with my program :
../test.rb:2: no such file to load -- socket
./lib/ping.rb:12
./test.rb:2:in `require'
./test.rb:2
My script is :
require 'ping'
print("Ping google.com : #{Ping.pingecho("google.com", 10, 80)}\n")
The initialisation of the Ruby environment is done like this :
ruby_init();
ruby_incpush(".");
ruby_incpush("lib");
Maybe there is a function to load the static extensions
but reading the code of the Ruby interpreter is not really
clear. Any idea? Thanks.
Remi Gillig.
I'm trying to load the statically linked extensions. Ruby
(1.8.7) was compiled using the "--with-static-linked-ext" flag.
I made a little program that loads and runs a Ruby script.
Unfortunately, the extensions don't seem to work inside
my own code. However, they work with the normal Ruby
interpreter.
Here is the error I have with my program :
../test.rb:2: no such file to load -- socket
./lib/ping.rb:12
./test.rb:2:in `require'
./test.rb:2
My script is :
require 'ping'
print("Ping google.com : #{Ping.pingecho("google.com", 10, 80)}\n")
The initialisation of the Ruby environment is done like this :
ruby_init();
ruby_incpush(".");
ruby_incpush("lib");
Maybe there is a function to load the static extensions
but reading the code of the Ruby interpreter is not really
clear. Any idea? Thanks.
Remi Gillig.