Problem with socket

R

Ruby Ruby

--0-1586960639-1082898896=:98847
Content-Type: text/plain; charset=us-ascii


I am trying to run a program that has: require "socket" at the beginning.I am getting the error: pgm.rb:1:in 'require': No such file to load -- socket (LoadError) This is under AIX (Unix) and it happens under 1.8.0 and 1.8.1. I think it got to be perhaps a path issue or I may need something else under Unix.

Could anyone help? Thank you
 
T

ts

R> I am trying to run a program that has: require "socket" at the
R> beginning.I am getting the error: pgm.rb:1:in 'require': No such file to
R> load -- socket (LoadError) This is under AIX (Unix) and it happens under
R> 1.8.0 and 1.8.1. I think it got to be perhaps a path issue or I may need
R> something else under Unix.

Verify that socket.so is installed. Generally it's in CONFIG["archdir"]

svg% ruby -rrbconfig -e 'p Dir[Config::CONFIG["archdir"] + "/sock*"]'
["/usr/local/lib/ruby/1.8/i686-linux/socket.so"]
svg%

If you don't find it : this mean that ruby was not able to build it at
compile it : try to see if it give errors, when you compile it


Guy Decoux
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top