Forum Home
Press F1
 
Thread ID: 47715 2004-08-03 12:19:00 symlinks in Linux mikebartnz (21) Press F1
Post ID Timestamp Content User
257929 2004-08-03 12:19:00 Hi there all.
Say you require a library file libguile.so.6 and you have libguile.so.12. Assuming liguile.so.12 is a later file can you simlink to it.
mikebartnz (21)
257930 2004-08-03 12:44:00 I dont see why not - you can always rm the symlink later.
Use:
ln -s libguile.so.12 libguile.so.6

Let us know how you get on


Chill.
Chilling_Silence (9)
257931 2004-08-04 01:32:00 It is a Bad Idea to mess with the library system. It is very carefully arranged and maintained so that things work. Usually. :D

If you have a look at /lib (ln -s /lib) you will see that all the libraries are called by symbolic links. This is so executables (and the linker) can refer to a known constant "name" which will be changed to point to the actual, current, version of the library. The links are set up when you install a package containing a new version of a library.

"man ldconfig" will tell you about some of this ...

How did you get libguile.so.12? Was it installed with the system? I suspect so, because you don't give any versioning with the name (like, e.g, random, "libguile.so.12-2.5-6"). I suspect that
ls -l libguile* will show libguile.so.12 as a symbolic link.

It's unusual for missing libraries to cause a request for an earlier version of library ... usually the requirement is for, e.g, "libguile.so.6 or later".
Graham L (2)
257932 2004-08-04 11:45:00 Hi there Chill. It was the rpm db I needed to confuse anyway. Problem will be solved shortly because a local Linux guru is downloading Fedora 2 and I'm going to get a copy from him. Frdora 2 has the latest GNUCash so it will save a lot of mucking around. GNUCash is quite a good double entry open source accounting program. I wish when a program has dependencies they would provide them on their site so you didn't have to travel all over the net to get them. mikebartnz (21)
257933 2004-08-04 11:56:00 That's why Fedora / Redhat have "up2date" ;-) Chilling_Silence (9)
257934 2004-08-04 12:11:00 Hi there Graham. Lesson learnt. :D
It's interesting running ls -l libguile.so.* shows libguile.so.12 not installed but pointing to libguile.so.12.3.0. I would assume libguile.so.12.3.0 was part of the Fedora 1 install. I have installed qtparted, firefox, mozilla,kylix and they all installed beautifully especially kylix which is to be expected of Borland. This has been my first taste of dependency hell which is a similar beast to dll hell. ?:|
mikebartnz (21)
257935 2004-08-04 12:18:00 Tried up2date and can't remember if it was a slow night on the net or there was confusion over what version was installed. I originaly installed ver 1.8.4 and tried to install 1.8.7 but had trouble and the program kept showing as 1.8.7 and I could not do an uninstall. mikebartnz (21)
257936 2004-08-04 12:26:00 Okay.
Ive not run up2date myself, I just heard it was redhat's tool for keeping systems "up2date" (Hence the name).

I guess Im lucky - I dont get dependancy hell with gentoo :D

Let us know how you get on with FC2


Chill.
Chilling_Silence (9)
257937 2004-08-04 19:27:00 Red Hat / Fedora's up2date program is for updating any programs that you have currently installed that are part of the up2date's rpm database (the officially included packages of FC only). It will sort out the dependencies and update them as well. When you get your Fedora Core 2 installed, have a look at yum as well. You can also search for programs which are not part of the official FC package and it will install them (plus any required dependencies) automatically. Yum is a command line program, but they have recently developed a GUI for it called gyum which is really nice and makes searching for what is available much easier. With yum/gyum you can update, install or remove packages.

FedoraNEWS (http://fedoranews.org/) - how-to articles on yum and gyum (plus many more!)
Jen C (20)
257938 2004-08-05 02:36:00 Had a go with yum but it was short on something so would not run. Didn't have time to investigate more. Will have a look at gyum thank JenC. Things are coming together better with each release so was going to get Fedora 2 anyway but this has forced the issue. mikebartnz (21)
1