4 February, 2010

Set the environment variable LD_LIBRARY_PATH



As of Ubuntu 9.04 if you want to set the LD_LIBRARY_PATH on ubuntu everytime you computer loads it is no longer possible to do by adding it to /etc/environments or your profile.

Instead if you wish to add paths you need to do the following.

Firstly open a terminal.

Now that you have a terminal run the following command:
sudo gedit /etc/ld/so/conf.d/myexports.conf

in the file that opens up insert the path of whatever location you wish to add to LD_LIBRARY_PATH.

You can add as many paths as you want but there has to only be a single path per line.

Once you have done this close the file and then run the following command:
sudo ldconfig -v

That should update and then printout all of the paths. The one you just added should be in there somewhere.

Well that's it, hopefully that should work every time.

------------------------------------------
NOTE: These articles are tutorials/general ramblings. I do not except responsibility for anything that goes wrong, be it a broken HDD, an entire computer or if you chop off your arms, follow anything I say on this site at your own risk.
------------------------------------------

Comments



Leave a comment

Name:


URL:(optional)


Protection Number (Please insert in box below):9112


Comment:


This website was designed and implemented by myself, all opinions and views expressed are my own unless otherwise specified. Excluding the images contained within the header and any specified elsewhere on the site images are my own.

Copyright Rob Ward
2009 - 2012