Skip to main content

Thread: Environment variables problem?


hi.

i'm working 9.10, , i've installed instantclient libraries in order access oracle databases through lazarus+zeosdbo (freepascal raid compiler+database objects).

once i've compiled simple example application, query select of table, works fine if execute program console, if launch clicking nautilus (for example), error message: "none of libraries can found: libclntsh.so".

of course, i've set correct environment variables in ~/.bashrc:

export oracle_home=/usr/lib/oracle/11.1.0.1/client
export ld_library_path="${oracle_home}/lib"
export tns_admin=/usr/lib/oracle/11.1.0.1/client

seems not recognize them when launching application graphically.

after reading lot online, i've tried setting these variables (almost) everywhere: in /etc/environment (without export , writing complete path in second line), /etc/x11/xinit.d/55gnome-session_gnomerc, /etc/profile, ~/.profile, ~/.gnomerc ... , on but...

although variables seems set (using env check it), answer same error. so:


  1. please, can me?
  2. can tell me learn (for dummies) how ubuntu (and general linux) manages different rc files, because not expert me bit confusing many different configuration files?

lot.

quote posted jluix view post
hi.

i'm working 9.10, , i've installed instantclient libraries in order access oracle databases through lazarus+zeosdbo (freepascal raid compiler+database objects).

once i've compiled simple example application, query select of table, works fine if execute program console, if launch clicking nautilus (for example), error message: "none of libraries can found: libclntsh.so".

of course, i've set correct environment variables in ~/.bashrc:

export oracle_home=/usr/lib/oracle/11.1.0.1/client
export ld_library_path="${oracle_home}/lib"
export tns_admin=/usr/lib/oracle/11.1.0.1/client

seems not recognize them when launching application graphically.

after reading lot online, i've tried setting these variables (almost) everywhere: in /etc/environment (without export , writing complete path in second line), /etc/x11/xinit.d/55gnome-session_gnomerc, /etc/profile, ~/.profile, ~/.gnomerc ... , on but...

although variables seems set (using env check it), answer same error. so:


  1. please, can me?
  2. can tell me learn (for dummies) how ubuntu (and general linux) manages different rc files, because not expert me bit confusing many different configuration files?

lot.
if go desktop file of launcher graphical application (right click on menus, go menu editor , find application), there should option "run in terminal". check , paths should exported!

way edit executable itself. might in fact better way. find application above, find command using launch. example, lets it's "xyz".

code:
sudo gedit /usr/bin/xyz
and add export lines file. should work well!


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Environment variables problem?


Ubuntu

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor