Results 1 to 9 of 9

Thread: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

  1. #1
    taucher4000 NNTP User

    Exclamation OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Hello,

    id like to Update my php5 5.2.9 (installed with yast) to the version 5.3.0.

    I have download the current tar-archive from php.net and have unzip it in my src-folder. Then I have compiled it with the parameter vom "phpinfo();".

    Code:
    configure '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'

    After "make install" the phpinfo() says version 5.2.9 .
    what I do wrong? How I can upgrate my php-Version?

    Thank you very much! for your help
    Taucher4000

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,601

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Did you look into those directories if files where stored there?
    Henk van Velden

  3. #3
    taucher4000 NNTP User

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Hello hcw,

    what folders do you mean?
    I have the prefix "/usr" specified when compile. But after rund "make install", the php5 -v command says Version 5.2.9 is installed.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,601

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    I do mean directories (not folders). You have a datadir, a mandir, etc in the statement you show. An ls -l on those must show if, and when yes, what is changed recently.

    When you gave /usr, is that because that is recommended to do so somewhere?
    When all the resulting fiiles went to places where the 5.2.9 version is not located, you have now two versions. 5.2.9 still alive and kicking and 5.3.0 sitting somewhere where nobody notices.

    you could do a
    Code:
    find / -name php5
    (as root) to find out where the file named php5 is found.
    Henk van Velden

  5. #5
    taucher4000 NNTP User

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Hello hcw,

    thanks for your reply. In all this directories are files from the old version. "make install" hasnt updates this files.

    Code:
    #find / -name php5
    /etc/php5
    /var/lib/php5
    /usr/bin/php5
    /usr/lib/php5
    /usr/share/doc/packages/php5
    /usr/share/php5
    /usr/include/php5
    When I would install php 5.3.0 with make, the installer would produce the following:

    Code:
    /usr/src/php-5.3.0 # make install
    Installing PHP SAPI module:       apache2handler
    /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/lib/apache2
    /usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/
    cp .libs/libphp5.so /usr/lib/apache2/libphp5.so
    cp .libs/libphp5.lai /usr/lib/apache2/libphp5.la
    libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.3.0/libs'
    chmod 755 /usr/lib/apache2/libphp5.so
    activating php5
    "php5" already present
    Installing build environment:     /usr/lib/php/build/
    Installing header files:          /usr/include/php/
    Installing helper programs:       /usr/bin/
      program: phpize5
      program: php-config5
    Installing man pages:             /usr/share/man/man1/
      page: phpize5.1
      page: php-config5.1
    But why the installer dont update or replace this files?

    Code:
    /usr/bin/php5 -v
    PHP 5.2.9 with Suhosin-Patch 0.9.7 (cli) (built: Mar 12 2009 16:29:05)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
        with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,601

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    I was posting because it came to my mind that everything might be there, but on a different place (such things happen on different distributions). Not because I ever did this.

    The next is also just a suggestion. I see in the listing above:
    Code:
    libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.3.0/libs'
    I am not sure if this is to be done by you or not, but you may try it.
    Henk van Velden

  7. #7
    taucher4000 NNTP User

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Hello,

    I have seen that even. When I run this command, the following output can be show:

    Code:
    # ./libtool --finish /usr/src/php-5.3.0/libs
    PATH="$PATH:/sbin" ldconfig -n /usr/src/php-5.3.0/libs
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /usr/src/php-5.3.0/libs
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    In this directory (/usr/src/php-5.3.0/libs) I can find the libphp5.so library. This is the same file that will installed, if I start "make install". This is the only File which installed on "make install".

    But php5.3.0 isnt installed then.

  8. #8
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,469
    Blog Entries
    14

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Please take a look at this, and see the difference:

    #find / -name php5
    /etc/php5
    /var/lib/php5
    /usr/bin/php5
    /usr/lib/php5
    /usr/share/doc/packages/php5
    /usr/share/php5
    /usr/include/php5

    and

    Installing build environment: /usr/lib/php/build/
    Installing header files: /usr/include/php/
    Installing helper programs: /usr/bin/

    I'm not realy into compiling php5, but to me it seems that, if your goal is to replace existing install by a new one, the include files should be in /usr/include/php5. Makes me wonder whether the rest is installed in /usr/lib/php etc etc.

    Just a try to help
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  9. #9

    Default Re: OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0

    Just a little reminder:

    SUSE Linux Lifetime - openSUSE

    [opensuse-announce] Advance notice of discontinuation of openSUSE 10.3

    One might ask, if it makes sense to fiddle around with a distribution reaching EOL in a few weeks (and replacing core components with "hand made", unsupported ones).

    For a productive system, this is IMHO a "double no go".

Posting Permissions

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