1819920 Members
2555 Online
109607 Solutions
New Discussion

Compile ruby on hpux

 
uxbeginner22
Trusted Contributor

Compile ruby on hpux

I want to compile ruby 2.0 on hpux

I try this config

 

export CC="/opt/aCC/bin/cc -Ae" 
export CFLAGS="-O" 

./configure --prefix=/opt/ruby --disable-install-doc --enable-pthread --enable-shared --without-gcc --disable-rpath --with-baseruby CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib/hpux32 -lz'

gmake clean
gmake SOLIBS="-lpthread -lrt -ldld -ldl -lm  -lz" -j3
gmake SOLIBS="-lpthread -lrt -ldld -ldl -lm  -lz"

 

i got this

 

/usr/lib/hpux32/dld.so: Unable to find library 'libz.so'.
Makefile:995: recipe for target '.rbconfig.time' failed
gmake: *** [.rbconfig.time] Killed

libz.so is installed and is on

/usr/local/lib/hpux32/libz.so

 

Any suggestion please?

 

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Compile ruby on hpux

>I try this config

 

That LDFLAGS seems fine.  But is it passed to ld(1) or cc(1)?

What does chatr(1) show on your executable?

And what was the executable being executed in that error from gmake?

 

>libz.so is installed and is on

 

What does this show: file /usr/local/lib/hpux32/libz.so