http://article.gmane.org/gmane.comp.search.xapian.general/8855
我只能通过省略’rm debian / control’来让事情超越前几秒,但是如果我这样做,看起来好像Python和Ruby绑定正在构建并正确传递他们的smoketest版本.
但是,构建的PHP部分失败并出现此错误:
/home/charlie/xapian-bindings-1.2.8/php/smoketest.php:38: include(xapian.php): failed to open stream: No such file or directory FAIL: smoketest.php
/home/charlie/xapian-bindings-1.2.8/php/php5/中有一个xapian.php文件,但如果我将其复制到/home/charlie/xapian-bindings-1.2.8/php/或将路径更改为在smoketest.php中,构建在开始附近失败:
dpkg-source: error: aborting due to unexpected upstream changes
不幸的是,我从源头上走出了我的舒适区.有人有任何想法吗?
编辑詹姆斯的回答:
如果我完全遵循指示,建立良好.我最初在测试VM上构建它,但是没有构建PHP包,因为没有安装PHP本身.明显的问题,但值得一提.
安装生成以下错误:
Setting up php5-xapian (1.2.8-1) ... Processing triggers for libapache2-mod-php5 ... dpkg (subprocess): unable to execute installed post-installation script (/var/lib/dpkg/info/libapache2-mod-php5.postinst): Permission denied ssion denied dpkg: error processing libapache2-mod-php5 (--install): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: libapache2-mod-php5
它只是一个重启Apache的脚本.在运行sudo dpkg -i php5-xapian _ * .deb之前停止Apache会阻止错误. Xapian现在出现在phpinfo()中.任务完成.谢谢.
sudo apt-get build-dep xapian-bindings sudo apt-get install php5-dev php5-cli devscripts apt-get source xapian-bindings cd xapian-bindings-1.2.* rm -f debian/control debian/*-stamp env PHP_VERSIONS=5 debian/rules maint sed -i 's/include_path=php5$/include_path=$(srcdir)\/php5/' php/Makefile.in dpkg-source --commit
此时,系统会提示您输入补丁名称(使用类似fix-php-buildtests的东西),然后将其转储到编辑器中以记录补丁,但是您并不关心它,因此您可以保存并退出编辑器.然后:
debuild -e PHP_VERSIONS=5 -us -uc cd .. sudo dpkg -i php5-xapian_*.deb
而且你已经完成了.
处理这个问题的邮件列表线程尚未出现在GMane中,但是it’s available in the Xapian mailman archive.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。