php5 on CentOS 4.3 x86_64

[QUOTE=IWorx-Paul;11537]Try:

yum install gcc-c++

  • edit: yeah, what Pascal said :slight_smile:

Paul[/QUOTE]

ha ha I win this one :stuck_out_tongue:

Now freezed with, when try rebuild rpms php 5.2

checking for crypt in -lcrypt… yes
configure: error: Cannot find rfc822.h. Please check your c-client installation.

How fix this?

Install php 5.2 on cemntro 4.4 its a nightmare !!!

now freezed on thsi point:

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.15797 (%build)

Dj-grobe, please do not cross post. Post your problem in one thread, and in one thread only, so it makes it easier for people to follow and respond.

Yes, sorry
I delete the other post, and just leave this, anyway now i have fixed : )

NOW HAVE ANOTHER TROUBLE ; (

lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt -o sapi/cgi/php
/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.81617 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.81617 (%build)

Some idea?

My OS is centos 4.4 and i try build rpms for php 5.2 using php-5.2.0-100.iworx.src.rpm

EDIT: yum install libgcrypt-devel

Well, finally its done !! : )
php 5.2 working : )

NOW troubels installing php 5.2 on 64 bit centos 4.4 !!

rpmbuild --rebuild --with rhe4x php-5.2.0-100.iworx.src.rpm
Installing php-5.2.0-100.iworx.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.81134

  • umask 022
  • cd /usr/src/redhat/BUILD
  • cd /usr/src/redhat/BUILD
  • rm -rf php-5.2.0
  • /bin/gzip -dc /usr/src/redhat/SOURCES/php-5.2.0.tar.gz
  • tar -xf -
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
  • cd php-5.2.0
    ++ /usr/bin/id -u
  • ‘[’ 0 = 0 ‘]’
  • /bin/chown -Rhf root .
    ++ /usr/bin/id -u
  • ‘[’ 0 = 0 ‘]’
  • /bin/chgrp -Rhf root .
  • /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • echo ‘Patch #0 (php-5.0.5-configure.patch):’
    Patch #0 (php-5.0.5-configure.patch):
  • patch -p0 -s
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    misordered hunks! output would be garbled
    172 out of 286 hunks FAILED – saving rejects to file configure.rej
    error: Bad exit status from /var/tmp/rpm-tmp.81134 (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.81134 (%prep)

I have thsi error when try build rpm from sources on cento 4.4 64 bit version.

Some idea?

Why cant use 5.2 provided form iworx ?

It’s been a LONG time since I built PHP5 on a 64-bit box, but I remember it being a very, very, very painful process. You could try commenting out those patches in the spec file. Look for this:


%ifarch x86_64
%patch -p0
%endif

in the spec file, and comment it out, or simply delete it.

Why nopbody support 64 bit OS?

I see across the web the support its absolutly poor.

Thankyou socheat for try help.

Trying right now with:
http://mirror.centos.org/centos/4/centosplus/x86_64/SRPMS/php-5.1.6-1.2.1.centos.src.rpm

After i finish recompile i not have errors, but if run phpinfo form web all data its showed on plain text…this its normal?

If sombody form iworx want use my server for create source php rpm compatible with centos 4.4 64 bits, please tellme and i open ticket …i hoppe iworx can !!

Just one rar thing…

When i run phpinfo form inside the nodeworx, all info its showd in plain txt like this:

phpinfo() PHP Version => 5.1.6 System => Linux sv1 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 09:40:21 EST 2007 x86_64 Build Date => Apr 25 2007 09:10:19 Configure Command => ‘./configure’ ‘–host=x86_64-redhat-linux-gnu’ ‘–build=x86_64-redhat-linux-gnu’ ‘–target=x86_64-redhat-linux’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib64’ ‘–libexecdir=/usr/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir=/usr/com’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–cache-file=…/config.cache’ ‘–with-libdir=lib64’ ‘–with-config-file-path=/etc’ ‘–with-config-file-scan-dir=/etc/php.d’ ‘–disable-debug’ ‘–with-pic’ ‘–disable-rpath’ ‘–without-pear’ ‘–with-bz2’ ‘–with-curl’ ‘–with-exec-dir=/usr/bin’ ‘–with-freetype-dir=/usr’ ‘–with-png-dir=/usr’ ‘–enable-gd-native-ttf’ ‘–without-gdbm’ ‘–with-gettext’ ‘–with-gmp’ ‘–with-iconv’ ‘–with-jpeg-dir=/usr’ ‘–with-openssl’ ‘–with-png’ ‘–with-pspell’ ‘–with-expat-dir=/usr’ ‘–with-pcre-regex=/usr’ ‘–with-zlib’ ‘–with-layout=GNU’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-magic-quotes’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-sysvmsg’ ‘–enable-track-vars’ ‘–enable-trans-sid’ ‘–enable-yp’ ‘–enable-wddx’ ‘–with-kerberos’ ‘–enable-ucd-snmp-hack’ ‘–with-unixODBC=shared,/usr’ ‘–enable-memory-limit’ ‘–enable-shmop’ ‘–enable-calendar’ ‘–enable-dbx’ ‘–enable-dio’ ‘–with-mime-magic=/etc/httpd/conf/magic’ ‘–without-sqlite’ ‘–with-libxml-dir=/usr’ ‘–with-xml’ ‘–enable-force-cgi-redirect’ ‘–enable-pcntl’ ‘–with-imap=shared’ ‘–with-imap-ssl’ ‘–enable-mbstring=shared’ ‘–enable-mbstr-enc-trans’ ‘–enable-mbregex’ ‘–with-ncurses=shared’ ‘–with-gd=shared’ ‘–enable-bcmath=shared’ ‘–enable-dba=shared’ ‘–with-db4=/usr’ ‘–with-xmlrpc=shared’ ‘–with-ldap=shared’ ‘–with-mysql=shared,/usr’ ‘–with-mysqli=shared,/usr/bin/mysql_config’ ‘–enable-dom=shared’ ‘–with-dom-xslt=/usr’ ‘–with-dom-exslt=/usr’ ‘–with-pgsql=shared’ ‘–with-snmp=shared,/usr’ ‘–enable-soap=shared’ ‘–with-xsl=shared,/usr’ ‘–enable-xmlreader=shared’ ‘–enable-xmlwriter=shared’ ‘–enable-fastcgi’ ‘–enable-pdo=shared’ ‘–with-pdo-odbc=shared,unixODBC,/usr’ ‘–with-pdo-mysql=shared,/usr’ ‘–with-pdo-pgsql=shared,/usr’ ‘–with-pdo-sqlite=shared’ Server API => Command Line Interface Virtual Directory Support => disabled Con

When i run php info from any site, just showed on nice page like usuall.

Why this?
Some idea?

You probably built PHP as a cli instead of as a cgi binary. The page in nodeworx simply displays the output of the command line call:

php -i

If the PHP binary was built as a CGI, then you would get HTML formatted output printed to the screen. If you built it as a CLI, then you get plain text printed to the screen, which causes the format to be weird in NodeWorx.

Yes, exelent answer :slight_smile: this isntall have php as cli.
Well i asume this not affect normal usage: )

Anyway if sombody form interworx want use my mahcine for build scr.rpm comaptible with centos 4.4 64bit just tellme please : )