php: symbol lookup error: php: undefined symbol: rl_on_new_l

Issues related to applications and software problems
goodspeed666
Posts: 5
Joined: 2014/10/17 03:51:25

Re: php: symbol lookup error: php: undefined symbol: rl_on_n

Post by goodspeed666 » 2014/10/20 01:22:14

stevemowbray wrote:Perhaps you are not running the packaged version of php. What is the result of which php?
Hi,

I got this.
[root@srvGit ~]# which php
/usr/bin/php

User avatar
remirepo
Posts: 398
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: php: symbol lookup error: php: undefined symbol: rl_on_n

Post by remirepo » 2014/10/20 06:30:53

rl_on_new_line is provided by libedit (libedit-3.0-12.20121213cvs.el7.x86_64)

some check

Code: Select all

$ rpm -q libedit
libedit-3.0-12.20121213cvs.el7.x86_64
$ rpm -V libedit
$ ldd /usr/bin/php | grep edit
        libedit.so.0 => /lib64/libedit.so.0 (0x00007f6902743000)
$  ll /usr/lib64/libedit*
lrwxrwxrwx. 1 root root     17  3 sept. 06:34 /usr/lib64/libedit.so.0 -> libedit.so.0.0.42
-rwxr-xr-x. 1 root root 235064 26 janv.  2014 /usr/lib64/libedit.so.0.0.42
Remi's Repository - Forum - Blog

goodspeed666
Posts: 5
Joined: 2014/10/17 03:51:25

Re: php: symbol lookup error: php: undefined symbol: rl_on_n

Post by goodspeed666 » 2014/10/20 06:40:04

remirepo wrote:rl_on_new_line is provided by libedit (libedit-3.0-12.20121213cvs.el7.x86_64)

some check

Code: Select all

$ rpm -q libedit
libedit-3.0-12.20121213cvs.el7.x86_64
$ rpm -V libedit
$ ldd /usr/bin/php | grep edit
        libedit.so.0 => /lib64/libedit.so.0 (0x00007f6902743000)
$  ll /usr/lib64/libedit*
lrwxrwxrwx. 1 root root     17  3 sept. 06:34 /usr/lib64/libedit.so.0 -> libedit.so.0.0.42
-rwxr-xr-x. 1 root root 235064 26 janv.  2014 /usr/lib64/libedit.so.0.0.42
Hi remirepo,

My libedit is for el5 verison. (20090923-3.0_1.el5.rf)
I remove it.
When I install el7 version, it's work !

Thanks very much !!

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: php: symbol lookup error: php: undefined symbol: rl_on_n

Post by TrevorH » 2014/10/20 07:23:12

If you are running an el7 system then there should be no packages from either el5 or el6 installed. Others suffering this problem might want to run rpm -qa | grep "el[56]" and remove/replace any packages that are listed.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

goodspeed666
Posts: 5
Joined: 2014/10/17 03:51:25

Re: php: symbol lookup error: php: undefined symbol: rl_on_n

Post by goodspeed666 » 2014/10/20 07:45:44

TrevorH wrote:If you are running an el7 system then there should be no packages from either el5 or el6 installed. Others suffering this problem might want to run rpm -qa | grep "el[56]" and remove/replace any packages that are listed.
Hi TrevorH,
It' very useful, thx !

Post Reply

Return to “CentOS 7 - Software Support”