Install zmq for php7.0 in Ubuntu failed

504
21 декабря 2016, 04:16

ERROR: `/tmp/pear/temp/zmq/configure --with-php-config=/usr/bin/php-config --with-zmq' failed

$ sudo pecl install "channel://pecl.php.net/zmq-1.1.3"
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/zmq.so' - /usr/lib/php/20151012/zmq.so:
 cannot open shared object file: No such file or directory in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading zmq-1.1.3.tgz ...
Starting to download zmq-1.1.3.tgz (82,397 bytes)
....................done: 82,397 bytes
24 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
Please provide the prefix of libzmq installation [autodetect] :
building in /tmp/pear/temp/pear-build-rootQxO9PG/zmq-1.1.3
running: /tmp/pear/temp/zmq/configure --with-php-config=/usr/bin/php-config --with-zmq
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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TS
RM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable 0MQ support... yes, shared
checking whether to enable CZMQ support... no
checking for pkg-config... /usr/bin/pkg-config
checking libzmq installation... configure: error: Unable to find libzmq installation
ERROR: `/tmp/pear/temp/zmq/configure --with-php-config=/usr/bin/php-config --with-zmq' failed
READ ALSO
Ограничение одновременных соединений

Ограничение одновременных соединений

Необходимо сделать, чтобы одновременно отрабатывался только один запрос от пользователя, и пока он работает - все остальные запросы от него...

319
Waiting for incoming connection with ide key 'PHPSTORM'

Waiting for incoming connection with ide key 'PHPSTORM'

Всем привет, настраивал xdebug получаю такую ошибку при нажатии на debug Waiting for incoming connection with ide key 'PHPSTORM' Настройки:

866
Валидация формы PHP

Валидация формы PHP

Помогите пожалуйста дописать кодМне нужно к этому коду дописать проверку формы на обязательное заполнение атрибутов input (name, phone)

358
Заменить индексы на значение из БД

Заменить индексы на значение из БД

Доброго времени суток господаимеется следующее foreach ($result_list as $entry2) { $row[$entry2["id"]][] = $entry2["value_obj"]; }

357