Placed library in /usr/lib, but ldconfig doesn't put it in cache
I'm starting a project that requires an external shared library third-party.so
.
I've placed it in /usr/lib
. However, when I run sudo ldconfig -v
, it's not listed.
ldconfig -p | grep third-party.so
proves that it wasn't added to the cache.
Does this mean that there is something wrong with the library? Or am I missing some detail? I've run readelf
on it, and it didn't detect any surprises. Running file /usr/lib/third-party.so
returns:
/usr/lib/third-party.so: ELF 64-bit LSB pie executable, x86-64,
version 1 (SYSV), dynamically linked, stripped
shared-library linker
add a comment |
I'm starting a project that requires an external shared library third-party.so
.
I've placed it in /usr/lib
. However, when I run sudo ldconfig -v
, it's not listed.
ldconfig -p | grep third-party.so
proves that it wasn't added to the cache.
Does this mean that there is something wrong with the library? Or am I missing some detail? I've run readelf
on it, and it didn't detect any surprises. Running file /usr/lib/third-party.so
returns:
/usr/lib/third-party.so: ELF 64-bit LSB pie executable, x86-64,
version 1 (SYSV), dynamically linked, stripped
shared-library linker
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
1
I've runsudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.
– user44168
Jan 5 at 21:17
Would you please add afile yourlib.so
output to your question?
– Rui F Ribeiro
Jan 6 at 0:03
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36
add a comment |
I'm starting a project that requires an external shared library third-party.so
.
I've placed it in /usr/lib
. However, when I run sudo ldconfig -v
, it's not listed.
ldconfig -p | grep third-party.so
proves that it wasn't added to the cache.
Does this mean that there is something wrong with the library? Or am I missing some detail? I've run readelf
on it, and it didn't detect any surprises. Running file /usr/lib/third-party.so
returns:
/usr/lib/third-party.so: ELF 64-bit LSB pie executable, x86-64,
version 1 (SYSV), dynamically linked, stripped
shared-library linker
I'm starting a project that requires an external shared library third-party.so
.
I've placed it in /usr/lib
. However, when I run sudo ldconfig -v
, it's not listed.
ldconfig -p | grep third-party.so
proves that it wasn't added to the cache.
Does this mean that there is something wrong with the library? Or am I missing some detail? I've run readelf
on it, and it didn't detect any surprises. Running file /usr/lib/third-party.so
returns:
/usr/lib/third-party.so: ELF 64-bit LSB pie executable, x86-64,
version 1 (SYSV), dynamically linked, stripped
shared-library linker
shared-library linker
edited Jan 6 at 9:36
user44168
asked Jan 5 at 19:38
user44168user44168
213
213
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
1
I've runsudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.
– user44168
Jan 5 at 21:17
Would you please add afile yourlib.so
output to your question?
– Rui F Ribeiro
Jan 6 at 0:03
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36
add a comment |
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
1
I've runsudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.
– user44168
Jan 5 at 21:17
Would you please add afile yourlib.so
output to your question?
– Rui F Ribeiro
Jan 6 at 0:03
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
1
1
I've run
sudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.– user44168
Jan 5 at 21:17
I've run
sudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.– user44168
Jan 5 at 21:17
Would you please add a
file yourlib.so
output to your question?– Rui F Ribeiro
Jan 6 at 0:03
Would you please add a
file yourlib.so
output to your question?– Rui F Ribeiro
Jan 6 at 0:03
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36
add a comment |
1 Answer
1
active
oldest
votes
An older colleague of mine took a look and gave the solution: the .so must have a lib prefix:
libthird-party.so
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492703%2fplaced-library-in-usr-lib-but-ldconfig-doesnt-put-it-in-cache%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
An older colleague of mine took a look and gave the solution: the .so must have a lib prefix:
libthird-party.so
add a comment |
An older colleague of mine took a look and gave the solution: the .so must have a lib prefix:
libthird-party.so
add a comment |
An older colleague of mine took a look and gave the solution: the .so must have a lib prefix:
libthird-party.so
An older colleague of mine took a look and gave the solution: the .so must have a lib prefix:
libthird-party.so
answered Jan 7 at 10:02
user44168user44168
213
213
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492703%2fplaced-library-in-usr-lib-but-ldconfig-doesnt-put-it-in-cache%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
-v should work. It is possible as the manual states that the library has not sufficient information to be processed automatically.
– Rui F Ribeiro
Jan 5 at 21:11
1
I've run
sudo ldconfig -v 2>&1 | grep third-party
and the library isn't processed at all.– user44168
Jan 5 at 21:17
Would you please add a
file yourlib.so
output to your question?– Rui F Ribeiro
Jan 6 at 0:03
@RuiFRibeiro: ok, posted it.
– user44168
Jan 6 at 9:36