You are not logged in.
Pages: 1
I've took PHP 5.0.4 ebuld - I neede few extras in PHP + I've used PHP 5.10RC1. PHP compiles but I get some errors with missing files etc.
The pkgbuild:
# $Id: PKGBUILD,v 1.60 2005/04/15 00:54:42 judd Exp $
# Maintainer: foo <bar@archlinux.org>
pkgname=php
pkgver=5.1.0RC1
pkgrel=1
pkgdesc="A high-level scripting language"
url="http://www.php.net"
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam' 'gdbm' 'libxml2' 'openldap' 'ncurses' 'curl' 'libxslt')
makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'gd' 'fam' 'sqlite3' 'unixodbc')
source=(php-5.1.0RC1.tar.gz php.ini)
#md5sums=('8edf259bcfab4cfc890a4bb4e7c3649f' 'd5b9b37fbb746f0967d795763106735a')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc
--with-layout=PHP
--with-ttf --enable-mailparse --with-config-file-scan-dir=/etc
--enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared
--enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared
--enable-session --enable-shared --enable-shmop=shared --with-imap
--with-imap-ssl --with-ncurses --with-readline --with-sqlite=shared
--enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars
--enable-trans-sid --enable-safe-mode --enable-sockets=shared
--enable-xml --with-bz2=shared --with-curl --with-mime-magic
--with-unixODBC=/usr --with-mysqli=shared
--enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile
--with-gdbm --with-freetype-dir=/usr --with-gd=shared --enable-exif
--with-jpeg-dir=/usr --with-mysql=shared,/usr --with-ldap=shared
--with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
--with-pear=/usr/share/pear --with-dom --with-dom-xslt --with-xsl
--with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock
--with-png-dir=/usr --with-regex=php --with-zlib --with-fam=shared
--enable-mbstring=all --enable-mbregex --with-interbase=/opt/firebird
--with-tidy=/usr --with-xmlrpc
# fixes a build error in sqlite support
ln -s main/php_config.h ./config.h
make || return 1
mkdir -p $startdir/pkg/usr/lib/apache
# cp config_vars.mk config_vars.old
# sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
cp ../php.ini $startdir/pkg/etc
sed -i "s|^extension_dir=.*$|extension_dir='/usr/lib/php'|g"
$startdir/pkg/usr/bin/php-config
}
The Error:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
Installing PHP SAPI module: apache2handler
/home/httpd/build/instdso.sh SH_LIBTOOL='/home/httpd/build/libtool' libphp5.la /home/piotr/nowe/pkg/php/pkg/usr/lib/apache
/home/httpd/build/libtool --mode=install cp libphp5.la /home/piotr/nowe/pkg/php/pkg/usr/lib/apache/
cp .libs/libphp5.so /home/piotr/nowe/pkg/php/pkg/usr/lib/apache/libphp5.so
cp .libs/libphp5.lai /home/piotr/nowe/pkg/php/pkg/usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/piotr/nowe/pkg/php/src/php-5.1.0RC1/libs'
chmod 755 /home/piotr/nowe/pkg/php/pkg/usr/lib/apache/libphp5.so
apxs:Error: Config file /home/piotr/nowe/pkg/php/pkg/etc/httpd/conf/httpd.conf not found.
make: *** [install-sapi] Błąd 1
sed: can't read /home/piotr/nowe/pkg/php/pkg/usr/bin/php-config: Nie ma takiego pliku ani katalogu
==> ERROR: Build Failed. Aborting...
How can I fix it?
Offline
Well, first this is Arch Linux and not Gentoo... the package-files are named PKGBUILDs and not ebuilds.
Then, what do you need, which isn't already in the official PHP-release? Sorry, but I don't want to parse through the whole configure-options.
Fact is, that it searches the apache in your build-path of PHP. So you either have to copy the relevant files to the path where it searches the files, or you have to modify the configure options so that it can find the needed files in there real paths.
Offline
Well, first this is Arch Linux and not Gentoo... the package-files are named PKGBUILDs and not ebuilds..
ups
I've added --with-interbase=/opt/firebird --with-tidy=/usr --with-xmlrpc to the config
Offline
Pages: 1