Perl GD.pm模块的安装

vertigo wrote:
> Hello
>
> I can not install GD-2.19.
> I tried with gd-2.0.33 and perl 5.6.8:
> #perl Makefile.PL
> #make
>
> and everything was fine, but:
> #make test
>
<snipped out lots of errors>

I'm not sure what your problem is, but I can tell you what I did to
install GD which works perfectly (but only after many, many tries). I
documented all my steps but your mileage may vary. I did this on Red Hat
and Fedora; I'm not sure what OS you are using.

First of all, I made sure I installed the latest versions of libpng,
jpeg libs, freetype2, and gd (in that order). I then installed GD.pm. I
used the default installation directories for everything (GD doesn't
seem to like custom paths). Here's how I did it:

add the lib path (Red Hat/Fedora specific I think)
----------------
add /usr/local/lib to /etc/ld.so.conf
run ldconfig -v


install libpng
--------------
cp over scripts/makefile.linux to ../makefile
make && make install


install jpeg libs
-----------------
../configure --enable-shared
make && make install


install freetype2
-----------------
../configure
make && make install


install gd
----------
../configure --enable-shared
make && make install


install GD.pm
-------------
LD_LIBRARY_PATH="/usr/local/lib"
export LD_LIBRARY_PATH
perl Makefile.PL
make && make test && make install
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值