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


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: установка gmagick (PHP)  (Прочитано 4284 раз)

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

Оффлайн bektau

  • Автор темы
  • Участник
  • *
  • Сообщений: 140
  • US 9.04, US 9.10 , Lucid 10.04 (fix)
    • Просмотр профиля
установка gmagick (PHP)
« : 28 Октября 2009, 13:41:36 »
Здравствуйте,не удаётся установить расширение gmagick php.
Установил сперва gmagick в систему:
Цитировать
$ sudo apt-get install graphicsmagick
Далее попробывал напрямки поставить:
Цитировать
$ sudo apt-get install php5-gmagick
выдало : Не удалось найти пакет php5-gmagick
Затем попробывал через PECL поставить:
Цитировать
pecl install gmagick-beta
результат был таким :
Цитировать
downloading gmagick-1.0.2b2.tgz ...
Starting to download gmagick-1.0.2b2.tgz (35,022 bytes)
.........done: 35,022 bytes
9 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. Please provide the prefix of GraphicsMagick installation : autodetect

1-1, 'all', 'abort', or Enter to continue:
я нажал ENTER
и вот что выдало:
Цитировать
building in /var/tmp/pear-build-root/gmagick-1.0.2b2
running: /tmp/pear/temp/gmagick/configure --with-gmagick
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 gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable the gmagick extension... yes, shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/tmp/pear/temp/gmagick/configure --with-gmagick' faile

в общем установка не удалась,понять причину так и не смог.
что означает эта фраза так и не смог понять с переводчиком даже:
Цитировать
WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.

Но я не отчаивался,решил поставить скачав архив и распаковав его в папку домашнию.
далее :
Цитировать
sudo su
cd gmagick-1.0.2b2
phpize
выдало :
Цитировать
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ввёл :
Цитировать
./configure
выдало:
Цитировать
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 gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable the gmagick extension... yes, shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.

тут меня уже стали посещать плохие мысли  :-
подскажите пожалуйста как правильно установить это расширение ?
Я недавно перешёл на Ubuntu и многого ещё не понимаю.

Пользователь решил продолжить мысль 29 Октября 2009, 07:59:14:
установил re2c,
теперь выдает :
Цитировать
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/tmp/pear/temp/gmagick/configure --with-gmagick' failed
а где этот путь надо указать ?
Люди прошу вас помогите разобраться   ??? я в недоумении.

Пользователь решил продолжить мысль 29 Октября 2009, 14:52:27:
помогли разобраться  :)
нехватало libgraphicsmagick1-dev
« Последнее редактирование: 29 Октября 2009, 14:52:27 от bektau »

 

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