How to get PHP 7.1 to use libreadline.so.8?












0















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?










share|improve this question

























  • 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.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











  • I'll post the symlink solution as an answer.

    – Nasir Riley
    Jan 25 at 22:25
















0















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?










share|improve this question

























  • 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.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











  • I'll post the symlink solution as an answer.

    – Nasir Riley
    Jan 25 at 22:25














0












0








0








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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











  • 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











  • 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











  • 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










1 Answer
1






active

oldest

votes


















0














You can create a symlink in /usr/lib:



ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7 





share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    You can create a symlink in /usr/lib:



    ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7 





    share|improve this answer




























      0














      You can create a symlink in /usr/lib:



      ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7 





      share|improve this answer


























        0












        0








        0







        You can create a symlink in /usr/lib:



        ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7 





        share|improve this answer













        You can create a symlink in /usr/lib:



        ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7 






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 at 22:28









        Nasir RileyNasir Riley

        2,639249




        2,639249






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book