Ah, thank you so much Josh! I was not understanding the distinction between things like cairo, gtk, et al and the bindings/whatever that allow perl to use those.
Now that I understand that, I've managed to install all the modules that I need. So now I get the much shorter error: segmentation fault. i think i'll give up now. bleh. (if anyone's looking for a project, i'm just trying to get this program to run on mac: http://sourceforge.net/projects/haplopainter/) On Jun 11, 2010, at 12:11 PM, Joshua Root wrote: > On 2010-6-12 01:53 , Johnson, Matthew wrote: >> Hi all- >> I have searched everywhere, but I am new to perl and can't seem to find the >> answer. I installed macports 1.8.2 on 10.6.3 (xcode 3.2.2 installed), >> installed some modules using "sudo port install ..." but when I run a perl >> program I get, e.g., >> >> Can't locate Cairo.pm in @INC (@INC contains: >> /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level >> /opt/local/lib/perl5/site_perl/5.8.9 /opt/local/lib/perl5/site_perl >> /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level >> /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/lib/perl5/vendor_perl >> /opt/local/lib/perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 .) at >> ./HaploPainter1.043.pl line 21. >> BEGIN failed--compilation aborted at ./HaploPainter1.043.pl line 21. >> >> The module is installed: >> $ port installed >> The following ports are currently installed: >> atk @1.30.0_0 (active) >> autoconf @2.65_1 (active) >> automake @1.11.1_0 (active) >> bzip2 @1.0.5_3+darwin (active) >> cairo @1.8.10_0+macosx (active) >> ... >> >> $ port dir cairo >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/cairo >> >> But the actual file Cairo.pm is nowhere to be found. (locate Cairo.pm gives >> nothing. Also, this command I found to list installed perl mods doesn't list >> it:http://www.linuxquestions.org/questions/linux-general-1/how-to-list-all-installed-perl-modules-216603/ >> ) >> >> Also, I've made sure I'm using the macports perl by changing the first line >> of the script to #!/opt/local/bin/perl and tried running it specifically >> from the command line as "/opt/local/bin/perl <script>" >> >> I feel like I'm missing a major step somewhere, and would really appreciate >> some guidance. > > Cairo is not a perl module. You probably want p5-cairo. > > - Josh _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
