Ruby oci8 failure

Verde Denim tdldev at gmail.com
Mon Dec 12 14:21:24 UTC 2011


Top-posted reply moved to bottom of thread...


> On Fri, Dec 2, 2011 at 5:01 AM, Verde Denim <tdldev at gmail.com> wrote:
> > Last 100 lines of mkmf.log -
> > "gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux
> > -I/home/jack/Downloads/ruby_oci/ruby-oci8-2.0.3/ext/oci8
> > -fno-strict-aliasi
> > ng -g -g -O2  -fPIC   conftest.c  -L. -L/usr/lib -L.
> > -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic
> -lruby1.8-static
> > -l
> > pthread -lrt -ldl -lcrypt -lm   -lc"
> > checked program was:
> > /* begin */
> > 1: int main() { return 0; }
> > /* end */
> >
> > ./conftest
> > "gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux
> > -I/home/jack/Downloads/ruby_oci/ruby-oci8-2.0.3/ext/oci8
> > -fno-strict-aliasing -g -g -O2
> >   -fPIC     -c conftest.c"
> > checked program was:
> > /* begin */
> > 1: /*top*/
> > 2: #ifndef __GNUC__
> > 3: # error
> > 4: >>>>>> __GNUC__ undefined <<<<<<
> > 5: #endif
> > /* end */
> >
> > "gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux
> > -I/home/jack/Downloads/ruby_oci/ruby-oci8-2.0.3/ext/oci8
> > -fno-strict-aliasi
> > ng -g -g -O2  -fPIC   conftest.c  -L. -L/usr/lib -L.
> > -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic
> -lruby1.8-static
> > -l
> > pthread -lrt -ldl -lcrypt -lm   -lc"
> > checked program was:
> > /* begin */
> > 1: int main() { return sizeof(long) == 8 ? 0 : 1; }
> > /* end */
> >
> > ./conftest
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['host']"
> > "x86_64-pc-linux-gnu"
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['CC']"
> > "gcc"
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['CFLAGS']"
> > "-fno-strict-aliasing -g -g -O2  -fPIC  "
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['LDSHARED']"
> > "gcc -shared"
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['LDFLAGS']"
> > "-L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic"
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['LIBS']"
> > "-lpthread -lrt -ldl -lcrypt -lm "
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r
> rbconfig -e
> > "p Config::CONFIG['GNU_LD']"
> > "yes"
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ gcc
> > --print-prog-name=ld
> > ld
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ gcc
> > --print-prog-name=as
> > as
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ file
> > $ORACLE_HOME/bin/oracle
> > /opt/oracle/instantclient_11_2/bin/oracle: ERROR: cannot open
> > `/opt/oracle/instantclient_11_2/bin/oracle' (No such file or directory)
> >
> >
> > jack at wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ file `which
> ruby`
> > /usr/bin/ruby: symbolic link to `ruby1.8'
> >
> >
> >
> >
>
On Fri, Dec 2, 2011 at 9:03 PM, Kubo Takehiro <kubo at jiubao.org> wrote:

> 1. Could you post the message output to the console to compile ruby-oci8?
>
Is there a log that would have this output or do I need to re-compile it in
order to capture this?

>
> 2. Send the output of the following command?
>
>  file /opt/oracle/instantclient_11_2/libclntsh.*
>

jack at wutendFrosch:~$ file /opt/oracle/instantclient_11_2/libclntsh.*
/opt/oracle/instantclient_11_2/libclntsh.so:      symbolic link to
`libclntsh.so.11.1'
/opt/oracle/instantclient_11_2/libclntsh.so.11.1: ELF 64-bit LSB shared
object, x86-64, version 1 (SYSV), dynamically linked, not stripped
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20111212/9701f1f1/attachment.html>


More information about the ubuntu-users mailing list