[Mongrel] Mongrel_Cluster unable to access OCI8 library
filipe at icewall.org
Wed Oct 1 22:34:34 EDT 2008
When I run as user, my .bashrc has the following line:
At the server, my mongrel_rails script sets the ORACLE_HOME variable
(zealots, beware, this hack is really ugly):
# This file was generated by RubyGems.
# The application 'mongrel' is installed as part of a gem, and
# this file is here to facilitate running it.
version = ">= 0"
ENV['ORACLE_HOME'] = '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server'
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
gem 'mongrel', version
Ugly but works nicely :)
On Thu, 2 Oct 2008, Greg Clarke wrote:
> .bashrc runs for interactive shells only.
> To see your full set of interactive env vars enter:
> env | sort
> You could view and set env vars in the script that is called at boot
> time to start the mongrels.
> Inside that script you can examine the process's environment variables
> (echo $LD_LIBRARY_PATH to the log) and set them using the same syntax
> as in the .bashrc.
> I expect you will also have to set some other Oracle-related env vars
> - grep for ORACLE amongst your env vars to see what you are using
> All this should be pretty straightforward to your Oracle DBA if you
> have one around.
> On Thu, Oct 2, 2008 at 12:20 AM, Chris Gers32 <lists at ruby-forum.com> wrote:
>> Hi Greg,
>> Yes indeed, I set LD_LIBRARY_PATH in user "chris"'s .bashrc file:
>> But since the processes run as the same user, I thought it would be OK.
>> Where should I set this variable instead, and by the way, how do I list
>> the boot-time environment variables? As you can see, I'm not much of a
>> Linux guru...
>> I appreciate your help,
>> Posted via http://www.ruby-forum.com/.
>> Mongrel-users mailing list
>> Mongrel-users at rubyforge.org
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
More information about the Mongrel-users