Forum: Ruby on Rails environment variable question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
zoomanjee (Guest)
on 2005-11-21 15:47
(Received via mailing list)
Hi,

I'm trying to set LD_LIBRARY_PATH for my ruby on rails application which
uses rjb to connect to a java application.

I have set the variable using SetEnv in the apache vhosts.conf file. But
somehow it is not available in my app. I'm getting "can't create Java
VM"
error from rjb which probably is because the LD_LIBRARY_PATH is not set.

I tried setting ENV['LD_LIBRARY_PATH'] in environment.rb but didn't
help.

Where have I gone wrong ?

Thnx
This topic is locked and can not be replied to.