Answer the question
In order to leave comments, you need to log in
Apache on arch linux starts with the error "libreadline.so.7: cannot open shared object file: No such file or directory". How to fix?
Installed arch, installed apache, php, php-apache.
The server has earned (began to give html). Then I started to configure php and did everything according to the instructions:
wiki.archlinus.org
When checking the status of "apachectl configtest" it gives an error:
httpd: Syntax error on line 185 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp7.so into server: libreadline.so.7: cannot open shared object file: No such file or directory
Answer the question
In order to leave comments, you need to log in
fshp @fshp
Alexey Naberezhny: that's another problem. Your system is in limbo - packages need the same dependency but different versions. It looks like you interrupted the system update at one time. I recommend updating - sudo pacman -Suy
- the gentleman turned out to be right, there was a problem with the update, if he had answered not in the comments, he would have chosen the answer.
rpm-qa | grep -i php
If nothing shows up, install the appropriate PHP package
Find modules/libphp7.so. look at it with ldd:
see what is missing:
linux-vdso.so.1 (0x00007ffda62f8000)
libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007fdb4dc50000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fdb4da20000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdb4d670000)
libreadline.so.7 => not found
/lib64/ld-linux-x86-64.so.2 (0x00007fdb4e098000)
Install the readline package - most likely it will be called that. Well, or ask Google what it's called, do a search by index ... In general, the loader honestly said that he could not find libreadline.so.7 in those directories that were indicated to him as library storage locations, but what about you solve this problem, he doesn't know :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question