Ah ha! Fixed. Make sure you set LD_LIBRARY_PATH to the correct path
in /etc/environment. It's not really the "Debian way", but it seems to
get the job done.

James H.

On Mar 2, 11:17 am, "James H." <james.herd...@gmail.com> wrote:
> Greetings.
>
> I'm scratching my head over a problem with LD_LIBRARY_PATH and the
> OCI8 (Oracle) gem this morning. Here's the error I'm getting during a
> cold deploy with Capistrano:
>
> == BEGIN ==
>
>   * executing "cd /var/apps/sred/current &&         rake db:create
> RAILS_ENV=production &&         rake db:schema:load
> RAILS_ENV=production"
>     servers: ["10.212.102.104"]
>     [10.212.102.104] executing command
> *** [err :: 10.212.102.104] rake aborted!
> *** [err :: 10.212.102.104]
> *** [err :: 10.212.102.104] libclntsh.so.10.1: cannot open shared
> object file: No such file or directory - /usr/local/lib/site_ruby/1.8/
> i486-linux/oci8lib.so
> *** [err :: 10.212.102.104]
> *** [err :: 10.212.102.104]
> *** [err :: 10.212.102.104] (See full trace by running task with --
> trace)
> *** [err :: 10.212.102.104]
>  ** [out :: 10.212.102.104] (in /var/apps/sred/releases/
> 20090302161653)
>     command finished
> failed: "sh -c \"cd /var/apps/sred/current &&         rake db:create
> RAILS_ENV=production
> &&         rake db:schema:load RAILS_ENV=production\"" on
> 10.212.102.104
> == END ==
>
> I'm a little at a loss. I can see that LD_LIBRARY_PATH is set when I
> SSH into the user I'm using to deploy, and I can verify that I've
> logged in correctly.
>
> Thishttp://ubuntuforums.org/archive/index.php/t-930567.htmlseemed to
> be my problem, but the resolution doesn't work.
>
> Can any one offer some insight?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Ruby on Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-deployment+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to