<div dir="ltr">Валентин, спасибо, как-то я это или пропустил в доке, или не написано.<div>Теперь собралось, вопрос снят.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 23 апр. 2019 г. в 15:13, Валентин Бартенев <<a href="mailto:vbart@nginx.com">vbart@nginx.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday 23 April 2019 14:42:48 Anton Kiryushkin wrote:<br>
> Здравствуйте.<br>
> <br>
> Пытаюсь собрать модуль для unitd для запуска php5.6 (на сервере есть и 7-й,<br>
> но в данном случае нужен именно 5-й).<br>
> <br>
> Сам php5.6 есть, у него есть php-config5.6, однако unitd при сборке упорно<br>
> утверждает, что у него что-то не так:<br>
> <br>
> # ./configure php --module=php5.6 --config=/usr/bin/php-config5.6<br>
> --lib-path=/usr/lib/apache2/modules<br>
<br>
Это видимо директория с модулями Apache, которые к Unit-у никакого<br>
отношения не имеют.<br>
<br>
<br>
> configuring PHP module<br>
> checking for PHP ... found<br>
>  + PHP SAPI: [apache2handler cgi cli fpm]<br>
<br>
В списке нет embed, т.е. php был собран без библиотеки libphp.<br>
<br>
<br>
> checking for PHP embed SAPI ... not found<br>
> <br>
> ./configure: error: no PHP embed SAPI found.<br>
> <br>
> <br>
> Как бы точно понять, что не так? Файлы-то есть.<br>
> <br>
<br>
$ ./configure php --module=php56 --config=/usr/lib64/php5.6/bin/php-config --lib-path=/usr/lib64/php5.6/lib64<br>
configuring PHP module<br>
checking for PHP ... found<br>
 + PHP SAPI: [embed cli cgi fpm]<br>
checking for PHP embed SAPI ... found<br>
checking for PHP zend_signal_startup() ... not found<br>
checking for PHP version ... 5.6.38-pl0-gentoo<br>
 + PHP module: <a href="http://php56.unit.so" rel="noreferrer" target="_blank">php56.unit.so</a><br>
<br>
$ ls /usr/lib64/php5.6/lib64<br>
libphp5.so  opcache.so<br>
<br>
$ /usr/lib64/php5.6/bin/php-config --php-sapis<br>
embed cli cgi fpm<br>
<br>
$ /usr/lib64/php5.6/bin/php-config --configure-options | grep embed<br>
--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/php-5.6.38 --htmldir=/usr/share/doc/php-5.6.38/html --prefix=/usr/lib64/php5.6 --mandir=/usr/lib64/php5.6/man --infodir=/usr/lib64/php5.6/info --libdir=/usr/lib64/php5.6/lib --with-libdir=lib64 --localstatedir=/var --without-pear --enable-maintainer-zts --disable-bcmath --without-bz2 --disable-calendar --disable-gcov --disable-ctype --without-curl --disable-dom --without-enchant --disable-exif --disable-fileinfo --disable-filter --disable-ftp --without-gettext --without-gmp --enable-hash --without-mhash --without-iconv --disable-intl --disable-ipv6 --disable-json --without-kerberos --disable-libxml --without-libxml-dir --disable-mbstring --without-mcrypt --without-mssql --without-onig --without-openssl --without-openssl-dir --disable-pcntl --disable-phar --disable-pdo --enable-opcache --without-pgsql --disable-posix --without-pspell --without-recode --disable-simplexml --disable-shmop --without-snmp --disable-soap --disable-sockets --without-sqlite3 --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --without-tidy --disable-tokenizer --disable-wddx --disable-xml --disable-xmlreader --disable-xmlwriter --without-xmlrpc --without-xsl --disable-zip --without-zlib --disable-debug --without-cdb --without-db4 --disable-flatfile --without-gdbm --disable-inifile --without-qdbm --without-freetype-dir --without-t1lib --disable-gd-jis-conv --without-jpeg-dir --without-png-dir --without-xpm-dir --without-vpx-dir --without-gd --without-interbase --without-mysql --with-mysqli=mysqlnd --without-mysql-sock --without-unixODBC --without-iodbc --without-oci8 --with-readline=/usr --without-libedit --disable-session --with-pic --with-pcre-regex=/usr --with-pcre-dir=/usr --cache-file=/dev/shm/portage/dev-lang/php-5.6.38/temp/config.cache --with-config-file-path=/etc/php/embed-php5.6 --with-config-file-scan-dir=/etc/php/embed-php5.6/ext-active --enable-embed --disable-cli --disable-cgi --disable-fpm --without-apxs2 build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu CFLAGS=-Ofast -march=native -pipe LDFLAGS=-Wl,-O1 -Wl,--as-needed CPPFLAGS= CXXFLAGS=-Ofast -march=native -pipe<br>
<br>
<br>
Среди опций можно заметить --enable-embed.<br>
<br>
--<br>
Валентин Бартене<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org" target="_blank">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Best regards,</div>Anton Kiryushkin<br><br></div></div></div>