分页: 1 / 1

请问在没有安x11组件的机器上如何安p5-GD

发表于 : 2010-02-09 16:27
zdslua
如题:包安装
# pkg_add -v p5-GD
parsing p5-GD-2.41
Dependencies for p5-GD-2.41 resolve to: gd-2.0.35, libiconv-1.13 (todo: gd-2.0.35)
p5-GD-2.41:parsing gd-2.0.35
Dependencies for gd-2.0.35 resolve to: png-1.2.35, jpeg-6bp5, libiconv-1.13
found libspec c.51.0 in /usr/lib
found libspec expat.9.0 in /usr/lib
Can't install gd-2.0.35: lib not found fontconfig.6.0
Dependencies for gd-2.0.35 resolve to: png-1.2.35, jpeg-6bp5, libiconv-1.13
Full dependency tree is png-1.2.35,jpeg-6bp5,libiconv-1.13
Can't install gd-2.0.35: lib not found freetype.17.0
found libspec iconv.6.0 in package libiconv-1.13
found libspec jpeg.62.0 in package jpeg-6bp5
found libspec m.5.0 in /usr/lib
found libspec png.8.1 in package png-1.2.35
found libspec z.4.1 in /usr/lib
Can't install p5-GD-2.41: can't resolve gd-2.0.35

ports安装
/usr/ports/graphics/p5-GD
# make install
===> p5-GD-2.41 uses X11, but /usr/X11R6 not found.
#

发表于 : 2010-02-09 18:14
lionux
看这里提示
Can't install gd-2.0.35: lib not found fontconfig.6.0
Can't install gd-2.0.35: lib not found freetype.17.0
===> p5-GD-2.41 uses X11, but /usr/X11R6 not found.
需要x11的

发表于 : 2010-02-10 4:56
leo
http://www.gobsd.org/OpenBSD.FAQ/c/faq4 ... ilesNeeded
先试试加一个xbase45.tgz,里面也许有需要的库文件。

发表于 : 2010-02-11 10:41
zdslua
谢谢二位的积极回复,问题解绝了,再重安一下xbase.tgz就可以了,细节年后再写。

快过年了公司有点忙,我也要回家了,祝二位过个好年。

发表于 : 2010-02-11 11:07
leo
zdslua 写了:谢谢二位的积极回复,问题解绝了,再重安一下xbase.tgz就可以了,细节年后再写。

快过年了公司有点忙,我也要回家了,祝二位过个好年。
拜个早年,预祝新年快乐,万事如意!等着您节后的精彩内容。

发表于 : 2010-03-11 11:32
zdslua
添加xbaseXX.tgz组件
加载光驱: mount /dev/cd0a /mnt
cd /
tar xzvphf /mnt/4.6/i386/xbase46.tgz

ldconfig -m /usr/X11R6/lib

发表于 : 2010-03-15 7:38
crzyfish
其实,PKG有个 php5-gd-no_x11呀 ~

发表于 : 2010-03-17 13:07
zdslua
crzyfish 写了:其实,PKG有个 php5-gd-no_x11呀 ~
谢谢
这个我是知道,我使用的软件要输出验证码?会用到p5-GD