Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-17-2005
René Pedersen 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.
Reply With Quote
  #2 (permalink)  
Old 02-17-2005
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: 971
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
Reply With Quote
  #3 (permalink)  
Old 02-17-2005
René Pedersen 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.
Reply With Quote
  #4 (permalink)  
Old 02-17-2005
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: 971
Where did you install Ice, and what is the value of ICE_HOME?

- Mark
Reply With Quote
  #5 (permalink)  
Old 02-17-2005
René Pedersen 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.
Reply With Quote
  #6 (permalink)  
Old 09-04-2005
surfer 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
Reply With Quote
  #7 (permalink)  
Old 09-04-2005
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,052
Did you install the C++ development kit?
Reply With Quote
  #8 (permalink)  
Old 09-05-2005
surfer 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
Reply With Quote
  #9 (permalink)  
Old 09-05-2005
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: 971
The PHP configure script is checking for the Ice header files, and those are included in the Ice for C++ development kit RPM.

- Mark
Reply With Quote
  #10 (permalink)  
Old 09-05-2005
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,052
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.
Reply With Quote
  #11 (permalink)  
Old 09-06-2005
surfer 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 04:12 AM.
Reply With Quote
  #12 (permalink)  
Old 09-06-2005
surfer 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
Reply With Quote
  #13 (permalink)  
Old 09-06-2005
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: 971
Hi,

Please read the new forum policy in this announcement.

Take care,
- Mark
Reply With Quote
  #14 (permalink)  
Old 09-06-2005
surfer 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.
Reply With Quote
  #15 (permalink)  
Old 09-06-2005
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: 971
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
a IcePHP compile error nightsuns Help Center 3 11-29-2005 06:41 AM
IcePHP, test okey,but apply demo error?help me silva Help Center 1 07-08-2005 04:56 AM
Error: Slice source directory not found mkk Help Center 2 03-21-2005 09:18 AM
IcePHP: Profile not found. René Pedersen Help Center 5 03-01-2005 09:53 AM
slice2freeze generating include path is error dragzhb Bug Reports 2 09-12-2004 10:55 PM


All times are GMT -4. The time now is 06:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.