Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4438 > unrolled thread

repair SUSE php5 -a

Started by"M. Strobel" <sorry_no_mail_here@nowhere.dee>
First post2012-01-12 13:09 +0100
Last post2012-01-14 11:19 +0100
Articles 10 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-12 13:09 +0100
    Re: repair SUSE php5 -a Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-12 08:52 -0500
    Re: repair SUSE php5 -a "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-01-12 16:46 +0100
      Re: repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-12 17:19 +0100
        Re: repair SUSE php5 -a "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-01-12 17:56 +0100
          Re: repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-12 18:03 +0100
            Re: repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-12 18:33 +0100
              Re: repair SUSE php5 -a "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-01-12 18:45 +0100
                Re: repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-12 19:06 +0100
    Re: repair SUSE php5 -a "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-14 11:19 +0100

#4438 — repair SUSE php5 -a

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-12 13:09 +0100
Subjectrepair SUSE php5 -a
Message-ID<9n80s2Fg07U1@mid.uni-berlin.de>
On suse linux "php5 -a" has (always?) been broken.

Compare it to Ubuntu "php5 -a" if you don't know what I mean.

Can it be repaired?

I am tired of ssh-ing into another server to test things.

/Str.

[toc] | [next] | [standalone]


#4441

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-01-12 08:52 -0500
Message-ID<jemoj9$r6h$3@dont-email.me>
In reply to#4438
On 1/12/2012 7:09 AM, M. Strobel wrote:
> On suse linux "php5 -a" has (always?) been broken.
>
> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>
> Can it be repaired?
>
> I am tired of ssh-ing into another server to test things.
>
> /Str.

Talk to the suse people.

Oh, I forgot.  You can't figure out that PHP isn't responsible for 
packaging on the different linuxes.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#4442

From"Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Date2012-01-12 16:46 +0100
Message-ID<jemv94$4n1$1@dont-email.me>
In reply to#4438
El 12/01/2012 13:09, M. Strobel escribió/wrote:
> On suse linux "php5 -a" has (always?) been broken.
>
> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>
> Can it be repaired?
>
> I am tired of ssh-ing into another server to test things.

You assume that most people here have both a SuSE and an Ubuntu box at 
hand but I don't think that's the case (not at least mine). Perhaps you 
could explain what the problem is.

Not knowing what you actually refer to, I've had a look at the manual 
[1] for the -a feature and it says that PHP needs to be compiled with 
the --with-readline option. You can verify that with phpinfo(). In Linux 
distros, a missing feature normally requires to install a binary package 
or recompile an existing one from sources.

[1] http://www.php.net/manual/en/features.commandline.interactive.php


-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

[toc] | [prev] | [next] | [standalone]


#4443

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-12 17:19 +0100
Message-ID<9n8fgrF2qcU1@mid.uni-berlin.de>
In reply to#4442
Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>> On suse linux "php5 -a" has (always?) been broken.
>>
>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>
>> Can it be repaired?
--cut

> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
> don't think that's the case (not at least mine). Perhaps you could explain what the
> problem is.
> 

Es algo esencial en mi opinión. It helps you just do tests interactively.

SUSE:
--------------------------
strobel@s114-intel:~> php5 -a
Interactive mode enabled

<?php echo "hallo";
exit
;
^C
strobel@s114-intel:~>
--------------------------
Ubuntu:
--------------------------
strobel@u-s-dev1:~$ php5 -a
Interactive shell

php > echo "hi there";
hi there
php > exit
strobel@u-s-dev1:~$
--------------------------

The problem might just be a config thing.

/Str.

[toc] | [prev] | [next] | [standalone]


#4444

From"Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Date2012-01-12 17:56 +0100
Message-ID<jen3bt$u9n$1@dont-email.me>
In reply to#4443
El 12/01/2012 17:19, M. Strobel escribió/wrote:
> Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>> On suse linux "php5 -a" has (always?) been broken.
>>>
>>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>
>>> Can it be repaired?
> --cut
>
>> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>> don't think that's the case (not at least mine). Perhaps you could explain what the
>> problem is.
>>
>
> Es algo esencial en mi opinión. It helps you just do tests interactively.
>
> SUSE:
> --------------------------
> strobel@s114-intel:~>  php5 -a
> Interactive mode enabled
>
> <?php echo "hallo";
> exit
> ;
> ^C
> strobel@s114-intel:~>
> --------------------------
> Ubuntu:
> --------------------------
> strobel@u-s-dev1:~$ php5 -a
> Interactive shell
>
> php>  echo "hi there";
> hi there
> php>  exit
> strobel@u-s-dev1:~$
> --------------------------

Alright, that looks like missing "readline" feature, so my guess was 
sort of correct :)

> The problem might just be a config thing.

First of all, please check whether phpinfo() displays "--with-readline" 
as I suggested.


-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

[toc] | [prev] | [next] | [standalone]


#4445

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-12 18:03 +0100
Message-ID<9n8i29FnudU1@mid.uni-berlin.de>
In reply to#4444
Am 12.01.2012 17:56, schrieb "Álvaro G. Vicario":
> El 12/01/2012 17:19, M. Strobel escribió/wrote:
>> Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>>> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>>> On suse linux "php5 -a" has (always?) been broken.
>>>>
>>>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>>
>>>> Can it be repaired?
>> --cut
>>
>>> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>>> don't think that's the case (not at least mine). Perhaps you could explain what the
>>> problem is.
>>>
>>
>> Es algo esencial en mi opinión. It helps you just do tests interactively.
>>
>> SUSE:
>> --------------------------
>> strobel@s114-intel:~>  php5 -a
>> Interactive mode enabled
>>
>> <?php echo "hallo";
>> exit
>> ;
>> ^C
>> strobel@s114-intel:~>
>> --------------------------
>> Ubuntu:
>> --------------------------
>> strobel@u-s-dev1:~$ php5 -a
>> Interactive shell
>>
>> php>  echo "hi there";
>> hi there
>> php>  exit
>> strobel@u-s-dev1:~$
>> --------------------------
> 
> Alright, that looks like missing "readline" feature, so my guess was sort of correct :)
> 
>> The problem might just be a config thing.
> 
> First of all, please check whether phpinfo() displays "--with-readline" as I suggested.

Your link to php.net gave me this idea immediately. But it is not the problem, "php5
-m" shows the compiles modules (called "extensions" by some), readline is there.

Now the problem could be a missing readline in the system, but no:

strobel@s114-intel:~> rpm -qa | grep readline
php5-readline-5.3.5-5.16.1.x86_64
readline-doc-6.1-18.25.1.noarch
libreadline6-6.1-18.25.1.x86_64
readline-devel-6.1-18.25.1.x86_64

More suggestions?

/Str.

[toc] | [prev] | [next] | [standalone]


#4446

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-12 18:33 +0100
Message-ID<9n8jr2F6pmU1@mid.uni-berlin.de>
In reply to#4445
Am 12.01.2012 18:03, schrieb M. Strobel:
> Am 12.01.2012 17:56, schrieb "Álvaro G. Vicario":
>> El 12/01/2012 17:19, M. Strobel escribió/wrote:
>>> Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>>>> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>>>> On suse linux "php5 -a" has (always?) been broken.
>>>>>
>>>>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>>>
>>>>> Can it be repaired?
>>> --cut
>>>
>>>> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>>>> don't think that's the case (not at least mine). Perhaps you could explain what the
>>>> problem is.
>>>>
>>>
>>> Es algo esencial en mi opinión. It helps you just do tests interactively.
>>>
>>> SUSE:
>>> --------------------------
>>> strobel@s114-intel:~>  php5 -a
>>> Interactive mode enabled
>>>
>>> <?php echo "hallo";
>>> exit
>>> ;
>>> ^C
>>> strobel@s114-intel:~>
>>> --------------------------
>>> Ubuntu:
>>> --------------------------
>>> strobel@u-s-dev1:~$ php5 -a
>>> Interactive shell
>>>
>>> php>  echo "hi there";
>>> hi there
>>> php>  exit
>>> strobel@u-s-dev1:~$
>>> --------------------------
>>
>> Alright, that looks like missing "readline" feature, so my guess was sort of correct :)
>>
>>> The problem might just be a config thing.
>>
>> First of all, please check whether phpinfo() displays "--with-readline" as I suggested.
> 
> Your link to php.net gave me this idea immediately. But it is not the problem, "php5
> -m" shows the compiles modules (called "extensions" by some), readline is there.
> 
> Now the problem could be a missing readline in the system, but no:
> 
> strobel@s114-intel:~> rpm -qa | grep readline
> php5-readline-5.3.5-5.16.1.x86_64
> readline-doc-6.1-18.25.1.noarch
> libreadline6-6.1-18.25.1.x86_64
> readline-devel-6.1-18.25.1.x86_64
> 
> More suggestions?
> 
> /Str.
> 

I have been annoyed by this a long time, but never solved it.

I think I found it finally at
http://forums.opensuse.org/english/get-technical-help-here/applications/458753-opensuse-11-4-php5-interactive-readline-not-working.html

The problem is the linux readline library, not to be confounded with the readline
extension of php5 which gives you script access to line editing. And the linux lib
must be compiled in. So a recompile should solve it.

BTW, php5 -a highly recommended if it works on your system.

/Str.

[toc] | [prev] | [next] | [standalone]


#4447

From"Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Date2012-01-12 18:45 +0100
Message-ID<jen672$h7b$1@dont-email.me>
In reply to#4446
El 12/01/2012 18:33, M. Strobel escribió/wrote:
> Am 12.01.2012 18:03, schrieb M. Strobel:
>> Am 12.01.2012 17:56, schrieb "Álvaro G. Vicario":
>>> El 12/01/2012 17:19, M. Strobel escribió/wrote:
>>>> Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>>>>> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>>>>> On suse linux "php5 -a" has (always?) been broken.
>>>>>>
>>>>>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>>>>
>>>>>> Can it be repaired?
>>>> --cut
>>>>
>>>>> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>>>>> don't think that's the case (not at least mine). Perhaps you could explain what the
>>>>> problem is.
>>>>>
>>>>
>>>> Es algo esencial en mi opinión. It helps you just do tests interactively.
>>>>
>>>> SUSE:
>>>> --------------------------
>>>> strobel@s114-intel:~>   php5 -a
>>>> Interactive mode enabled
>>>>
>>>> <?php echo "hallo";
>>>> exit
>>>> ;
>>>> ^C
>>>> strobel@s114-intel:~>
>>>> --------------------------
>>>> Ubuntu:
>>>> --------------------------
>>>> strobel@u-s-dev1:~$ php5 -a
>>>> Interactive shell
>>>>
>>>> php>   echo "hi there";
>>>> hi there
>>>> php>   exit
>>>> strobel@u-s-dev1:~$
>>>> --------------------------
>>>
>>> Alright, that looks like missing "readline" feature, so my guess was sort of correct :)
>>>
>>>> The problem might just be a config thing.
>>>
>>> First of all, please check whether phpinfo() displays "--with-readline" as I suggested.
>>
>> Your link to php.net gave me this idea immediately. But it is not the problem, "php5
>> -m" shows the compiles modules (called "extensions" by some), readline is there.
>>
>> Now the problem could be a missing readline in the system, but no:
>>
>> strobel@s114-intel:~>  rpm -qa | grep readline
>> php5-readline-5.3.5-5.16.1.x86_64
>> readline-doc-6.1-18.25.1.noarch
>> libreadline6-6.1-18.25.1.x86_64
>> readline-devel-6.1-18.25.1.x86_64
>>
>> More suggestions?
>>
>> /Str.
>>
>
> I have been annoyed by this a long time, but never solved it.
>
> I think I found it finally at
> http://forums.opensuse.org/english/get-technical-help-here/applications/458753-opensuse-11-4-php5-interactive-readline-not-working.html
>
> The problem is the linux readline library, not to be confounded with the readline
> extension of php5 which gives you script access to line editing. And the linux lib
> must be compiled in. So a recompile should solve it.

That's what I was trying to say from the beginning: you need PHP 
compiled with the "--with-readline" option. If it's not, you may need to 
recompile from sources.

Running "php5 -m" displays the GNU Readline extension, which is cool to 
write command line scripts in PHP but isn't directly related to the 
command line interpreter (written in C).

However, the readline extension needs the "--with-readline" option as well:

http://es.php.net/manual/en/readline.installation.php

So if you already have it installed, I'm not sure why php -a is not 
aware of it. It'd be cool to see if "--with-readline" shows up in 
phpinfo() but I don't think it'll happen.



-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

[toc] | [prev] | [next] | [standalone]


#4448

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-12 19:06 +0100
Message-ID<9n8lpoFmafU1@mid.uni-berlin.de>
In reply to#4447
Am 12.01.2012 18:45, schrieb "Álvaro G. Vicario":
> El 12/01/2012 18:33, M. Strobel escribió/wrote:
>> Am 12.01.2012 18:03, schrieb M. Strobel:
>>> Am 12.01.2012 17:56, schrieb "Álvaro G. Vicario":
>>>> El 12/01/2012 17:19, M. Strobel escribió/wrote:
>>>>> Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>>>>>> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>>>>>> On suse linux "php5 -a" has (always?) been broken.
>>>>>>>
>>>>>>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>>>>>
>>>>>>> Can it be repaired?
>>>>> --cut
>>>>>
>>>>>> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>>>>>> don't think that's the case (not at least mine). Perhaps you could explain what
>>>>>> the
>>>>>> problem is.
>>>>>>
>>>>>
>>>>> Es algo esencial en mi opinión. It helps you just do tests interactively.
>>>>>
>>>>> SUSE:
>>>>> --------------------------
>>>>> strobel@s114-intel:~>   php5 -a
>>>>> Interactive mode enabled
>>>>>
>>>>> <?php echo "hallo";
>>>>> exit
>>>>> ;
>>>>> ^C
>>>>> strobel@s114-intel:~>
>>>>> --------------------------
>>>>> Ubuntu:
>>>>> --------------------------
>>>>> strobel@u-s-dev1:~$ php5 -a
>>>>> Interactive shell
>>>>>
>>>>> php>   echo "hi there";
>>>>> hi there
>>>>> php>   exit
>>>>> strobel@u-s-dev1:~$
>>>>> --------------------------
>>>>
>>>> Alright, that looks like missing "readline" feature, so my guess was sort of
>>>> correct :)
>>>>
>>>>> The problem might just be a config thing.
>>>>
>>>> First of all, please check whether phpinfo() displays "--with-readline" as I
>>>> suggested.
>>>
>>> Your link to php.net gave me this idea immediately. But it is not the problem, "php5
>>> -m" shows the compiles modules (called "extensions" by some), readline is there.
>>>
>>> Now the problem could be a missing readline in the system, but no:
>>>
>>> strobel@s114-intel:~>  rpm -qa | grep readline
>>> php5-readline-5.3.5-5.16.1.x86_64
>>> readline-doc-6.1-18.25.1.noarch
>>> libreadline6-6.1-18.25.1.x86_64
>>> readline-devel-6.1-18.25.1.x86_64
>>>
>>> More suggestions?
>>>
>>> /Str.
>>>
>>
>> I have been annoyed by this a long time, but never solved it.
>>
>> I think I found it finally at
>> http://forums.opensuse.org/english/get-technical-help-here/applications/458753-opensuse-11-4-php5-interactive-readline-not-working.html
>>
>>
>> The problem is the linux readline library, not to be confounded with the readline
>> extension of php5 which gives you script access to line editing. And the linux lib
>> must be compiled in. So a recompile should solve it.
> 
> That's what I was trying to say from the beginning: you need PHP compiled with the
> "--with-readline" option. If it's not, you may need to recompile from sources.
> 
> Running "php5 -m" displays the GNU Readline extension, which is cool to write command
> line scripts in PHP but isn't directly related to the command line interpreter
> (written in C).
> 
> However, the readline extension needs the "--with-readline" option as well:
> 
> http://es.php.net/manual/en/readline.installation.php
> 
> So if you already have it installed, I'm not sure why php -a is not aware of it. It'd
> be cool to see if "--with-readline" shows up in phpinfo() but I don't think it'll
> happen.

Interesting. Readline only shows up in phpinfo() if run from the command line - which
makes sense. Different ini files.

And indeed, there seems to be no way to see the compile options. And php readline
needs gnu readline? This would make it a bug.

/Str.

[toc] | [prev] | [next] | [standalone]


#4460

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-01-14 11:19 +0100
Message-ID<9nd35jFl87U1@mid.uni-berlin.de>
In reply to#4438
Am 12.01.2012 13:09, schrieb M. Strobel:
> On suse linux "php5 -a" has (always?) been broken.
> 
> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
> 
> Can it be repaired?
> 
> I am tired of ssh-ing into another server to test things.
> 
> /Str.
For the archivers: what I found out

GNU readline is licensed under the GPL, not the LGPL, so there are license issues
when you link it into your project.

It looks like SUSE packaging just does not link in the readline library. I proved it
by compiling PHP "--with-readline", and it works.

Another solution of this problem can be seen at
http://dev.mysql.com/doc/refman/5.6/en/license-gnu-readline.html

/Str.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web