Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    19

    failed dependencies


    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.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    My libcairo...
    Code:
    $ locate libcairo
    /usr/lib/libcairo.so.1
    /usr/lib/libcairo.so.1.0.0
    How did you install libcairo? Did you install cairo with yum? It seems strange that libcairo is installed in /opt/gtk/lib...
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    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.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    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:

    Code:
    ln -s /opt/gtk/lib/libcairo.so.2 /usr/lib/libcairo.so.2
    and...
    Code:
    ln -s /opt/gtk/lib/libpangocairo-1.0.so.0 /usr/lib/libpangocairo-1.0.so.0
    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.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  6. #5
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    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?

  7. #6
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    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?

  8. #7
    Just Joined!
    Join Date
    Oct 2006
    Posts
    1
    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

    Cheers,
    Vladimir.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •