Backport #8388
closedbaseruby issue on OpenIndiana / Oracle Solaris 11.x
Description
When compiling ruby-2.0.0-p0 on OpenIndiana / Oracle Solaris 11.x (both amd64),
make/gmake fails with miniprelude.c and turns out:
executable host ruby is required. use --with-baseruby option
the means of --with-baseruby has a very poor explanation, especially for someone like me who's very new to ruby.
The doc should mention, that baseruby is a the path to an already on the system existing ruby binary.
However, the above error message origins from different file owner/group memberships after an untar of the source package.
RESOLUTION:¶
after untar issue: chown -R : <ruby-x.x.x-src-dir>
The above affects Issue #3008 and makes omitting Christians's touch command, as the chown-cmd updates the file inode information as well.
I can confirm a successful ruby-2.0.0 amd64 build on OpenIndiana and have released a Ruby IPS package in our repository at www.openindiana.co.uk
Configure-cmd:¶
./configure --prefix=/opt/sfp/ruby2 --enable-shared CC='/opt/gcc/4.4.4/bin/gcc' CFLAGS='-m64 -O3 -I/opt/sfp/include -I/usr/include' LDFLAGS='-L/lib/64 -lc -L/opt/sfp/lib -L/usr/lib/64'
LDD-Output:¶
ldd /opt/sfp/ruby2/bin/ruby
libc.so.1 => /lib/64/libc.so.1
libruby.so.2 => /opt/sfp/ruby2/lib/libruby.so.2
libpthread.so.1 => /lib/64/libpthread.so.1
librt.so.1 => /lib/64/librt.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libdl.so.1 => /lib/64/libdl.so.1
libcrypt.so.1 => /usr/lib/64/libcrypt.so.1
libm.so.2 => /lib/64/libm.so.2
libssp.so.0 => /usr/lib/64/libssp.so.0
libgcc_s.so.1 => /lib/64/libgcc_s.so.1
libnsl.so.1 => /lib/64/libnsl.so.1
libgen.so.1 => /lib/64/libgen.so.1
libmp.so.2 => /lib/64/libmp.so.2
libmd.so.1 => /lib/64/libmd.so.1
Ruby-Version-Output¶
/opt/sfp/ruby2/bin/ruby --version
ruby 2.0.0p0 (2013-02-24) [i386-solaris2.11]
REMARKS¶
please feel free to mention the release of my Ruby2 install pkg for OpenIndiana / Solaris 11.x
on your web site.
Regards from Germany!
Dave.
[DE]SYSTEMS ENGINEERING Ltd.
www.dese.co.uk