Justtechjobs.com Find a programming school near you






Online Campus Both


php-install | 2002112

[PHP-INST] Trying to build rpm from src.rpm php4.2.1 (RH 7.2) From: Lars (lars <email protected>)
Date: 11/20/02

Can anybody help with this ?

Trying to build rpm php 4.2.1

  : rpm -ivh php-4.1.2-7.2.6.src.rpm
cd 'ed to SPECS

edited php.spec

to :

# Shell function to configure and build a PHP tree.
#
build() {
ln -sf ../configure
%configure \
         --prefix=%{_prefix} \
         --with-config-file-path=%{_sysconfdir} \
         --enable-force-cgi-redirect \
         --disable-debug \
         --enable-pic \
         --disable-rpath \
         --enable-inline-optimization \
         --with-bz2 \
         --with-db3 \
         --with-curl \
         --with-dom=%{_prefix} \
         --with-exec-dir=%{_bindir} \
         --with-freetype-dir=%{_prefix} \
         --with-png-dir=%{_prefix} \
         --with-gd \
         --enable-gd-native-ttf \
         --with-ttf \
         --with-gdbm \
         --with-gettext \
         --with-ncurses \
         --with-gmp \
         --with-iconv \
         --with-jpeg-dir=%{_prefix} \
         --with-mm \
         --with-openssl \
         --with-png \
         --with-pspell \
         --with-regex=system \
         --with-xml \
         --with-expat-dir=%{_prefix} \
         --with-zlib \
         --with-layout=GNU \
         --enable-bcmath \
         --enable-debugger \
         --enable-exif \
         --enable-ftp \
         --with-pear=/usr/share/pear \
         --enable-magic-quotes \
         --enable-safe-mode \
         --enable-sockets \
         --enable-sysvsem \
         --enable-sysvshm \
         --enable-discard-path \
         --enable-track-vars \
         --enable-trans-sid \
         --enable-yp \
         --enable-wddx \
         --without-oci8 \
# --with-imap=shared \ ###########
# --with-imap-ssl \ ###########
         --with-kerberos=/usr/kerberos \
# --with-ldap=shared \ ###########
         --with-mysql=shared,%{_prefix} \
         --with-interbase=/opt/interbase \ ############### added
%if %{oracle}
         --with-oci8=shared \
%endif
         --with-pgsql=shared \
         --with-snmp=shared,%{_prefix} \
         --with-snmp=shared \
         --enable-ucd-snmp-hack \
         --with-unixODBC=shared \
         --enable-memory-limit \
         --enable-bcmath \
         --enable-shmop \
         --enable-versioning \
         --enable-calendar \
         --enable-dbx \
         --enable-dio \
         --enable-mbstring \
         --enable-mbstr-enc-trans \
         $*

saved and issued: rpm -ba php.spec

Until I get :

creating number.c
creating number.h
creating main/internal_functions.c
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+

Thank you for using PHP.

+ --with-kerberos=/usr/kerberos
/var/tmp/rpm-tmp.19210: --with-kerberos=/usr/kerberos: No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.19210 (%build)

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

# ls -l /usr/kerberos/
total 24
drwxr-xr-x 2 root root 4096 Sep 11 03:15 bin
drwxr-xr-x 8 root root 4096 Sep 11 03:15 include
drwxr-xr-x 2 root root 4096 Sep 11 03:15 lib
drwxr-xr-x 4 root root 4096 Oct 23 2002 man
drwxr-xr-x 2 root root 4096 Sep 11 03:15 sbin
drwxr-xr-x 3 root root 4096 Oct 23 2002 share

Any help would be greatly appreciated

Lars

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php