[MacPorts] #20394: php5-readline: Unable to load dynamic library './readline.so'
MacPorts
noreply at macports.org
Tue Jul 21 20:47:45 PDT 2009
#20394: php5-readline: Unable to load dynamic library './readline.so'
---------------------------------+------------------------------------------
Reporter: trevor@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: php readline dlopen | Port: php5-readline
---------------------------------+------------------------------------------
Comment(by ryandesign@…):
Replying to [comment:4 trevor@…]:
> Alright, extension_dir = "./" was definitely the problem.
>
> Looking through my logs, it looks like the warning was displayed when I
first upgraded, but I missed it (I was updating everything, so there was a
lot to review).
>
> Running sudo port -nf upgrade php5-readline did not display the warning
message, however.
Had you already removed the line from your php.ini at the time you rebuilt
php5-readline? The warning is only printed if the problematic line exists
in the php.ini.
> Also, running 'php -a' still doesn't seem to be using readline.
I don't use readline, but before moving readline functionality from the
readline variant to the php5-readline port, I tested it in the following
way:
{{{
$ port deactivate php5-readline
---> Deactivating php5-readline
$ php -r 'echo (int)function_exists("readline")."\n";'
0
$ port activate php5-readline
---> Activating php5-readline
$ php -r 'echo (int)function_exists("readline")."\n";'
1
$
}}}
I did not know about "php -a". I now see from the php manpage that "php
-a" makes use of readline if available. I did not realize php itself used
readline; I thought it just made readline functions available to your PHP
scripts.
--
Ticket URL: <http://trac.macports.org/ticket/20394#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list