Enabling PNG support while installing GD.pm in Perl -
I have already installed GD.pmm. I have to make sure that it supports PNG so to check that I do this:
$ perl -e 'use GD; $ Im = gd :: image & gt; New (); Print $ im- & gt; Can ("PNG")? "Yes": "no", "\ n"; 'No' As you see it prints no then I download the latest GD from CPAN with the following process: & gt; Wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.53.tar.gz & gt; Tar xvfz GD-2.53.tar.gz & gt; CD GD-2.44 & gt; Pearl Makefile.PL & gt; Make & gt; Test & gt; Install I hope that there should be a line like this that is the identity of the installed PNG support:
Included Features: GD_XPM GD_JPEG GD_Fonconfig GD_FreeTipEPE GDPNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33 But instead I have only found it:
Included Features: GD_GIF GD_GFANNEME GDOOPNPOLIGODOPOPUL.NG I was not successful with this command either with the Sudo Pearl MacFile .PL-option "JPEG, FT, PNG" . It will not show GD_PNG . What is the way to install GDPM with PNG support?
I want to run it
Update: After installing LibarPing and after gd rebuilding
$ alcohol update & amp; Amp; Brew Upgrade $ Fluffy Install gd $ Fluffy Install Libpng $ sudo cpan cpan> Force install GD , I found this error:
$ perl -e 'use GD; $ Im = gd :: image & gt; New (); Print $ im- & gt; Can ("PNG")? "Yes": "no", "\ n"; 'Module can not be loaded for GD / Libraries / Pearl / 5.16 / Darwin-Thread-MILT-2 level / Auto / GD / GD.bundle': Dulappan (/ Libraries / Pearl / 5.16 / Darwin-Thread- MILT-2 level / auto / gd / gd.bundle, 1): Library not loaded: referenced by libpng15.15.dylib: /usr/local/lib/libfreetype.6.dylib Reason: Image / System / Library / Pearl / 5.16 / not available on Darwin -read-Multi-Level Level / Diodor.PM Line 19.4. At-Ai Line 1. Compilation should be required in E-E It's been unsuccessful. BEGIN Failure - The compilation is revoked on E-1. Update 2: Problems by doing me at the end: $ locate libpng15.15.dylib / anaconda / Lib / libpng15.15.dylib / anaconda / Pkgs / libpng-1.5.13-1 / lib / libpng15.15.dylib /opt/X11/lib/libpng15.15.dylib /opt/local/lib/libpng15.15. Dylib $ ln -s / opt / X11 / Lib / libpng15.15.dylib /usr/local/lib/libpng15.15.dylib $ perl -e 'Use GD; $ Im = gd :: image & gt; New (); Print $ im- & gt; Can ("PNG")? "Yes": "no", "\ n"; You need to have libraries as dependencies before you make GDPM. Yes. In this particular case, libpng is obviously missing. Due to that dependence, I recommend that you use the package manager, not the CPAN, if your PRL comes with your OS:
- OS
- Suitable for Debian and Ubuntu
- / Li>
Comments
Post a Comment