Zlib not found no matter what I do

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.

to no avail. Could someone please help me?

On Jun 20, 2006, at 7:09 AM, Lanny R. wrote:

and make

to no avail. Could someone please help me?

I see no error here. Are you sure it’s not working?

What kind of system are you running?
-Mat

Mat S. wrote:

On Jun 20, 2006, at 7:09 AM, Lanny R. wrote:

and make

to no avail. Could someone please help me?

I see no error here. Are you sure it’s not working?

What kind of system are you running?
-Mat

Thank you for responding. I am running AIX 4.3.3 which is IBM flavour of
Unix. gem gets this error

rs6000:/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0>gem
/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so: load
failed - /usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so
(LoadError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in

irb like so

irb(main):001:0> require ‘zlib’
LoadError: load failed -
/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so
from
/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so
from (irb):1
irb(main):002:0>

On 6/20/06, Lanny R. [email protected] wrote:

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.

On Jun 20, 2006, at 12:35 PM, Lanny R. wrote:

irb like so

irb(main):001:0> require ‘zlib’
LoadError: load failed -
/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so
from
/usr/local/lib/ruby/site_ruby/1.8/powerpc-aix4.3.3.0/zlib.so
from (irb):1
irb(main):002:0>

Not really sure myself. If it were me I’d make sure that the file
exists. It’s zlib.bundle for me. I don’t know if that helps at all.
-Mat

The very frustrating thing is that I installed many things from
tarballs, build from sources, etc…

I also have flawlessly working copies on my OS/X and WInd XP, just the
darn AIX is giving me a headache.

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.

Lanny

Garance A Drosehn wrote:

On 6/20/06, Lanny R. [email protected] wrote:

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 ?

Garance A Drosehn wrote:

I use IBM’s official ‘cc’ compiler, not ‘gcc’, if that makes
any difference…

So do I

ny ideas ?

That’s about all I had to do, iirc.

(2) irb
irb(main):001:0> require ‘zlib’
=> true

Where does your “zlib” live ?

–LR–

On 6/20/06, Lanny R. [email protected] wrote:

Thanks for your response.

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 ?

That’s about all I had to do, iirc.

(2) irb
irb(main):001:0> require ‘zlib’
=> true

On 6/21/06, Lanny R. [email protected] wrote:

Where does your “zlib” live ?

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.

Garance A Drosehn wrote:

On 6/22/06, Garance A Drosehn [email protected] wrote:

On 6/21/06, Lanny R. [email protected] wrote:

Where does your “zlib” live ?

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 should also note that I’m building zlib from the source
found at: http://www.zlib.net/zlib-1.2.3.tar.bz2

So, I’m not really installing installing “from a package”, not
in the sense of using a version that someone else built.

Thank you. This was it! Following this advice worked perfectly.

On 6/22/06, Garance A Drosehn [email protected] wrote:

On 6/21/06, Lanny R. [email protected] wrote:

Where does your “zlib” live ?

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 should also note that I’m building zlib from the source
found at: http://www.zlib.net/zlib-1.2.3.tar.bz2

So, I’m not really installing installing “from a package”, not
in the sense of using a version that someone else built.