Perl Problems
Stephen McCullough
swm at swmcc.com
Wed Nov 13 07:19:30 CST 2002
Hi,
> > 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.
Yeah, I must have fscked up the installation some way. If there is a way
to fsck something up SWM will find it :)
> > 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.
I bit the bullet and upgraded to unstable. And everything seems to be working
fine now :)
Thanks to Mike and Simon :)
Cheers,
--
Stephen McCullough www.swmcc.com
More information about the Belfast-pm
mailing list