Forum: Ruby ruby 1.8.6, zlib and x86_64 problems

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5b8f220b26f31ee26ee0847593536ae2?d=identicon&s=25 Joe Zz (joe76)
on 2007-03-25 18:41
Im trying to install ruby 1.8.6 on an x86_64 centos 4.2 system. i've
done this install several times on an i386 system with no problems. here
i have ran into this...

first i installed zlib-1.2.3 from source with ./configure make make
install. i then installed ruby from source with ./configure make make
install. no problems yet. then i tried to install rubygems-0.8.11 with
ruby setup.rb and this is where i hit the first wall. after the warning
about library stubs not being needed and telling me that no library
stubs were found it then spit out an error from custom_require saying
about zlib:

 " relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC".

so i went back and found a post about installing zlib via yum install
zlib-devel. so i uninstalled the zlib source and installed the devel via
yum. while attempting to recompile ruby i get this:

make[1]: Leaving directory `/usr/local/src/ruby-1.8.6/ext/win32ole'
compiling zlib
make[1]: Entering directory `/usr/local/src/ruby-1.8.6/ext/zlib'
make[1]: *** No rule to make target `ruby.h', needed by `zlib.o'.  Stop.
make[1]: Leaving directory `/usr/local/src/ruby-1.8.6/ext/zlib'
make: *** [all] Error 1

any ideas?
This topic is locked and can not be replied to.