Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8766887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:39:40+00:00 2026-06-13T16:39:40+00:00

By default programs always use the newer version of a library when two different

  • 0

By default programs always use the newer version of a library when two different versions of that library are installed on the OS. How is it possible to configure my system so that all apps use by default the older version of the library? Perhaps I should use ldd or ldconfig, but I’m not sure how to achieve that.

Some more details below:
I am using Xubuntu Precise and I’ve run into the following conundrum:

  • Xubuntu Precise ships libpoppler v0.18.4 [1] and all Precise apps (Evince, Inkscape, etc.) are built against this version of the library.
  • I want to build and install ViewPDF [2] which requires libpoppler >= v0.20.
  • For the reason above I backported libpoppler v0.20.4 from Ubuntu Quantal [3].

Here are the libs currently available on my system:

liv@liv-laptop:~$ locate libpoppler. | grep -i /usr/lib/
/usr/lib/x86_64-linux-gnu/libpoppler.a
/usr/lib/x86_64-linux-gnu/libpoppler.so
/usr/lib/x86_64-linux-gnu/libpoppler.so.19
/usr/lib/x86_64-linux-gnu/libpoppler.so.19.0.0
/usr/lib/x86_64-linux-gnu/libpoppler.so.28
/usr/lib/x86_64-linux-gnu/libpoppler.so.28.0.0

liv@liv-laptop:~$ ls -lh /usr/lib/x86_64-linux-gnu/libpoppler.*
-rw-r--r-- 1 root root 3.8M Sep 24 17:15 /usr/lib/x86_64-linux-gnu/libpoppler.a
lrwxrwxrwx 1 root root   20 Sep 24 17:14 /usr/lib/x86_64-linux-gnu/libpoppler.so -> libpoppler.so.28.0.0
lrwxrwxrwx 1 root root   20 Sep  4 12:35 /usr/lib/x86_64-linux-gnu/libpoppler.so.19 -> libpoppler.so.19.0.0
-rw-r--r-- 1 root root 2.0M Mar  1  2012 /usr/lib/x86_64-linux-gnu/libpoppler.so.19.0.0
lrwxrwxrwx 1 root root   20 Sep 24 17:14 /usr/lib/x86_64-linux-gnu/libpoppler.so.28 -> libpoppler.so.28.0.0
-rw-r--r-- 1 root root 2.4M Sep 24 17:15 /usr/lib/x86_64-linux-gnu/libpoppler.so.28.0.0

Now building and running ViewPDF works just fine. The big problem, however, is that some of the apps (xpdf, inkscape) originally built against 0.18.4 are broken.

So here’s my question:
How is it possible to configure my system so that all apps use by default the older version of the poppler library (libpoppler.so.19.0.0); and only the apps specifically built against the newer version (libpoppler.so.28.0.0) to use the most recent version? Perhaps I should use ldd or ldconfig but I’m not sure how to achieve that.

  1. http://packages.ubuntu.com/precise/libpoppler19
  2. http://www.qtrac.eu/viewpdf.html
  3. http://packages.ubuntu.com/quantal/libpoppler28
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:39:41+00:00Added an answer on June 13, 2026 at 4:39 pm

    Installl everything you build from sources to /usr/local, as per the default prefix of configure.

    Update: if you plan to distribute this package further, then a different approach is needed. I would create a directory named say /usr/lib/future and place an advanced version of libpoppler.so there. The application would link against it, using the -rpath=/usr/lib/future and possibly -rpath-link=/usr/lib/future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Windows Seven, I'm aware of the Default Programs dialog in Control Panel, which
I installed Apache in it's default directory under C:\Program Files\Apache Software Foundation\Apache2.2 . During
I've designed a C# game that makes use of an Access .mdb database file
I've created a script that by default creates one multiprocessing Process; then it works
I have setup a windows forms project to use localization so that it will
I have a program that I use to enter values into a database using
configure scripts always include something like the following in the help message: ... By
I currently use some old C library for getting program options and would like
I have a C# application that uses a Windows service that is not always
Possible Duplicate: Should I use Elements or Attributes in XML? I have never been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.