Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: no Cli for php 5.3.x on SUSE 11.2 ?!

  1. #21
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    1,879

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Installed Ubuntu 9.10 'Karmic' in a VM, installed php+php-cli and the output is *exactly* the same as on SuSE, there is no colouring out of the box.

  2. #22
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Looks like php-ncurses was moved to PECL.

    PHP 5.3 on CentOS 5 | Webtatic.com

    About 1/3 down the page. If Karmic comes with 5.3, that would explain the missing ncurses. Yet another gotcha with PHP5.3. I'm glad I'm a cautious person and didn't madly go update every 11.1 box in sight including some running PHP web apps.

    So the answer for the OP is go look for php-ncurses in PECL.

  3. #23

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Quote Originally Posted by ken_yap View Post
    Looks like php-ncurses was moved to PECL.

    PHP 5.3 on CentOS 5 | Webtatic.com

    About 1/3 down the page. If Karmic comes with 5.3, that would explain the missing ncurses. Yet another gotcha with PHP5.3. I'm glad I'm a cautious person and didn't madly go update every 11.1 box in sight including some running PHP web apps.

    So the answer for the OP is go look for php-ncurses in PECL.
    I'm sorry but I cannot find php-ncurses for php 5.3 i386
    only php-ncurses-5.2.x are available ...

    In fact , what about php5-readline extension ?

  4. #24
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    PECL :: Package :: ncurses

    You will have to build this one yourself. Search for an explanation of what PECL is and how to build extensions from its packages.

  5. #25

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Quote Originally Posted by Chrysantine View Post
    Thanks for teaching me, I definitely don't know what the php command line parser is. Why don't you teach me how to move the mouse while you're at it.
    I'm sorry, I didn't believe that you specify information could hurt your feelings.

    you are talking about a feature and I'm talking about an extension that can include many ...

    I know that php command line is included in Suse because I am already currently working with it on my suse terminal: what I seek is the difference between the features provided by php-cli (extension in ubuntu) and the other who seems to be missing in Suse

  6. #26
    Jon_Freeman NNTP User

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Quote Originally Posted by halfkiller View Post
    I think that the appropriate extension in my case is php5-readline .
    I don't believe readline would produce your "colourized" output. I know it's vague but the example you showed does look to me as if it could have been produced by ncurses.

    PECL :: Package :: ncurses

    from admittedly foggy memory, you will need to install the php-develop package. Then you should be able to follow this.

    PHP: Compiling shared PECL extensions with phpize - Manual

  7. #27

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Quote Originally Posted by Jon_Freeman View Post
    I don't believe readline would produce your "colourized" output. I know it's vague but the example you showed does look to me as if it could have been produced by ncurses.

    PECL :: Package :: ncurses

    from admittedly foggy memory, you will need to install the php-develop package. Then you should be able to follow this.

    PHP: Compiling shared PECL extensions with phpize - Manual
    Well, I've downloaded php-ncurses and unfortunately installation process didn't succeed : After "phpize" and "configure" commands when I try to run "make" These errors appear :
    Code:
    /bin/sh /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/libtool --mode=compile cc  -I. -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -DPHP_ATOM_INC -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/include -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/main -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ncurses  -DHAVE_CONFIG_H  -g -O2   -c /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses.c -o ncurses.lo 
    mkdir .libs
     cc -I. -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -DPHP_ATOM_INC -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/include -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/main -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ncurses -DHAVE_CONFIG_H -g -O2 -c /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses.c  -fPIC -DPIC -o .libs/ncurses.o
    /bin/sh /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/libtool --mode=compile cc  -I. -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -DPHP_ATOM_INC -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/include -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/main -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ncurses  -DHAVE_CONFIG_H  -g -O2   -c /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c -o ncurses_fe.lo 
     cc -I. -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -DPHP_ATOM_INC -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/include -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/main -I/home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ncurses -DHAVE_CONFIG_H -g -O2 -c /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c  -fPIC -DPIC -o .libs/ncurses_fe.o
    /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c:29: error: duplicate 'static'
    /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c:35: error: duplicate 'static'
    /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c:42: error: duplicate 'static'
    /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c:169: error: 'first_arg_force_ref' undeclared here (not in a function)
    /home/hichem/Desktop/ncurses-1.0.0/ncurses-1.0.0/ncurses_fe.c:183: error: 'second_arg_force_ref' undeclared here (not in a function)
    make: *** [ncurses_fe.lo] Error 1
    have you any idea ?

  8. #28
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    I think you need more tools than what you have installed. This was the third hit on "pecl opensuse"

    User:Hakre/HowTo PECL on Opensuse WordPress Codex

  9. #29

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Quote Originally Posted by Chrysantine View Post
    Installed Ubuntu 9.10 'Karmic' in a VM, installed php+php-cli and the output is *exactly* the same as on SuSE, there is no colouring out of the box.
    I've worked with Ubuntu from 8.04 and I always have color on php command line . Perhaps your VM don't support some packages that are needed to colorize php command line...

    To be honest, I think that is better to don't use a virtual machine for a professional work

  10. #30
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: no Cli for php 5.3.x on SUSE 11.2 ?!

    Past performance is no indication of future results, as they say when you buy stocks.

    If Karmic went to PHP 5.3 that would explain why ncurses is missing from it.

    Edit: Well no, Karmic stayed at 5.2.10. I'll leave it to Chrysantine to explain why no coloring in Karmic. But the fact is that openSUSE 11.2 has no php5-ncurses and you have to build your own.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •