# Ruby 1.8.6, zlib and x86\_64 problems

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-6-zlib-and-x86-64-problems/90050>\
**Category:** Ruby\
**Created:** [March 25, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-zlib-and-x86-64-problems/90050 "2007-03-25T18:41:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jz176](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@jz176](https://www.ruby-forum.com/u/jz176)\
**Post date:** [March 25, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-zlib-and-x86-64-problems/90050/1 "2007-03-25T18:41:30Z")

</div>

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?
