Perl Problems
Michael G Schwern
schwern at pobox.com
Wed Nov 13 05:40:12 CST 2002
On Wed, Nov 13, 2002 at 11:22:48AM +0000, Stephen McCullough wrote:
> Could someone please help?
>
> I recently installed Linux on my laptop. I am trying to get some of the
> modules I use from the CPAN, this is what I get:
>
> /usr/lib/perl/5.8.0/CORE/perl.h:1969: pthread.h: No such file or directory
> In file included from /usr/lib/perl/5.8.0/CORE/iperlsys.h:51,
> from /usr/lib/perl/5.8.0/CORE/perl.h:2200,
> from Piece.xs:5:
> /usr/lib/perl/5.8.0/CORE/perlio.h:64: stdio.h: No such file or directory
> In file included from /usr/lib/perl/5.8.0/CORE/reentr.h:67,
> from /usr/lib/perl/5.8.0/CORE/op.h:480,
> from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
> from Piece.xs:5:
> /usr/include/pwd.h:26: features.h: No such file or directory
> /usr/include/pwd.h:30: bits/types.h: No such file or directory
> In file included from /usr/lib/perl/5.8.0/CORE/op.h:480,
> from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
> from Piece.xs:5:
You seem to be missing large numbers of the standard C header files
necessary for compiling C programs. How you managed to have
/usr/include/pwd.h but not /usr/include/stdio.h is beyond me.
This is very odd.
> The module in question is Class::DBI, but I get the same for Time::Piece as
> well. So I take it that it will be the same for whatever modules I install :(
>
> I never installed 'c' on my laptop on the initial install, has this anything to
> do with it?
Yes. You really, really, really, really, really want a C compiler on a Unix
machine. Really really really. Really. C makes Unix go 'round.
Install the gcc C compiler and anything that looks like it might contain
standard C header files. On Debian its the libc6-dev package. I don't know
what it is on other Linux distributions. Hopefully there will be an
"install some stuff so I can compile programs" option to install all the
right packages for you.
--
Michael G. Schwern <schwern at pobox.com> http://www.pobox.com/~schwern/
Perl Quality Assurance <perl-qa at perl.org> Kwalitee Is Job One
the chair. it wants to die. oh no! she sees me! she attacks!
More information about the Belfast-pm
mailing list