作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我无法在 Ubuntu 上安装 KTablib 文件,软件包在这里:http://pecl.php.net/package/ktaglib
这是我看到的错误:
root@local:~# pear install http://taglib.github.io/releases/taglib-1.9.1.tar.gz
downloading taglib-1.9.1.tar.gz ...
Starting to download taglib-1.9.1.tar.gz (654,074 bytes)
..............done: 654,074 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/taglib-1.9.1.tar.gz"
Download of "http://taglib.github.io/releases/taglib-1.9.1.tar.gz" succeeded, but it is not a valid package archive
Invalid or missing remote package file
install failed
root@local:~# sudo apt-get install libpcre3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpcrecpp0
The following NEW packages will be installed:
libpcre3-dev libpcrecpp0
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 251 kB of archives.
After this operation, 951 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.rackspace.com/ubuntu/ trusty/main libpcrecpp0 amd64 1:8.31-2ubuntu2 [14.5 kB]
Get:2 http://mirror.rackspace.com/ubuntu/ trusty/main libpcre3-dev amd64 1:8.31-2ubuntu2 [237 kB]
Fetched 251 kB in 0s (5,499 kB/s)
Selecting previously unselected package libpcrecpp0:amd64.
(Reading database ... 61117 files and directories currently installed.)
Preparing to unpack .../libpcrecpp0_1%3a8.31-2ubuntu2_amd64.deb ...
Unpacking libpcrecpp0:amd64 (1:8.31-2ubuntu2) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../libpcre3-dev_1%3a8.31-2ubuntu2_amd64.deb ...
Unpacking libpcre3-dev:amd64 (1:8.31-2ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libpcrecpp0:amd64 (1:8.31-2ubuntu2) ...
Setting up libpcre3-dev:amd64 (1:8.31-2ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
root@local:~# pear install http://pecl.php.net/get/KTaglib-0.2.0.tgz
downloading KTaglib-0.2.0.tgz ...
Starting to download KTaglib-0.2.0.tgz (12,897 bytes)
.....done: 12,897 bytes
17 source files, building
running: phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
building in /tmp/pear/temp/pear-build-rootG9cBy9/KTaglib-0.2.0
running: /tmp/pear/temp/KTaglib/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 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/20121212
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... no
checking for nawk... nawk
checking if nawk is broken... no
checking This extension requires the KDE TagLib Library version 1.4
or above and a working pkg-config installation.... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... /usr/bin/pkg-config
configure: error: 'taglib' not known to pkg-config
ERROR: `/tmp/pear/temp/KTaglib/configure' failed
configure: error: 'taglib' not known to pkg-config
ERROR: `/tmp/pear/temp/KTaglib/configure' failed
最佳答案
好像编译了rrd
库 ( librrd.so, .la
) 对链接器不可见。如果您安装了 rrd
手动工具验证您的安装。您可以指定任何安装rrd
当您通过 phpize 安装扩展时,通过配置选项(--with-rrd
可以通过 configure --help
验证它)的路径。
我想 phpize是针对您的案例推荐的安装过程。
关于php - 在 ubuntu 上安装 PECL 扩展 KTaglib 时出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23209986/
我无法在 Ubuntu 上安装 KTablib 文件,软件包在这里:http://pecl.php.net/package/ktaglib 这是我看到的错误: root@local:~# pe
我是一名优秀的程序员,十分优秀!