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
···
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
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.
Verify that socket.so is installed. Generally it's in CONFIG["archdir"]
I checked the system and sure enough the socket.so file was not found.
Is there anyway to built it or should I recompile ruby?
Thank you
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.
Verify that socket.so is installed. Generally it’s in CONFIG[“archdir”]
I am having the same problem wth socket installing on AIX 4.3.
No errors during compile.
If I go into the ext/socket directory and run
ruby extconf.rb
make
I get
Target "all" is up to date.
Target "install" is up to date.
However, looking at mkmf.log I am getting a lot of errors similar to
the following:
have_library: checking for t_open() in -lnsl... -------------------- no
"gcc -brtl -bI:/fs_export/home_dirs/amoody/ruby/ext/socket/ruby.imp
-bM:SRE -T512 -H512 -oconf
test -I/fs_export/home_dirs/amoody/ruby/ext/socket
-I/usr/local/lib/ruby/1.8/powerpc-aix4.3.3.0
-g -O2 conftest.c -L"/usr/local/lib" -lruby-static -lnsl -ldl
-lcrypt -lm -lc"
gcc: unrecognized option `-H512'
gcc: installation problem, cannot exec `cpp': A file or directory in
the path name does not exi
st.
gcc: file path prefix
`/opt/freeware/GNUPro/lib/gcc-lib/M:SRE/2.9-aix51-020209/' never used
checked program was: