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 9185863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:22:53+00:00 2026-06-17T19:22:53+00:00

My application uses some private shared libraries, which i need to package with the

  • 0

My application uses some private shared libraries, which i need to package with the binary, and as per Debian Policy Rules

It is recommended that supporting files and run-time support programs
that do not need to be invoked manually by users, but are nevertheless
required for the package to function, be placed (if they are binary)
in a subdirectory of /usr/lib, preferably under /usr/lib/package-name.

So, I put my shared library e.g. libabc.so in /usr/lib/myapp/ directory. After creating the debian package the binary fails to load as /usr/lib/myapp/ is not searched by the loader to load the directory. They don’t recommend using RPATH in the binary. So what changes should i make in the debian package, or in the compilation of binary or anything else to make it work.

  • 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-17T19:22:54+00:00Added an answer on June 17, 2026 at 7:22 pm

    If your shared-library can be of any use to other (potentially future) applications and there is a public interface to the library, you might consider installing it into /usr/lib/ directly (or rather /usr/lib/<host-triplet> for multiarch support).

    If this is not an option (since your shared-lib is really private), check how other applications deal with that. a quick survey on my system reveals that both ardour and gedit have private shlibs in /usr/lib/<pkgname>/.

    ardour

    ardour uses an (imo) rather hackish way: the executable /usr/bin/ardour2 is really only a shellscript that warps calling the real binary with some LD_LIBRARY_PATH fudge:

    export LD_LIBRARY_PATH=/usr/lib/ardour2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
    /usr/lib/ardour2/ardour-bin
    

    gedit

    With gedit, upstream has properly moved to installing libgedit-private.so as pkglib (the autotools lingo for libs that go to /usr/lib/<pkgname>).

    autotools handles the resolving automatically (presumably with something like rpath).

    Finally, as I read the debian-policy, rpath is frowned upon for non-private libraries (libs potentially used by other applications). I don’t think that this is an issue here but of course this is my interpretation of the policy. You might want to check back with one of the Debian channels like their IRC or some mailing list.

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

Sidebar

Related Questions

Some background: I've created a Swing application which uses the Substance LaF (Thanks again,
I have a web-application which uses hibernate and for some reason every thread (httprequest
I have a WPF application which uses some library code for authentication which needs
I have am using a WPF application which uses BitmapSource but I need to
My application uses some webservice's and gets connectd to a server and sits on
I have a swing application that uses some datas coming from an external mysql
I have a .NET application that uses some API calls, for example GetPrivateProfileString .
I have a Windows Forms application that uses some Application.Idle handlers to change the
I am working on a C# WinForms application that uses some DevExpress controls. I
My application uses MS access database to save some sensitive information. Though that information

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.