ok I'm trying to install a program from an rpm. I had installed some of its dependencies before this. But I get this error:
error: Failed dependencies:
libcairo.so.2 is needed by gsegyview-0.1-fc5.i386
libpangocairo-1.0.so.0 is needed by gsegyview-0.1-fc5.i386
Now I know these files are located in opt/gtk/lib, but how do I get the program I'm installing to recognize this?
I have LD_LIBRARY_PATH=/opt/gtk/lib and i thought this was enough, but obviously not.
How did you install libcairo? Did you install cairo with yum? It seems strange that libcairo is installed in /opt/gtk/lib...
$ locate libcairo
no I built and complied them myself. I needed gtk+ and it suggested to install it and its dependencies there. cairo and pango needed to be updated to newer versions for that.
If both versions are exactly what you need, maybe just symlink them to where gsegyview wants to find them, and I'd bet that is in /usr/lib. So, as root:
ln -s /opt/gtk/lib/libcairo.so.2 /usr/lib/libcairo.so.2
You can copy and paste the above commands if using konsole or another terminal that allows for it. I cannot guarantee this will solve the problem, but often under Slackware, you run into situations like this where needed files are in a different location than where another program is looking for them. Symlinking as shown above in essence directs the app to the installed location. Try and see. The above will hurt nothing if it doesn't work. Sorry I couldn't help more.
ln -s /opt/gtk/lib/libpangocairo-1.0.so.0 /usr/lib/libpangocairo-1.0.so.0
well I made the symbolic links...
libcairo.so.2 was already there but a link was made for libpangocairo-1.0.so.0
Tried to run the rpm again but no luck. Same error. It was a good idea, though.
Maybe you can answer another question, though. You said it's strange to have libcairo in opt/gtk. Now, I had experienced problems with glib to which the solution was installing it in /usr instead.
Would installing EVERYTHING... pango, cairo, etc to /usr be something I would want to do?
Also I did a search for files of those names. A point of interest was that although several files existed, they were all 'link to shared library' and not 'shared library' itself.
So correct me if I'm wrong, but the actual libraries DO NOT exist then?
How is it possible if I installed everything into opt/gtk to only have a link to a library?
I've just found this thread though google; I was looking for references to gsegyview which had something to do with installation problems or failed dependencies. As the author of the software, I'll be glad to offer help and support for installation, dependencies resolution, and usability. If you still have problems with the package, feel free to mail me penguinarium_(at)_mail.ru