rpm封装失败:canonicalization unexpectedly shrank by one character

2990阅读 0评论2016-02-23 wwmshe
分类:系统运维

在封装php源码包时,出现以下错误提示:
canonicalization unexpectedly shrank by one character

这是rpm的一个BUG。当build一个包含“/”的目录时,便会出现:
%build
./configure --prefix=/usr/local/php54 --with-config-file-path=/usr/local/php54/etc --with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-iconv=/usr/local/libiconv/ --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --with-gd --with-mcrypt --with-curl \
--enable-xml --enable-mbstring --enable-bcmath --enable-shmop --enable-mbregex --enable-gd-native-ttf --enable-sysvsem --enable-fpm \
--enable-inline-optimization --disable-rpath --with-openssl --without-pear --enable-soap --with-pdo-mysql --enable-ftp --enable-zip

将“/”去掉,重新build即可。

关于此BUG的详细说明:

上一篇:导入mysql文件提示“ASCII '\0' appeared in the statement”
下一篇:关于mysqli的Headers and client library minor version mismatch问题