[英]How to install libpuzzle for PHP on Ubuntu 12.04 machine?
I'm trying to install libpuzzle PHP extension but I don't seem to be able to get it to work. 我正在尝试安装libpuzzle PHP扩展,但似乎无法使它正常工作。
I have tried to follow the following instructions: 我尝试遵循以下指示:
The Puzzle library can also be used through PHP, using a native extension.
Puzzle库也可以通过本机扩展通过PHP使用。 Prerequisites are the PHP headers, libtool, autoconf and automake.
先决条件是PHP标头,libtool,autoconf和automake。 Here are the basic steps in order to install the extension:
这是安装扩展的基本步骤:
(on OpenBSD: export AUTOMAKE_VERSION=1.9 ; export AUTOCONF_VERSION=2.61)
(在OpenBSD上:导出AUTOMAKE_VERSION = 1.9;导出AUTOCONF_VERSION = 2.61)
cd php/libpuzzle
cd php / libpuzzle
phpize
phpize
./configure --with-libpuzzle
./configure --with-libpuzzle
make clean
弄干净
make
使
make install
进行安装
If libpuzzle is installed in a non-standard location, use: ./configure --with-libpuzzle=/base/directory/for/libpuzzle
如果libpuzzle安装在非标准位置,请使用:./configure --with-libpuzzle = / base / directory / for / libpuzzle
Then edit your php.ini file and add:
然后编辑您的php.ini文件并添加:
extension=libpuzzle.so
扩展程序= libpuzzle.so
However when I try to run "./configure --with-libpuzzle" I get the following error: configure: error: Please reinstall the libpuzzle distribution 但是,当我尝试运行“ ./configure --with-libpuzzle”时,出现以下错误:configure:error:请重新安装libpuzzle发行版
Could someone point me in the right direction please. 有人可以指出我正确的方向。
Is there a reason you are compiling from source when it is available in the Ubuntu repositories? 在Ubuntu存储库中有可用的源代码编译原因吗?
sudo aptitude install libpuzzle-php
Or apt-get
if you like that instead: 如果喜欢的话,也
apt-get
使用apt-get
:
sudo apt-get install libpuzzle-php
If you somehow did not see it in the repository do a search like this: 如果您以某种方式未在存储库中看到它,请执行以下搜索:
sudo aptitude search libpuzzle
Which on my 12.04 install shows this: 在我的12.04安装中哪个显示以下内容:
p libpuzzle-bin - quick similar image finder - runtime tool
p libpuzzle-bin:i386 - quick similar image finder - runtime tool
p libpuzzle-dev - quick similar image finder - development files
p libpuzzle-dev:i386 - quick similar image finder - development files
p libpuzzle-php - quick similar image finder - PHP bindings
p libpuzzle-php:i386 - quick similar image finder - PHP bindings
p libpuzzle1 - quick similar image finder - shared library
p libpuzzle1:i386 - quick similar image finder - shared library
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.