yaourt问题,为什么会有警告。
archlinux吧
全部回复
仅看楼主
level 11
每小题1分 楼主
我是自己编译安装的,每次用都yaourt命令都出现
==> WARNING: problem in pkgbuild.sh library
Unable to open file: /usr/local/etc/pacman.conf
Unable to open file: /usr/local/etc/pacman.conf
这是pacman -v的结果
Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
GPG Dir : /etc/pacman.d/gnupg/
Targets : 无
错误:没有指定的操作 (使用 -h 获取帮助)
我试着复制pacman.conf到/usr/local/etc/ 警告变成了:
==> WARNING: problem in pkgbuild.sh library
failed to initialize alpm library (could not find or read directory)
failed to initialize alpm library (could not find or read directory)
failed to initialize alpm library (could not find or read directory)
怎么回事呢,新手表示不懂。。。
2013年04月29日 09点04分 1
level 7
请具体说明你是怎么“编译安装”的。
初步猜测是安装时prefix指定到/usr/local去了。
2013年04月29日 09点04分 2
是的。。文件都在/usr/local里。直接的make install ,这是不给设置安装位置的机会?
2013年04月29日 10点04分
回复 每小题1分 :我的建议是先把所有文件删除然后通过aur中yaourt的PKGBUILD用makepkg来安装,这样在后期维护方面要方便很多。实在想手动安装,请借鉴该PKGBUILD,用命令:make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR="$pkgdir" install
2013年04月29日 10点04分
回复 xzy3186 :哦,谢谢了,我试试。
2013年04月29日 10点04分
回复 每小题1分 :刚才make那条命令DESTDIR="$pkgdir"是针对用PKGBUILD打包的,手动安装时不需要,不好意思。
2013年04月29日 10点04分
1