Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Kubo Takehiro
RE: oci8lib_18.so: No such process ...(LoadError) [ reply ]  
2011-06-25 02:25
Thanks for sending the strace.log.

Set the location of OCI library not to LD_LIBRARY_PATH but to PATH as follows:

PATH=/Oracle/instantclient/instantclient_11_2:$PATH

LD_LIBRARY_PATH doesn't work in this case.

In strace.log:
> 5273 491910 [main] ruby 7132 seterrno_from_win_error: /ext/build/netrel/src/cygwin-1.7.9-1/winsup/cygwin/dlfcn.cc:116 windows error 127
> 53 491963 [main] ruby 7132 geterrno_from_win_error: windows error 127 == errno 3

dlfcn.cc:116: ret = (void *) LoadLibraryW (path);
Windows error 127: ERROR_PROC_NOT_FOUND (The specified procedure could not be found.)
errno 3: ESRCH (No such process)

LoadLibraryW failed because of unresolved procedure entry points. I guess that the oci8lib_18.so was compiled for Oracle 11.2 but it used oci.dll in Oracle 10g, which is found in PATH.

By: Kubo Takehiro
RE: oci8lib_18.so: No such process ...(LoadError) [ reply ]  
2011-06-24 10:59
I have not seen such a error; "No such process."
If the file is not readable, the message will be "No such file or directory."
Could you trace system calls and send the log?

strace -o strace.log ruby -r oci8 -e "OCI8"

Send the strace.log file to kubo@jiubao.org. />

By: Henry Collingridge
oci8lib_18.so: No such process ...(LoadError) [ reply ]  
2011-06-20 10:56
I'm trying to get ruby-oci8 working under Cygwin on Windows XP with Oracle 10G full client.

I've successfully followed the install instructions but when I test it I get an error as follows:

ruby -r oci8 -e "OCI8.new('blah', 'blah', 'blah').exec('SELECT 1 from dual') {|r| puts r.join}"
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/oci8lib_18.so: No such process - /usr/lib/ruby/site_ruby/1.8/i386-cygwin/oci8lib_18.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/oci8.rb:38

The file oci8lib_18.so is present at that location and is both readable and executable.

ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

uname -a
CYGWIN_NT-5.1 WLG-LT3032 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

I'd be pathetically grateful if someone could help me out.

Cheers,

Henry