RU EN

Собираем PHP 5.3.9 на OpenBSD под AMD64

 

Из PECL-библиотек использую bbcode-1.0.2, crack-0.4, eaccelerator-0.9.6.1, svn-1.0.1, translit-0.6.1. После скачивания, распаковки и переименования папок этих расширений устанавливаем переменные окружения:

export PHP_AUTOCONF=/usr/local/bin/autoconf-2.13
export PHP_AUTOHEADER=/usr/local/bin/autoheader-2.13
export PHP_AUTOMAKE=/usr/local/bin/automake-1.4
export CFLAGS="-O3 -march=k8 -fomit-frame-pointer -pipe"
export CXXFLAGS="-O3 -march=k8 -fomit-frame-pointer -pipe"

Далее конфигурируем PHP:

rm configure config.cache && ./buildconf --force
./configure --disable-debug --build=amd64-server-openbsd4.9 --target=amd64-server-openbsd4.9 --host=amd64-server-openbsd4.9 --disable-short-tags --with-pear --with-bz2=/usr/local/lib --with-curl --with-libdir=lib --with-jpeg-dir=/usr --with-png-dir=/usr/local --with-freetype-dir=/usr/local/lib --with-xpm-dir=/usr/X11R6 --with-t1lib=/usr --enable-gd-native-ttf --with-gmp --with-openssl --with-openssl-dir=/usr --with-kerberos=/usr/local --with-pspell --with-enchant --with-zlib --enable-re2c-cgoto --with-layout=GNU --enable-exif --enable-calendar --without-sqlite --enable-mbregex --enable-cli --enable-fpm --with-fpm-user=www --with-fpm-group=www --disable-magic-quotes --enable-bcmath --enable-ftp --with-gd --enable-mbstring --with-mcrypt --with-mysql=/usr/local --with-mysql-sock=/var/run/mysql/mysql.sock --disable-embedded-mysqli --with-mysqli=/usr/local/bin/mysql_config --with-pdo-mysql=/usr/local --with-snmp --enable-soap --enable-wddx --enable-sockets --with-tidy --with-xsl --enable-zip --enable-zend-multibyte --with-gettext --with-mhash --enable-bbcode --with-svn --with-crack --enable-translit --with-ldap --with-ldap-sasl --enable-intl --enable-eaccelerator --with-eaccelerator-shared-memory --with-eaccelerator-userid=www --with-iconv=/usr/local

Собираем:

make && make install

На случай, если потом понадобится вручную удалить вот  пути установки:

Installing PHP SAPI module:       fpm
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP FPM binary:        /usr/local/sbin/
Installing PHP FPM config:        /usr/local/etc/
Installing PHP FPM man page:      /usr/local/man/man8/
Installing PHP FPM status page:      /usr/local/share/php/fpm/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/share/pear/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.4
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/share/pear to your php.ini include_path
/home/web/src/php-5.3.9/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/

Янчарук А.В.
15.01.2012 03:50


Оставить комментарий


Имя  


Комментарий *