- edited description
pecl ev install fails
downloading ev-0.2.12.tgz ... Starting to download ev-0.2.12.tgz (96,837 bytes) .....................done: 96,837 bytes 55 source files, building running: phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Enable internal debugging in ev [no] : building in /tmp/pear/temp/pear-build-travisLaAv1l/ev-0.2.12 running: /tmp/pear/temp/ev/configure --enable-ev-debug=yes 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 for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /home/travis/.phpenv/versions/5.6.2 checking for PHP includes... -I/home/travis/.phpenv/versions/5.6.2/include/php -I/home/travis/.phpenv/versions/5.6.2/include/php/main -I/home/travis/.phpenv/versions/5.6.2/include/php/TSRM -I/home/travis/.phpenv/versions/5.6.2/include/php/Zend -I/home/travis/.phpenv/versions/5.6.2/include/php/ext -I/home/travis/.phpenv/versions/5.6.2/include/php/ext/date/lib checking for PHP extension directory... /home/travis/.phpenv/versions/5.6.2/lib/php/extensions/no-debug-zts-20131226 checking for PHP installed headers prefix... /home/travis/.phpenv/versions/5.6.2/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking for gawk... gawk checking whether to enable ev... yes, shared checking for ev debug support... yes checking whether Ev supports the current PHP version... ok checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/inotify.h usability... yes checking sys/inotify.h presence... yes checking for sys/inotify.h... yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking sys/event.h usability... no checking sys/event.h presence... no checking for sys/event.h... no checking port.h usability... no checking port.h presence... no checking for port.h... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/eventfd.h usability... yes checking sys/eventfd.h presence... yes checking for sys/eventfd.h... yes checking sys/signalfd.h usability... yes checking sys/signalfd.h presence... yes checking for sys/signalfd.h... yes checking for inotify_init... yes checking for epoll_ctl... yes checking for kqueue... no checking for port_create... no checking for poll... yes checking for select... yes checking for eventfd... yes checking for signalfd... yes checking for clock_gettime... no checking for clock_gettime syscall... yes checking for nanosleep... yes checking for library containing floor... -lm checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1966080 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h running: make /bin/bash /tmp/pear/temp/pear-build-travisLaAv1l/ev-0.2.12/libtool --mode=compile cc -I/tmp/pear/temp/ev/libev -Wall -g -ggdb -O0 -I. -I/tmp/pear/temp/ev -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisLaAv1l/ev-0.2.12/include -I/tmp/pear/temp/pear-build-travisLaAv1l/ev-0.2.12/main -I/tmp/pear/temp/ev -I/home/travis/.phpenv/versions/5.6.2/include/php -I/home/travis/.phpenv/versions/5.6.2/include/php/main -I/home/travis/.phpenv/versions/5.6.2/include/php/TSRM -I/home/travis/.phpenv/versions/5.6.2/include/php/Zend -I/home/travis/.phpenv/versions/5.6.2/include/php/ext -I/home/travis/.phpenv/versions/5.6.2/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/ev/libev/ev.c -o libev/ev.lo /tmp/pear/temp/pear-build-travisLaAv1l/ev-0.2.12/libtool: line 1283: libev/ev.loT: No such file or directory mkdir libev/.libs mkdir: cannot create directory `libev/.libs': No such file or directory make: *** [libev/ev.lo] Error 1 ERROR: `make' failed
Comments (16)
-
reporter -
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter Ok, this may be due to
pecl install ev
not being run as sudo/root? -
repo owner - changed status to resolved
Yen, the
pecl install
command should be run on root's behalf. -
I have the same problem.
Is it possible, that this issue accures if php is installed with prefix? I see currently, that Steve Rhoades has php in /home/travis/.phpenv/versions/5.6.2/ installed.
-
repo owner @Rafael Kähm: did you try
sudo pecl install ev
? -
Руслан: I'm logged in as root.
Prefix from php is /opt/PHP/5.5.19 and system is Wheezy
-
repo owner Perhaps, you need to set
PHP_PEAR_PHP_BIN
environment variable:# export PHP_PEAR_PHP_BIN="/opt/PHP/..../php" # sudo pecl intstall ev
-
export PHP_PEAR_PHP_BIN="/opt/PHP/5.5.19/bin/php"
makes no difference, i get same error
-
I gat it only as follows:
cd /tmp /opt/PHP/5.5.19/bin/pecl download ev tar xfz ev-*.tgz cd ev-* /opt/PHP/5.5.19/bin/phpize ./configure --enable-ev-debug=no --with-php-config=/opt/PHP/5.5.19/bin/php-config make --quiet && make test && sudo make install echo "extension=ev.so" > /etc/php/5.5.19/conf.d/10-ev.ini
but with this way is this extension not listed with list command of pecl
/opt/PHP/5.5.19/bin/pecl list
-
repo owner Then maybe override
$PATH
:export PATH=/opt/PHP/5.5.19/bin:$PATH
-
Hi,
PATH makes no difference. Ruslan can you please try to install ev in following Prefix
PHP_VERSION="5.5.19" INSTALL_PATH="/opt/PHP/" CONFIG_FILE_PATH="/etc/PHP/" wget http://de1.php.net/distributions/php-$PHP_VERSION.tar.gz tar xfzv php-$PHP_VERSION.tar.gz cd php-$PHP_VERSION # Only for SQUEEZE #ln -s /usr/lib64/ /usr/lib/x86_64-linux-gnu ./configure \ --prefix=$INSTALL_PATH$PHP_VERSION \ --with-config-file-path=$CONFIG_FILE_PATH$PHP_VERSION/cli \ --with-config-file-scan-dir=$CONFIG_FILE_PATH$PHP_VERSION/conf.d \ --enable-bcmath \ --disable-cgi \ --with-bz2 \ --enable-calendar \ --with-curl \ --enable-exif \ --with-freetype-dir \ --enable-ftp \ --with-gd \ --enable-gd-native-ttf \ --with-gettext \ --with-imap \ --with-imap-ssl \ --enable-inline-optimization \ --enable-intl \ --with-jpeg-dir=/usr \ --with-kerberos \ --with-libdir=/lib/x86_64-linux-gnu \ --with-libxml-dir=/usr \ --enable-mbregex \ --enable-mbstring \ --with-mcrypt \ --with-mhash \ --with-mysql \ --with-mysqli \ --with-openssl \ --enable-pcntl \ --with-pcre-regex \ --with-pdo-mysql \ --with-pdo-pgsql \ --with-pgsql \ --with-png-dir=/usr \ --disable-rpath \ --enable-soap \ --enable-sockets \ --enable-sqlite-utf8 \ --enable-sysvsem \ --enable-sysvshm \ --with-xmlrpc \ --with-xsl \ --enable-zip \ --with-zlib \ --with-zlib-dir \ --enable-fpm \ --with-fpm-group=www-data \ --with-fpm-user=www-data && make && make test && make install mkdir -p $CONFIG_FILE_PATH$PHP_VERSION/{cgi,cli,conf.d,fpm/pool.d,mods-available} cp php.ini-production $CONFIG_FILE_PATH$PHP_VERSION/cli/php.ini cp php.ini-production $CONFIG_FILE_PATH$PHP_VERSION/fpm/php.ini
and then ev with pecl
-
repo owner - changed status to open
I see, the issue concerns an extra build directory (
libev
). Fixing it... -
repo owner - changed status to resolved
Fixed in 0.2.13, uploaded the PECL package. Please try to
pecl install ev
. - Log in to comment