在封装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的详细说明:
阅读(2858) | 评论(0) | 转发(1) |