Actually - scrap that
I just tried adding ENV['LD_LIBRARY_PATH']="/usr/local/lib:#{ENV
['LD_LIBRARY_PATH']}"
to the environment.rb file
This doesn't seem to work
I also added puts ENV['LD_LIBRARY_PATH'] to see if it recognised
LD_LIBRARY_PATH
This returned nil
Any ideas on how I can access this from the environment.rb file?
Also, could you please explain why adding the path to .bash_profile is
not best practice? This seems to do the trick, at least through the
console.
Thanks
On Apr 20, 1:28 am, Perry Smith <[email protected]>
wrote:
> Gavin Morrice wrote:
> > added
>
> > export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
>
> > to my .bash_profile file
>
> > Seems to have done the trick.
>
> > :)
>
> I'd revisit that if I were you. In the final deployment, you are likely
> going to run the server as someone other than you. And, the .profile is
> not always pulled in either.
>
> Before the require, I'd try putting:
>
> ENV['LD_LIBRARY_PATH']="/usr/local/lib:#{ENV['LD_LIBRARY_PATH']}
>
> Perhaps put it in environment.rb
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---