Configuring TSRM
checking for stdarg.h… (cached) yes
Configuring libtool
checking build system type… i686-pc-linux-gnu
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking how to recognise dependent libraries… pass_all
checking for object suffix… o
checking for executable suffix… no
checking for c++… no
checking for g++… no
checking for gcc… gcc
checking whether the C++ compiler (gcc ) works… no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
error: Bad exit status from /var/tmp/rpm-tmp.92762 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.92762 (%build)
[root@capecodleisure ~]#
rpm -Uhv --nodeps --force /usr/src/redhat/RPMS/uname -i/php 5.2.0-100
error: open of /usr/src/redhat/RPMS/i386/php failed: No such file or directory
error: open of 5.2.0-100 failed: No such file or directory
i did try to skip this step and restart
service mysqld restart
service imap4 restart
service imap4-ssl restart
service pop3 restart
service pop3-ssl restart
service httpd restart
service iworx restart
but i guess i still have php 5.1.6 sucks to be new00bie
Just wanted to note I have posted updated RPM packages for PHP 4.4.7 and PHP 5.2.3. These RPMs now build properly on 64-bit operating systems. Additionally, I have corrected a few instructions slightly.
There are still some issues with MySQL RPMs, apparently, which I will look into as I have a chance. I have not prepared working 5.1.6 or 5.0.4 packages that work with 64-bit because these versions have not yet been needed by steadfast customers. You should use 4.4.x or 5.2.x if at all possible anyway.
yum install rpmbuild --rebuild --nobuild --with cos4x http://mirror.steadfast.net/misc/iworx/php-5.1.6-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print \$1 }' | xargs
Error: Need to pass a list of pkgs to install
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don’t update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
–version show Yum version and exit
–installroot=[path] set install root
–enablerepo=[repo] enable one or more repositories (wildcards allowed)
–disablerepo=[repo] disable one or more repositories (wildcards allowed)
–exclude=[package] exclude package(s) by name or glob
–obsoletes enable obsoletes processing during updates
–noplugins disable Yum plugins
I also received the error and ignored and moved on to the next step. Everything is working fine with PHP5.2.3 now.
Have you followed their instructions before?
I assume that since I had followed the instructions for from Steadfast for a PHP 5.2.0 installation earlier this year, the failure of both sections in Step 2 of the PHP install instructions were related to the fact that install libmhash-devel libmcrypt-devel were already installed and up to date, and there were no additional packages needed by rpmbuild.
[root@#### ~]# yum install libmhash-devel libmcrypt-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libmhash-devel
Nothing to do
checking for flex… lex
checking for yywrap in -ll… no
checking lex output file root… ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up
error: Bad exit status from /var/tmp/rpm-tmp.93629 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93629 (%build)
There will probably be other missing dependencies before you get to the point where the build will work. Just post your errors here as the come, and we can help you figure out which packages you need to install.
Recently it makes upgrade to php 5.1.6 but I had soon to lower it php 4,4 since there were scripts that was not compatible. -
Everything apparently works well but when I execute some scripts of this form:
/usr/bin/php -q -f /home/path/algo.php
The following error is originated:
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.1.so: /usr/local/ioncube/ioncube_loader_lin_5.1.so: undefined symbol: _zend_hash_init
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/domxml.so’ - /usr/lib/php5/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/imap.so’ - /usr/lib/php5/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/ldap.so’ - /usr/lib/php5/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/mbstring.so’ - /usr/lib/php5/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/mcrypt.so’ - /usr/lib/php5/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/mhash.so’ - /usr/lib/php5/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/mysql.so’ - /usr/lib/php5/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/ncurses.so’ - /usr/lib/php5/ncurses.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/odbc.so’ - /usr/lib/php5/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/pgsql.so’ - /usr/lib/php5/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/snmp.so’ - /usr/lib/php5/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php5/xmlrpc.so’ - /usr/lib/php5/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
installed.
Name : libxml2-devel
Arch : i386
Version: 2.6.16
Release: 10
Size : 8.4 M
Repo : installed
Summary: Libraries, includes, etc. to develop XML and HTML applications
[quote=hubbadubba;14826]If you are running RH or Centos, I suggest you save yourslef some time and install rpms from this repo: http://remi.collet.free.fr/rpms/
I used the MySQL and PHP 5 rpms on my X86_64 Centos 5 box and they work perfectly for me.[/quote]
Sorry, but i have CentOS 4.5