LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   export LD_LIBRARY_PATH=/some_of_my_path doesn't work (https://www.linuxquestions.org/questions/linux-general-1/export-ld_library_path%3D-some_of_my_path-doesnt-work-4175516574/)

5883 08-27-2014 04:55 PM

export LD_LIBRARY_PATH=/some_of_my_path doesn't work
 
if i do
export LD_LIBRARY_PATH=/some_of_my_path
then
./my_app

it says error loading shared libraries.


Now if i do
LD_LIBRARY_PATH=/some_of_my_path my_app,

now it runs.

why ?

This is ubuntu 12.04

sravan14 08-28-2014 03:26 AM

just try by sourcing your profile just before exporting " LD_LIBRARY_PATH".

code would be:

Code:

Source your profile here
export LD_LIBRARY_PATH=/some_of_my_path

then
./my_app


All times are GMT -5. The time now is 12:17 AM.