Results 1 to 15 of 15

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

  1. #1
    René Pedersen is offline Registered User
    Join Date
    Feb 2005
    Posts
    6

    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.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    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

  3. #3
    René Pedersen is offline Registered User
    Join Date
    Feb 2005
    Posts
    6
    Yes, sorry, failed to mention that I tried doing that afterwards with the same result.

    Regards,
    René K.P.

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Where did you install Ice, and what is the value of ICE_HOME?

    - Mark

  5. #5
    René Pedersen is offline Registered User
    Join Date
    Feb 2005
    Posts
    6
    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.

  6. #6
    surfer is offline Registered User
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    38

    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:

    Code:
    # .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

  7. #7
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Did you install the C++ development kit?

  8. #8
    surfer is offline Registered User
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    38

    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

  9. #9
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    The PHP configure script is checking for the Ice header files, and those are included in the Ice for C++ development kit RPM.

    - Mark

  10. #10
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    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.

  11. #11
    surfer is offline Registered User
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    38

    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
    Last edited by surfer; 09-06-2005 at 03:12 AM.

  12. #12
    surfer is offline Registered User
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    38

    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

  13. #13
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    Please read the new forum policy in this announcement.

    Take care,
    - Mark

  14. #14
    surfer is offline Registered User
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    38

    Update response

    Sorry its done !!!
    Philipp Henkel Brunel University London MSc student.
    MSc dissertation: Centralized controlling of distributed application servers. Used tools: FC3, W2k, XP, Apache2, PHP5 , ICE-PHP and ICE-Java.

  15. #15
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice 3.4.1 Install Problem "Path too long"
    By Dany2901 in forum Help Center
    Replies: 6
    Last Post: 09-27-2010, 03:28 AM
  2. Build error: LocalObject(const void**) not found
    By mvalle in forum Help Center
    Replies: 2
    Last Post: 12-02-2008, 10:39 AM
  3. Error: Slice source directory not found
    By mkk in forum Help Center
    Replies: 2
    Last Post: 03-21-2005, 08:18 AM
  4. IcePHP: Profile not found.
    By René Pedersen in forum Help Center
    Replies: 5
    Last Post: 03-01-2005, 08:53 AM
  5. slice2freeze generating include path is error
    By dragzhb in forum Bug Reports
    Replies: 2
    Last Post: 09-12-2004, 09:55 PM

Posting Permissions

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