LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   adding line to /etc/ld.so.conf (https://www.linuxquestions.org/questions/red-hat-31/adding-line-to-etc-ld-so-conf-103069/)

jotus 10-12-2003 10:57 AM

adding line to /etc/ld.so.conf
 
When trying to install some programs I get this message:
"This path is not mentioned amog the linker search paths in your /etc/ld.so.conf. This means it is possible that (insert program name here) will not be found when you try to compile or run a program using it. If this happens, you should add /usr/local/lib to the environment variable LD_LIBRARY_PATH like that: export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH Alternatively you can add a line "/usr/local/lib" to your /etc/ld.so.conf. "

so, my question is how to add the line /usr/local/lib to my /etc/ld.so.conf, I have browsed to the ld.so.conf and cannot edit it to add the line. also I tried in terminal to run the export line found in the above paragraph and that did not work.

how do I add that line to ld.so.conf?



RH9

arunshivanandan 10-12-2003 12:42 PM

WHy cant you edit ld.so.conf??i mean,what is the problem??
just do 'su'.then 'vim /etc/ld.so.conf'.press 'i' to inseart.edit it,and then ':wq' to save and exit.(dont forget ':' in ':wq')
--arun

jotus 10-13-2003 05:37 AM

ok, it half worked
 
you can tell I am so green to this.

I was able to open it up, and edit it. but when I typed in ':wb' that did not save it or exit it. where exactly do I type that in?

andutt 10-13-2003 05:49 AM

You shall specify :wq! and not :wb wg means write+quit. That will save you changes to the file you have opened for editing.

:)


All times are GMT -5. The time now is 09:32 AM.