I have read all the posts and google output on zlib which rubygem
install (and any require) cannot find.
I have rerun ext/zlib
rs6000:/huge/ruby-1.8.4/ext/zlib>ruby extconf.rb
checking for deflateReset() in -lz… yes
checking for zlib.h… yes
checking for kind of operating system… Unix
creating Makefile
and make
rs6000:/huge/ruby-1.8.4/ext/zlib>make
cc -g -I. -I/usr/local/lib/ruby/1.8/powerpc-aix4.3.3.0
-I/usr/local/lib/ruby/1.8/powerpc-aix4.3.3.0 -I. -DHAVE_ZLIB_H
-I/usr/local/include -DOS_CODE=OS_UNIX -c zlib.c
/usr/ccs/bin/ld -brtl -eInit_zlib
-bI:/usr/local/lib/ruby/1.8/powerpc-aix4.3.3.0/ruby.imp -bM:SRE -T512
-H512 -L"/usr/local/lib" -o zlib.so zlib.o -lz -ldl -lcrypt -lm
-lc
Target “all” is up to date.
I believe I missed someting in the configuration which points to my
(existing] zlib, or the object code is “unloadable”.
Mat, thanks for your effort. I will abandon this - the support on AIX
seems to be awfully sparce.
In my case (on aix 4.3), I just installed the files from the zlib
package in the locations:
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/share/man/man3/zlib.3
I didn’t seem to have much trouble building ruby at that point.
I believe I missed someting in the configuration which points to my
(existing] zlib, or the object code is “unloadable”.
Mat, thanks for your effort. I will abandon this - the support on AIX
seems to be awfully sparce.
In my case (on aix 4.3), I just installed the files from the zlib
package in the locations:
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/share/man/man3/zlib.3
I didn’t seem to have much trouble building ruby at that point.
Thanks for your response.
I did what you did and it produced the same fault result - ie
make
make test
make install
… no errors (except compiler warnings)
rs6000:/huge/ruby-1.8.4>irb
irb(main):001:0> require “zlib”
LoadError: no such file to load – zlib
from (irb):1:in `require’
from (irb):1
Any ideas ?
I did what you did and it produced the same fault result - ie
make
make test
make install
I had to do:
make
make ruby.imp
make
make test
make install
I use IBM’s official ‘cc’ compiler, not ‘gcc’, if that makes
any difference…
I should note that I do some other fancy hand-waving,
because I initially install into one directory and then
move everything into “the real” directory after I am
pretty sure it is working. But that extra hand-waving
shouldn’t effect this part…
rs6000:/huge/ruby-1.8.4>irb
irb(main):001:0> require “zlib”
LoadError: no such file to load – zlib
from (irb):1:in `require’
from (irb):1
Any ideas ?
In my case (on aix 4.3), I just installed the files from the zlib
package in the locations:
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/share/man/man3/zlib.3
I seem to remember initially installing them under /usr/local,
while there was an older version in above locations. That
did not work, although I don’t remember what errors came
up. So I installed the new version as the only version.
In my case (on aix 4.3), I just installed the files from the zlib
package in the locations:
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/share/man/man3/zlib.3
In my case (on aix 4.3), I just installed the files from the zlib
package in the locations:
/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib/libz.a
/usr/share/man/man3/zlib.3