FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-12-2011, 01:21 PM
Verde Denim
 
Default Ruby oci8 failure

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


On Fri, Dec 2, 2011 at 5:01 AM, Verde Denim <tdldev@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@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r rbconfig -e

> "p Config::CONFIG['host']"

> "x86_64-pc-linux-gnu"

>

> jack@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r rbconfig -e

> "p Config::CONFIG['CC']"

> "gcc"

>

> jack@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@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r rbconfig -e

> "p Config::CONFIG['LDSHARED']"

> "gcc -shared"

>

> jack@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@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r rbconfig -e

> "p Config::CONFIG['LIBS']"

> "-lpthread -lrt -ldl -lcrypt -lm "

>

> jack@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ ruby -r rbconfig -e

> "p Config::CONFIG['GNU_LD']"

> "yes"

>

> jack@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ gcc

> --print-prog-name=ld

> ld

>

> jack@wutendFrosch:~/Downloads/ruby_oci/ruby-oci8-2.0.3$ gcc

> --print-prog-name=as

> as

>

> jack@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@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@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@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
*


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 12-13-2011, 01:08 PM
Verde Denim
 
Default Ruby oci8 failure

On Tue, Dec 13, 2011 at 5:16 AM, Kubo Takehiro <kubo@jiubao.org> wrote:

> On Fri, Dec 2, 2011 at 9:03 PM, Kubo Takehiro <kubo@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?



You need to re-compile it.



1. If you have no special need to use 2.0.3, use 2.0.6 or 2.1.0. The latter

will be released soon.

2. Did you look at http://ruby-oci8.rubyforge.org/en/PlatformSpecificIssue.html?


Kubo

Yes, I have seen that link My only hesitation in setting the symlink is that both directories contain files and the contents are different so I'm not sure what the outcome of setting a symlink between them would result in. I've also looked at

http://www.linuxidc.com/Linux/2011-09/43724.htm and http://dev.metasploit.com/redmine/projects/framework/wiki/OracleUsage


as well as a couple of forums where I found similar problems to mine with different workarounds due to the nature and platform.

Thanks for the help. I'm wondering if I shouldn't clean up my mess and start again using -

http://dev.metasploit.com/redmine/projects/framework/wiki/OracleUsage

I thought I'd followed the directions on the redmine link carefully enough, but I also see that there are two ruby installations on my machine - one in msf and one in /usr. Under usr, I have a ruby and a ruby1.8 ... I'm not sure if other packages on the system depend on ruby at this point, but it shouldn't be too difficult (I hope) to find that out. At one point in time, I had msf and armitage actually working on this box, but a couple of system upgrades caused that setup to quit and I haven't revisited the problem in several weeks due to other pressing (paid) work.


Do you know if the link at dev.metasploit contains all the necessary instruction to get this installed and running properly?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:02 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org