Mailinglist Archive: opensuse (3441 mails)

< Previous Next >
[opensuse] Where do I find perl module C::Scan?
  • From: Josef Wolf <jw@xxxxxxxxxxxxx>
  • Date: Wed, 14 Jan 2009 18:23:19 +0100
  • Message-id: <20090114172319.GF11828@xxxxxxxxxxxxxx>
Hello,

To build a perl XS module with h2xs, I need the C::Scan module. Since
I could not find this module with zypper, but h2xs suggests to install
it via CPAN:

$ h2xs -O --skip-autoload -b 5.8.0 -x -n Module module.h
C::Scan required if you use -x option.
To install C::Scan, execute
perl -MCPAN -e "install C::Scan"
$

So I decided to follow this suggestion and did (as root):

# perl -MCPAN -e "install C::Scan"
[ many lines of output deleted ]
Installing /usr/lib/perl5/site_perl/5.10.0/C/Scan.pm
Installing /usr/share/man/man3/C::Scan.3pm
Writing
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/C/Scan/.packlist
Appending installation info to
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/perllocal.pod
HVDS/C-Scan-0.74.tar.gz
/usr/bin/make install -- OK
#

But h2xs still complains that it can not find this module. "perl -v"
claims /usr/lib/perl5/site_perl/5.10.0 is contained in the @INC array.
But /usr/lib/perl5/site_perl/5.10.0/C is _not_ (notice the "/C" at the
end)

@INC:
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl

So here are my questions:

1. Is there a way to install this module with zypper? How do I find
out which package contains this module?

2. What is the proper way to add a directory to the @INC array?
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >