Subject: | Installing doesn't install Image::Magick |
After discussing the issue with Jerome via email, I was asked to add the issue here...
I have installed Alien::ImageMagick installed, but I'm unable to use Image::Magick in my perl code.
I'm running osx 10.9.5, perlbrew 0.73, and perl 5.14.2
I made sure I recompiled perl with D useshrplib.
When I try to run my dancer application, I get the error "Can't locate Image/Magick.pm in @NIC".
ImageMagick runs on our other servers fine, just can't seem to get it to run locally on my machine.
It was suggested after some testing, that I update Alien::Base, which I did.
I re-ran cpanm -v -f Alien::ImageMagick. Still no joy.
Before I updated Alien::base, the output was...
cpanm (App::cpanminus) 1.7001 on perl 5.014002 built for darwin-2level
Work directory is /Users/user/.cpanm/work/1423068590.76265
You have make /usr/bin/make
You have LWP 6.07
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Alien::ImageMagick on cpanmetadb ...
--> Working on Alien::ImageMagick
Fetching
http://www.cpan.org/authors/id/J/JE/JETEVE/Alien-ImageMagick-0.04.tar.gz
... OK
Unpacking Alien-ImageMagick-0.04.tar.gz
x Alien-ImageMagick-0.04
x Alien-ImageMagick-0.04/Build.PL
x Alien-ImageMagick-0.04/README
x Alien-ImageMagick-0.04/META.yml
x Alien-ImageMagick-0.04/Changes
x Alien-ImageMagick-0.04/MANIFEST
x Alien-ImageMagick-0.04/META.json
x Alien-ImageMagick-0.04/t
x Alien-ImageMagick-0.04/t/manifest.t
x Alien-ImageMagick-0.04/t/boilerplate.t
x Alien-ImageMagick-0.04/t/00-load.t
x Alien-ImageMagick-0.04/lib
x Alien-ImageMagick-0.04/lib/Alien
x Alien-ImageMagick-0.04/lib/Alien/ImageMagick.pm
Entering Alien-ImageMagick-0.04
Checking configure dependencies from META.json
Checking if you have Module::Build 0.38 ... Yes (0.4205)
Checking if you have Alien::Base 0 ... Yes (0.004)
Checking if you have Module::Build 0.36 ... Yes (0.4205)
Running Build.PL
Configuring Alien-ImageMagick-0.04 ... Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Alien-ImageMagick' version '0.04'
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.001009)
Checking if you have File::ShareDir 1.00 ... Yes (1.102)
Checking if you have Alien::Base 0 ... Yes (0.004)
Building and testing Alien-ImageMagick-0.04 ... Building Alien-ImageMagick
t/00-load.t ...... 1/1 # Testing Alien::ImageMagick 0.04, Perl 5.014002,
/Users/user/perl5/perlbrew/perls/perl-5.14.2/bin/perl
t/00-load.t ...... ok
t/boilerplate.t .. ok
t/manifest.t ..... skipped: Author tests not required for installation
All tests successful.
Test Summary Report
-------------------
t/boilerplate.t (Wstat: 0 Tests: 3 Failed: 0)
TODO passed: 2-3
Files=3, Tests=4, 0 wallclock secs ( 0.03 usr 0.02 sys + 0.10 cusr
0.02 csys = 0.17 CPU)
Result: PASS
Testing library (if applicable) ... Done
Building Alien-ImageMagick
OK
Successfully reinstalled Alien-ImageMagick-0.04
1 distribution installed
After I updated Alien::Base, the output was....
cpanm (App::cpanminus) 1.7001 on perl 5.014002 built for darwin-2level
Work directory is /Users/user/.cpanm/work/1423142888.8746
You have make /usr/bin/make
You have LWP 6.07
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Alien::ImageMagick on cpanmetadb ...
! Finding Alien::ImageMagick on cpanmetadb failed.
Searching Alien::ImageMagick () on metacpan ...
--> Working on Alien::ImageMagick
Fetching
http://www.cpan.org/authors/id/J/JE/JETEVE/Alien-ImageMagick-0.04.tar.gz
... OK
Unpacking Alien-ImageMagick-0.04.tar.gz
x Alien-ImageMagick-0.04
x Alien-ImageMagick-0.04/Build.PL
x Alien-ImageMagick-0.04/README
x Alien-ImageMagick-0.04/META.yml
x Alien-ImageMagick-0.04/Changes
x Alien-ImageMagick-0.04/MANIFEST
x Alien-ImageMagick-0.04/META.json
x Alien-ImageMagick-0.04/t
x Alien-ImageMagick-0.04/t/manifest.t
x Alien-ImageMagick-0.04/t/boilerplate.t
x Alien-ImageMagick-0.04/t/00-load.t
x Alien-ImageMagick-0.04/lib
x Alien-ImageMagick-0.04/lib/Alien
x Alien-ImageMagick-0.04/lib/Alien/ImageMagick.pm
Entering Alien-ImageMagick-0.04
Checking configure dependencies from META.json
Checking if you have Module::Build 0.38 ... Yes (0.4205)
Checking if you have Alien::Base 0 ... Yes (0.009)
Checking if you have Module::Build 0.36 ... Yes (0.4205)
Running Build.PL
Configuring Alien-ImageMagick-0.04 ... + pkg-config --modversion MagickWand
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Alien-ImageMagick' version '0.04'
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.001009)
Checking if you have File::ShareDir 1.00 ... Yes (1.102)
Checking if you have Alien::Base 0 ... Yes (0.009)
Building and testing Alien-ImageMagick-0.04 ... Building Alien-ImageMagick
+ pkg-config --modversion MagickWand
+ pkg-config --modversion MagickWand
t/00-load.t ...... 1/1 # Testing Alien::ImageMagick 0.04, Perl 5.014002,
/Users/user/perl5/perlbrew/perls/perl-5.14.2/bin/perl
t/00-load.t ...... ok
t/boilerplate.t .. ok
t/manifest.t ..... skipped: Author tests not required for installation
All tests successful.
Test Summary Report
-------------------
t/boilerplate.t (Wstat: 0 Tests: 3 Failed: 0)
TODO passed: 2-3
Files=3, Tests=4, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.10 cusr
0.02 csys = 0.15 CPU)
Result: PASS
Testing library (if applicable) ...
+ cd /Users/user/.cpanm/work/1423142888.8746/Alien-ImageMagick-0.04
Done
Building Alien-ImageMagick
+ pkg-config --modversion MagickWand
Installing
/Users/user/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Alien/Imag
eMagick/ConfigData.pm
Installing
/Users/user/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Alien/Imag
eMagick/Install/Files.pm
Installing
/Users/user/perl5/perlbrew/perls/perl-5.14.2/man/man3/Alien::ImageMagick.3
Installing
/Users/user/perl5/perlbrew/perls/perl-5.14.2/man/man3/Alien::ImageMagick::Co
nfigData.3
OK
Successfully reinstalled Alien-ImageMagick-0.04
1 distribution installed
"It looks like installing this doesn't download/compile/install the ImageMagick distribution at all." Jerome noted.