Hi Chris
I've found this:
***
Hi Kubo,
Thanks.  Actually I export LD_LIBRARY_PATH for non-root user but not
for
root. Now it works following these steps:
   - su - root
   - rpm -ivh oracle-instantclient-basic-11.1.0.1-1.rpm
   oracle-instantclient-devel-11.1.0.1-1.rpm   (download
link<http://www.oracle.com/technology/tech/oci/instantclient/
index.html>;
or
   install oracle full client)
   - export LD_LIBRARY_PATH=/usr/lib/oracle/
   11.1.0.1/client/lib:$LD_LIBRARY_PATH
   - cd /usr/lib/oracle/11.1.0.1/client/lib
   - ln -s libclntsh.so.11.1 libclntsh.so
   - gem install ruby-oci8
***
Might be this helps. Its a pain with libclntsh.so since version 7 of
oracle.
Fritzek

On Sep 24, 3:12 pm, gers32 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm deploying a Rails app with a Mongrel Cluster in Red Hat Linux. It
> communicates with an Oracle database on another machine.
>
> I tested ruby-oci8 from the command line, and that worked fine:
>
> $ ruby -r oci8 -e "OCI8.new('user', 'password', '???.???.?.?/
> xe').exec('SELECT BLAH BLAH BLAH) do |r| puts r.join(' | '); end"
>
> I was then able to run my application on both servers of a Mongrel
> Cluster, started from the command line, like this:
>
> $ mongrel_cluster_ctl start
>
> But when I try to make a service out of my cluster, the two Mongrel
> servers start, but my application logs the following error message:
>
> Oracle/OCI libraries could not be loaded: libclntsh.so.11.1: cannot
> open shared object file: No such file or directory - /usr/local/lib/
> ruby/site_ruby/1.8/i686-linux/oci8lib.so
>
> This library file exists and has read permission for all, and the path
> to it is set in LD_LIBRARY_PATH.
>
> I'd appreciate if someone could help me out on this. Thanks,
>
> Chris.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to