How to get PHP 7.1 to use libreadline.so.8?
After an update of my Manjaro system, my PHP server stopped working, with the error "php: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory".
It was probably caused by te fact that Readline was updated to version 8 and the old version deleted.
So is it possible to tell PHP 7.1 (php71-noconflict, 7.1.26) to use readline 8, or to somehow get both versions working?
php manjaro readline
|
show 2 more comments
After an update of my Manjaro system, my PHP server stopped working, with the error "php: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory".
It was probably caused by te fact that Readline was updated to version 8 and the old version deleted.
So is it possible to tell PHP 7.1 (php71-noconflict, 7.1.26) to use readline 8, or to somehow get both versions working?
php manjaro readline
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Why didn't you just make a symlink oflibreadline.so.7pointing tolibreadline.so.8or compilereadline-7.0from source and then put the library path in a file in/etc/ld.so.conf.d/and then runldconfig?
– Nasir Riley
Jan 24 at 19:43
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25
|
show 2 more comments
After an update of my Manjaro system, my PHP server stopped working, with the error "php: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory".
It was probably caused by te fact that Readline was updated to version 8 and the old version deleted.
So is it possible to tell PHP 7.1 (php71-noconflict, 7.1.26) to use readline 8, or to somehow get both versions working?
php manjaro readline
After an update of my Manjaro system, my PHP server stopped working, with the error "php: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory".
It was probably caused by te fact that Readline was updated to version 8 and the old version deleted.
So is it possible to tell PHP 7.1 (php71-noconflict, 7.1.26) to use readline 8, or to somehow get both versions working?
php manjaro readline
php manjaro readline
edited Jan 26 at 8:09
Stefan
32228
32228
asked Jan 24 at 16:49
MrMidMrMid
34
34
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Why didn't you just make a symlink oflibreadline.so.7pointing tolibreadline.so.8or compilereadline-7.0from source and then put the library path in a file in/etc/ld.so.conf.d/and then runldconfig?
– Nasir Riley
Jan 24 at 19:43
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25
|
show 2 more comments
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Why didn't you just make a symlink oflibreadline.so.7pointing tolibreadline.so.8or compilereadline-7.0from source and then put the library path in a file in/etc/ld.so.conf.d/and then runldconfig?
– Nasir Riley
Jan 24 at 19:43
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Why didn't you just make a symlink of
libreadline.so.7 pointing to libreadline.so.8 or compile readline-7.0 from source and then put the library path in a file in /etc/ld.so.conf.d/ and then run ldconfig?– Nasir Riley
Jan 24 at 19:43
Why didn't you just make a symlink of
libreadline.so.7 pointing to libreadline.so.8 or compile readline-7.0 from source and then put the library path in a file in /etc/ld.so.conf.d/ and then run ldconfig?– Nasir Riley
Jan 24 at 19:43
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25
|
show 2 more comments
1 Answer
1
active
oldest
votes
You can create a symlink in /usr/lib:
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7
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%2f496500%2fhow-to-get-php-7-1-to-use-libreadline-so-8%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
You can create a symlink in /usr/lib:
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7
add a comment |
You can create a symlink in /usr/lib:
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7
add a comment |
You can create a symlink in /usr/lib:
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7
You can create a symlink in /usr/lib:
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7
answered Jan 25 at 22:28
Nasir RileyNasir Riley
2,639249
2,639249
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%2f496500%2fhow-to-get-php-7-1-to-use-libreadline-so-8%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
I have successfully downgraded the library and started php server, but then bash started complaining. So I will need a way to either get php 7.1 working with readline8 or get both versions working along.
– MrMid
Jan 24 at 17:44
Okay, seems like I broke my system completely now. As Bash is missing the readline8 library, I cannot do almost anything. I cannot install readline8 neither using package manager, nor using their own install script. What can I do now? Is there any solution?
– MrMid
Jan 24 at 18:40
Why didn't you just make a symlink of
libreadline.so.7pointing tolibreadline.so.8or compilereadline-7.0from source and then put the library path in a file in/etc/ld.so.conf.d/and then runldconfig?– Nasir Riley
Jan 24 at 19:43
Okay, I did so, thank you. As I am not a very experienced user, it took me a lot of time, and at first I believed that PHP would not work with the new major version, so at first I tried to compile and use the old version, but that gave me errors all the time. The symlinked new version works.
– MrMid
Jan 25 at 22:24
I'll post the symlink solution as an answer.
– Nasir Riley
Jan 25 at 22:25