How to specify root's environment variable?

Posted by Wendy on Server Fault See other posts from Server Fault or by Wendy
Published on 2009-09-03T20:53:49Z Indexed on 2010/04/01 19:03 UTC
Read the original article Hit count: 219

Filed under:

I do rails development. In this app, I need to specify the environment variable LD_LIBRARY_PATH = /usr/local/oracle/lib But when I run the app with sudo script/server, it doesn't run because that library path is not in roots' env. What should I do to make it work? I tried to put the path under root ./bashrc and it didn't work.

© Server Fault or respective owner

Related posts about sudo