Building PHP From Source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good afternoon all

I am trying to build PHP from source (Git) as I would like to try and help the project out.

I downloaded the latest source (master) from github.

I ran ./buildconf and then ./configure with the following options

./configure \
    --enable-debug \
    --enable-zts \
    --srcdir=. \
    --config-cache \
    --prefix=/home/jonny/myphp \    --sbindir=/home/jonny/myphp/bin \
    --sysconfdir=/home/jonny/myphp/etc/myphp8 \
    --localstatedir=/var \
    --with-layout=GNU \
    --with-config-file-path=/home/jonny/myphp/etc/myphp8 \
    --with-config-file-scan-dir=/home/jonny/myphp/etc/myphp8/conf.d \
    --disable-rpath \
    --mandir=/home/jonny/myphp/man \
    --libdir=/home/jonny/myphp/usr/lib/myphp8 \
    --datarootdir=/home/jonny/myphp/usr/share/myphp8 \
    --datadir=/home/jonny/myphp/usr/share/myphp8 \
    --program-suffix=8.2 \
    --includedir=/home/jonny/myphp/usr/include/myphp8 \
    --host= \
    --enable-cgi \
    --enable-fpm \
    --with-fpm-user=http \
    --with-fpm-group=http \
    --enable-embed=shared \
    --enable-bcmath=shared \
    --enable-calendar=shared \
    --enable-exif=shared \
    --enable-ftp=shared \
    --enable-intl=shared \
    --enable-mbstring \
    --enable-opcache \
    --enable-pcntl \
    --enable-phar=shared \
    --enable-posix=shared \
    --enable-shmop=shared \
    --enable-soap=shared \
    --enable-sockets=shared \
    --enable-sysvmsg=shared \
    --enable-sysvsem=shared \
    --enable-sysvshm=shared \
    --enable-mysqlnd \
    --enable-gd=shared \
    --with-external-gd \
    --with-ffi=shared \
    --with-bz2=shared,/usr/ \
    --with-curl=shared \
    --with-db4=/usr \
    --with-enchant=shared,/usr \
    --with-gdbm=/usr \
    --with-gettext=shared \
    --with-gmp=shared \
    --with-iconv=shared \
    --with-ldap=shared,/usr \
    --with-ldap-sasl \
    --with-sodium=shared \
    --with-mhash \
    --with-mysql-sock=/run/mysqld/mysqld.sock \
    --with-mysqli=shared,mysqlnd \
    --with-openssl=shared \
    --with-external-pcre \
    --with-pear=/home/jonny/myphp/usr/share/mypear \
    --with-pdo-mysql=shared,mysqlnd \
    --with-pdo-odbc=shared,unixODBC,/usr \
    --with-pdo-pgsql=shared,/usr \
    --with-pdo-sqlite=shared,/usr \
    --with-pgsql=shared,/usr \
    --with-readline=/usr \
    --with-snmp=shared,/usr \
    --with-sqlite3=shared,/usr \
    --with-unixODBC=shared,/usr \
    --with-xsl=shared,/usr \
    --with-tidy=shared,/usr \
    --with-zip=shared \
    --with-zlib

I get the following output

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  
configure: loading cache config.cache
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./build/config.sub   failed


What values should I use for --build, --host and --target? in the ./configure command?

I am building on an Intel x86_64 bit platform running Void Linux.

The output of uname -a is

Linux jrlp02 6.1.18_1 #1 SMP PREEMPT_DYNAMIC Mon Mar 13 13:42:23 UTC 2023 x86_64 GNU/Linux

Many thanks

J




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux