Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Download of "pecl/memcache" succeeded, but it is not a valid package archive  (Прочитано 2023 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн toxi

  • Автор темы
  • Любитель
  • *
  • Сообщений: 82
  • Павловский Роман Олегович
    • Просмотр профиля
    • IT-портал Service Plus
Здравствуйте.
Почему появляется ошибка и как проверить, существует ли сам файл на сервере и как его установить вручную можно?
Причем

root@NAT-server:~# pecl install memcache
downloading memcache-2.2.7.tgz ...
Starting to download memcache-2.2.7.tgz (Unknown size)
....done: 3,582 bytes
Could not get contents of package "/build/buildd/php5-5.3.2/pear-build-download/
Download of "pecl/memcache" succeeded, but it is not a valid package archive
Error: cannot download "pecl/memcache"
Download failed
install failed
root@NAT-server:~#

Установлено:
root@NAT-server:~# apt-get install build-essential

Версия ядра:
root@NAT-server:~# uname -a
Linux NAT-server 2.6.32-33-server #70-Ubuntu SMP Thu Jul 7 22:28:30 UTC 2011 x86_64 GNU/Linux

Сервер:
Ubuntu 10.04.3 LTS
UPD: Установка прошла. Не был установлен пакет:
root@NAT-server:~# apt-get install php5-dev libmemcache-dev
Но теперь не проходит установка memcached:
root@NAT-server:~# pecl install memcached
downloading memcached-2.2.0.tgz ...
Starting to download memcached-2.2.0.tgz (70,449 bytes)
.................done: 70,449 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
libmemcached directory [no] : no
building in /tmp/pear/temp/pear-build-rooto5odBb/memcached-2.2.0
running: /tmp/pear/temp/memcached/configure --with-libmemcached-dir=no
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... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20090626
checking for PHP installed headers prefix... /usr/include/php5
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 memcached support... yes, shared
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking whether to enable memcached json serializer support... no
checking whether to enable memcached msgpack serializer support... no
checking whether to enable memcached sasl support... yes
checking whether to enable memcached protocol support... no
checking for ZLIB... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking for zlib location... /usr
checking for session includes... /usr/include/php5
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for memcached msgpack support... disabled
checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located
ERROR: `/tmp/pear/temp/memcached/configure --with-libmemcached-dir=no' failed

Причем установка memcached из репозитория прошла без проблем:
root@NAT-server:~# apt-get install memcached
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Уже установлена самая новая версия memcached.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 136 пакетов не обновлено.
и кеш работает без проблем стабильно.
« Последнее редактирование: 24 Июня 2014, 12:41:44 от toxi »
Ubuntu x86/x64 * LTS | VirtualBox

 

Страница сгенерирована за 0.056 секунд. Запросов: 25.