【问题标题】:Install imagick on gentoo error在gentoo错误上安装imagick
【发布时间】:2014-02-06 07:07:59
【问题描述】:
当我使用此命令 pecl install imagick 为 php 安装 imagick 时,我收到此错误消息:
libtool: Version mismatch error. This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make: *** [imagick_file.lo] Erreur 63
我找到了另一个问题的解决方案,错误相同但应用程序安装不同,但它仍然无法正常工作:libtool version mismatch error
请问如何解决这个问题?
【问题讨论】:
标签:
imagick
php-extension
pecl
libtool
gentoo
【解决方案1】:
如果有错误报告,请查看 gentoo bugzilla,并尽量不要从 portage 外部安装软件包,因为它往往会破坏东西!通常至少有一些技巧可以让 ebuild 正常工作。
如果没有,就等一两天……
【解决方案2】:
有一个 ebuild 可用。我试试看:
$ eix imagick
* dev-php/pecl-imagick
Available versions: 3.0.1-r1 3.1.0_rc2 ~3.1.2 ~3.2.0_rc1 {examples PHP_TARGETS="php5-3 php5-4 php5-5"}
Homepage: http://pecl.php.net/imagick
Description: PHP wrapper for the ImageMagick library.
【解决方案3】:
此解决方案似乎可以解决此问题。见于Bug #58979
wget http://pecl.php.net/get/imagick
tar xvzf imagick
cd ./imagick-3.2.0RC1
phpize
aclocal
libtoolize --force
autoheader
autoconf
./configure
make && make install