A
A
Alyosha2017-03-27 20:47:26
linux
Alyosha, 2017-03-27 20:47:26

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

I can’t understand why he doesn’t find the file, he did everything according to the instructions, he doesn’t seem to be stupid, I’m not registered in the pink hospital, please inflate why it happened.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alyosha, 2017-03-28
@GIBRID21

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.

V
Vladimir, 2017-03-27
@n1cew0lf

rpm-qa | grep -i php
If nothing shows up, install the appropriate PHP package

M
Mikhail Konyukhov, 2017-03-28
@piromanlynx

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)

aha, means libreadline.so.7 does not find. We look if it really exists and where:
If it still exists: then we do it as root:
And we repeat ldd modules/libphp7.so - was there a lib? no longer found?
If either is not present (find returned no results), then you need to install it.

C
CityCat4, 2017-03-28
@CityCat4

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 question

Ask a Question

731 491 924 answers to any question