ruby 1.8.6, zlib and x86_64 problems

J

Joe Zz

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?
 

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
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top