Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-12-2003, 10:57 AM   #1
LQ Newbie
Registered: Sep 2003
Location: Atlanta, GA
Distribution: RH9
Posts: 18

Rep: Reputation: 0
adding line to /etc/

When trying to install some programs I get this message:
"This path is not mentioned amog the linker search paths in your /etc/ 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/ "

so, my question is how to add the line /usr/local/lib to my /etc/, I have browsed to the 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

Old 10-12-2003, 12:42 PM   #2
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
WHy cant you edit mean,what is the problem??
just do 'su'.then 'vim /etc/'.press 'i' to inseart.edit it,and then ':wq' to save and exit.(dont forget ':' in ':wq')
Old 10-13-2003, 05:37 AM   #3
LQ Newbie
Registered: Sep 2003
Location: Atlanta, GA
Distribution: RH9
Posts: 18

Original Poster
Rep: Reputation: 0
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?
Old 10-13-2003, 05:49 AM   #4
LQ Newbie
Registered: Oct 2003
Location: Sweden
Posts: 6

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Monitor to Xorg.conf susesarus Ubuntu 2 10-30-2005 09:41 AM
adding to modules.conf berrance Linux - Software 5 05-30-2005 06:04 AM
smb.conf and adding users 11red Linux - Networking 1 04-06-2005 02:05 PM
RH9 adding to resolv.conf wdingus Linux - Networking 1 11-11-2003 12:35 AM
adding to LILO.conf rufius Linux - General 2 01-07-2003 08:16 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration