Home Help Center

IcePHP install error: Ice files not found in deault path.

I have an Ice 2.0.0 installation and a PHP 5.0.3 installation running on Linux (Fedora).

I downloaded the IcePHP-2.0.0 package, unpacked it, copied the src/ice directory to my php/ext directory and did:
rm -rf configure autom4te.cache
./buildconf --force

This worked although with warnings:

Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13 and automake-1.5.
buildconf: libtool version 1.5.6 (ok)
rebuilding configure
autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
configure.in:147: the top level
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
configure.in:147: the top level

I then ran:

./configure --with-ice=shared,$ICE_HOME

Which gave a lot of output (as expected) ending with:

checking for Ice files in default path... not found
configure: error: Please reinstall the Ice distribution from http://www.zeroc.com

I imagine this could be related to another problem:
The installation of Ice itself went fine, however, gcc was unable to link to Ice's standard libraries which was solved by copying them to /usr/local/lib. Permissions have been checked so that should not be the issue.

I am at a loss as how to solve this problem and would welcome any suggestions. Reinstalling Ice is an option but one I'd very much like to avoid since everything else is working fine. Also, the installation itself gave no errors whatsoever so we're not really sure that it would make any difference.

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    As mentioned in the INSTALL file, the IcePHP distribution includes a replacement for PHP's configure script. You will need to uncompress the configure.gz file and use that instead of PHP's default version.

    Let me know if you are still having trouble.

    Take care,
    - Mark
  • Yes, sorry, failed to mention that I tried doing that afterwards with the same result.

    Regards,
    René K.P.
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Where did you install Ice, and what is the value of ICE_HOME?

    - Mark
  • Good question!

    Even though I was convinced otherwise I double checked and found that ICE_HOME was not set. Setting it properly made the installation run without a hitch.

    A bit embarassing really... :-)

    Thank you for your time,
    René K.P.
  • surfersurfer Member ✭✭
    I've the same problem on FC3

    Hello,

    I've the same problem with the configuration.

    If I configure like:
    .configure --with-ice=$ICE_HOME

    I get the error:

    checking for Ice files in default path... not found
    configure: error: Please reinstall the Ice distribution from http://www.zeroc.com



    Previously I've installed ice-2.1.2-1.i386.rpm, ice-java-2.1.2-1.noarch.rpm
    (by double klicking on the files not by the shell rpm -ivh) and apache-ant-1.6.5-bin.tar.gz. Then I set the environment variables:
    # .bash_profile
    
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    	. ~/.bashrc
    fi
    
    # User specific environment and startup programs
    
    PATH=$PATH:$HOME/bin
    
    export PATH
    unset USERNAME
    export ANT_HOME=/usr/local/apache-ant-1.6.5
    export PATH=${PATH}:${ANT_HOME}/bin
    export JAVA_HOME=/usr/java/jdk1.5.0_04
    export PATH=${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/lib
    # export ICE_HOME=/usr/share/slice
    export ICE_HOME=/usr
    export CLASSPATH=/usr/java/jdk1.5.0_04/lib/tools.jar:/usr/java/jdk1.5.0_04/lib/dt.jar:.:/usr/java/jdk1.5.0_04:classes:/usr/lib/Ice-2.1.2/Ice.jar
    
    

    I've tested the Java hello example and it runs.
    Then I unpacked php-5.0.4.tar.gz and IcePHP-2.1.2.tar.gz.
    Then I followed the ICE-PHP installation file:

    1) Copy the extension source directory.
    $ cd <icephpdir>
    $ cp -r src/ice <phpdir>/ext

    2)
    $ cd <phpdir>
    $ cp <icephpdir>/configure.gz .
    (->I renamed the existing configure script)
    $ gunzip configure

    The I tried to configure it at first with no extensions by:

    $ ./configure --with-ice=$ICE_HOME

    the I've got the error.

    Which files are searched by the script and why is my ICE_HOME wrong for the PHP if it runs with Java?

    Please let me know about the mistake.

    Thanks a lot !!!!!!!!!!

    Greetings
    surfer
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Did you install the C++ development kit?
  • surfersurfer Member ✭✭
    C++ Dev.-Kit

    Hello,

    is it required ?
    No I didn't only these what I mentioned.
    Because I would like to program in Java.

    Thank surfer
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    The PHP configure script is checking for the Ice header files, and those are included in the Ice for C++ development kit RPM.

    - Mark
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    To be perfectly clear: Yes its required to *compile* the Ice for PHP development kit (since the PHP extension is written in C++). You don't need it *after* you've compiled it.
  • surfersurfer Member ✭✭
    Standard FC3 Apache2 (--with-apxs2=/??) and PHP5 ?

    Hello,

    I tried and now it configures it well also with further extensions like XML,
    make and make install ("make install" isn't in the manual but is it required?) is also ok.

    But I've a problem to find Apache2 apxs2 script.
    I've installed FC3 with Apache2 and PHP4 which comes with the 4 installation CD's.
    I didn't installed Apache2 and PHP4 by source.
    I know it is an ICE forum but I searched, "googled" the whole night for it and everybody has the same problem.

    Is it required to install Apache2 by source or is there a way to configure PHP5 with the line:
    "--with-apxs2=/???????????"
    On the FC3 installation there isn't a apxs2 script or any other folder or hint.

    Please give me some information to solve the problem.

    Thanks a lot
    Greetings
    surfer
  • surfersurfer Member ✭✭
    Has somebody a hint??

    Hello,
    I need some help with the PHP5 configuration with the FC3 Apache2.
    Has somebody an hint for me?

    Thanks a lot!!!
    surfer
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    Please read the new forum policy in this announcement.

    Take care,
    - Mark
  • surfersurfer Member ✭✭
    Update response

    Sorry its done !!!
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    The apxs utility is included in the Apache2 development RPM (httpd-devel-2.0.52-3.i386.rpm), or you can build Apache2 from source.

    Take care,
    - Mark
Sign In or Register to comment.