Well, what do you know...it's right there in black & white on the CPAN page: "Building this module requires the bcm2835 library to be installed." Shoulda looked at that a little more closely. Guess I was too excited about making my LED light up. ;)
It still failed when using cpanm, but I was able to install it manually so I'm happy. Sort of. I can't get my LED to light up. It's not the code - that ran with no errors. I'm beginning to think I may have a hardware problem with my RPi. *Sigh*
Here's the output from the cpanm attempt in case you want to see it:
cpanm (App::cpanminus) 1.5018 on perl 5.014002 built for arm-linux-gnueabihf-thread-multi-64int
Work directory is /root/.cpanm/work/1356137344.5706
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Device::BCM2835 on cpanmetadb ...
--> Working on Device::BCM2835
Fetching
http://www.cpan.org/authors/id/M/MI/MIKEM/Device-BCM2835-1.3.tar.gz-> OK
Unpacking Device-BCM2835-1.3.tar.gz
Entering Device-BCM2835-1.3
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.57_05)
Configuring Device-BCM2835-1.3
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Device::BCM2835
Writing MYMETA.yml
-> OK
Checking dependencies from MYMETA.yml ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.57_05)
Building and testing Device-BCM2835-1.3
cp lib/Device/BCM2835.pm blib/lib/Device/BCM2835.pm
AutoSplitting blib/lib/Device/BCM2835.pm (blib/lib/auto/Device/BCM2835)
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap BCM2835.xs > BCM2835.xsc && mv BCM2835.xsc BCM2835.c
Please specify prototyping behavior for BCM2835.xs (see perlxs manual)
gcc-4.7 -c -I/usr/local/projects/bcm2835/src -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.3\" -DXS_VERSION=\"1.3\" -fPIC "-I/usr/lib/perl/5.14/CORE" BCM2835.c
Running Mkbootstrap for Device::BCM2835 ()
chmod 644 BCM2835.bs
rm -f blib/arch/auto/Device/BCM2835/BCM2835.so
gcc-4.7 -shared -L/usr/local/lib -fstack-protector BCM2835.o -o blib/arch/auto/Device/BCM2835/BCM2835.so \
-lbcm2835 \
chmod 755 blib/arch/auto/Device/BCM2835/BCM2835.so
cp BCM2835.bs blib/arch/auto/Device/BCM2835/BCM2835.bs
chmod 644 blib/arch/auto/Device/BCM2835/BCM2835.bs
Manifying blib/man3/Device::BCM2835.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use Device::BCM2835;'
# at t/Device-BCM2835.t line 12.
# Tried to use 'Device::BCM2835'.
# Error: Can't load '/root/.cpanm/work/1356137344.5706/Device-BCM2835-1.3/blib/arch/auto/Device/BCM2835/BCM2835.so' for module Device::BCM2835: /root/.cpanm/work/1356137344.5706/Device-BCM2835-1.3/blib/arch/auto/Device/BCM2835/BCM2835.so: undefined symbol: clock_gettime at /usr/lib/perl/5.14/DynaLoader.pm line 184.
# at (eval 4) line 2
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Failed test 'Constants'
# at t/Device-BCM2835.t line 59.
&Device::BCM2835::constant not defined at t/Device-BCM2835.t line 70
# Looks like you planned 5 tests but ran 2.
# Looks like you failed 2 tests of 2 run.
# Looks like your test exited with 255 just after 2.
t/Device-BCM2835.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/5 subtests
Test Summary Report
-------------------
t/Device-BCM2835.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 5 tests but ran 2.
Files=1, Tests=2, 1 wallclock secs ( 0.57 usr 0.09 sys + 0.67 cusr 0.09 csys = 1.42 CPU)
Result: FAIL
Failed 1/1 test programs. 2/2 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Device::BCM2835 failed. See /root/.cpanm/build.log for details.
Thanks Mike!
Tom