LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   messed up ld.so.conf(lib file) need copy (https://www.linuxquestions.org/questions/linux-newbie-8/messed-up-ld-so-conf-lib-file-need-copy-263076/)

VampireL0rd 12-05-2004 11:17 PM

messed up ld.so.conf(lib file) need copy
 
I was installing wine(wine-20041201) on my linux red hat 9 system. I just got done compiling it when it tells me Add the line '/usr/local/lib' to /etc/ld.so.conf and run /sbin/ldconfig
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
I'am very new to using the vi & vim text editors and I think it was the -y (vi -y ld.so.conf)mode for modless that turned the file into junk. Before it was like /usr/local/lib, now its "q
^M<80>kd<80>ku^M^M<80>ku<80>kd<80>ku<80>kd<80>ku<80>kd<80>ku<80>kd:q^Me"
I really don't know what happen. It could of been another mode that did it. I don't have another linux system to copy this file that would easily fix my problem. I remeber that it was only like three lines of text. If anyone could give me a copy(or just post it) or help me fix the file I would be very gratefully. By the way how do you exit out of edit mode when in the vi text editor (:q dosen't work, the : dosen't come up)

kevinalm 12-05-2004 11:26 PM

Well, ld.so.conf varies from system to system but here are two of the most commonly needed entries:

/usr/X11R6/lib
/usr/local/lib

Here's the whole thing on my system, but I would try the above. The gtk and pango stuff may not be (probable won't be) the right version numbers for your system.

/usr/X11R6/lib
/usr/local/lib
/opt/lib
/usr/lib/pango/1.4.0/modules
/usr/lib/gtk-2.0/2.4.0/immodules
/usr/lib/gtk-2.0/2.4.0/loaders
/usr/lib/imlib2_loaders/image
/usr/lib/imlib2_loaders/filter

VampireL0rd 12-05-2004 11:35 PM

Thanks a lot for the quick reply. I'am going to add it now

kevinalm 12-06-2004 05:08 PM

By the way, for future referance the "emergency bailout" sequence for vi/vim is:

<esc> :q!

(quit and don't save chages) Hitting the esc is supposed to put you back in command mode, but it sounds like vi messed up so bad that even that may not have worked.


All times are GMT -5. The time now is 08:24 PM.