You are not logged in.

#1 2005-09-07 18:24:19

Blaster
Member
Registered: 2004-09-17
Posts: 49

makepkg fails

trying to run makepkg, returns the following erro
/usr/bin/makepkg: line 560: build: command not found
==> ERROR: Build Failed.  Aborting...

trying to build php4

with this

# $Id: PKGBUILD,v 1.43 2004/07/02 21:18:08 judd Exp $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=php
pkgver=4.3.9
pkgrel=2
pkgdesc="A high-level scripting language"
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam'
         'gdbm' 'libxslt' 'openldap')
makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'smtp-server')
source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz)# php.ini)
url="http://www.php.net"
md5sums=('c685cb76bff996a4dff87097c43e6987')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc
    --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
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars
    --enable-trans-sid --enable-safe-mode --enable-sockets=shared
    --enable-xml --with-bz2=shared --without-db2 --without-db3
    --with-freetype-dir=/usr --with-gd --with-gdbm --enable-exif
    --with-jpeg-dir=/usr --with-mysql=shared,/usr --with-ldap
    --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt
    --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock
    --with-png-dir=/usr --with-regex=system --with-zlib
  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 php4|-i -n php4|g" Makefile
  make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
 
}
md5sums=('c685cb76bff996a4dff87097c43e6987')

Offline

#2 2005-09-07 18:35:44

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: makepkg fails

switch

source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz)# php.ini)

to

source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz) # php.ini)

Offline

#3 2005-09-09 12:40:52

Blaster
Member
Registered: 2004-09-17
Posts: 49

Re: makepkg fails

tnx works like a charm

Offline

Board footer

Powered by FluxBB