superfluous /usr/lib/*.so symbolic links

Greg Schafer gschafer at zip.com.au
Fri Sep 13 20:07:53 PDT 2002


On Fri, Sep 13, 2002 at 10:55:00PM -0400, Gerard Beekmans wrote:
> On September 13, 2002 10:36 pm, Gerard Beekmans wrote:
> > Hm good point you're right. Okay let me fix it up then.
> 
> So, what we wanted originally is remove all the *.so files from /lib and only 
> have them in /usr/lib while leaving the .so.5 files in /lib
> 
> I'm going to change ncurses to add these lines (somewhat similar to the ones 
> that orignally where there):
> 
> rm /lib/libncurses.so && ln -s ../../lib/libncurses.so.5 \
> 	/usr/lib/libncurses.so 
> rm /lib/libcurses.so && ln -s libncurses.so /usr/lib/libcurses.so 
> rm /lib/libform.so && ln -s ../../lib/libform.so.5 /usr/lib/libform.so 
> rm /lib/libpanel.so && ln -s ../../lib/libpanel.so.5 /usr/lib/libpanel.so 
> rm /lib/libmenu.so && ln -s ../../lib/libmenu.so.5 /usr/lib/libmenu.so 

That should work ok, but it's still not exactly the cleanest result, but
not to worry at this late stage, just as long as it works :)

FWIW, here is what I'm currently using:-

./configure --prefix=/usr --with-shared &&
make &&
make install &&
chmod 755 /usr/lib/*.5.2 &&
mv /usr/lib/libncurses.so.5* /lib &&
ln -s libncurses.a /usr/lib/libcurses.a &&
ln -s ../../lib/libncurses.so.5 /usr/lib/libncurses.so &&
ln -s ../../lib/libncurses.so.5 /usr/lib/libcurses.so

This way, everything we need is in /usr/lib except for:-

libncurses.so.5
libncurses.so.5.2

which end up in /lib

Works for me.

Greg
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list