Fetchgals virker ikke
Har hentet fetchgals, pakket den ud, læst man, så på requements:Filesys::Df
også gik jeg igang:
linux@debian:~/fetchgals-5.6$ perl fetchgals.pl
Fetchgals needs the Filesys::Df perl module.
It can be downloaded from http://www.cpan.org
See the perlmodinstall(1) man page for details.
Can't locate Filesys/Df.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at fetchgals.pl line 26.
Altså, jeg mangler Fliesys::Df:
linux@debian:~$ perl -MFilesys::Df -e 1
Can't locate Filesys/Df.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.
Så vil jeg hente den:
Running make for I/IG/IGUTHRIE/Filesys-Statvfs_Statfs_Df-0.71.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /home/linux/.cpan/sources/authors/id/I/IG/IGUTHRIE/Filesys-Statvfs_Statfs_Df-0.71.tar.gz ok
Scanning cache /home/linux/.cpan/build for sizes
Filesys-Statvfs_Statfs_Df-0.71/
Filesys-Statvfs_Statfs_Df-0.71/DfStatvfs
Filesys-Statvfs_Statfs_Df-0.71/Changes
Filesys-Statvfs_Statfs_Df-0.71/MANIFEST
Filesys-Statvfs_Statfs_Df-0.71/Statvfs.xs
Filesys-Statvfs_Statfs_Df-0.71/typemap
Filesys-Statvfs_Statfs_Df-0.71/Statvfs.pm
Filesys-Statvfs_Statfs_Df-0.71/test_statfs
Filesys-Statvfs_Statfs_Df-0.71/Statfs.pm
Filesys-Statvfs_Statfs_Df-0.71/Statfs.xs
Filesys-Statvfs_Statfs_Df-0.71/DfStatfs
Filesys-Statvfs_Statfs_Df-0.71/test_statvfs
Filesys-Statvfs_Statfs_Df-0.71/META.yml
Filesys-Statvfs_Statfs_Df-0.71/test.pl
Filesys-Statvfs_Statfs_Df-0.71/Df.pm
Filesys-Statvfs_Statfs_Df-0.71/Makefile.PL
Filesys-Statvfs_Statfs_Df-0.71/README
Removing previously used /home/linux/.cpan/build/Filesys-Statvfs_Statfs_Df-0.71
CPAN.pm: Going to build I/IG/IGUTHRIE/Filesys-Statvfs_Statfs_Df-0.71.tar.gz
Warning:/usr/include/sys/statvfs.h or /usr/include/sys/statvfs.h
could not be found.
Assuming that you use use statvfs() ....
Checking if your kit is complete...
Looks good
Writing Makefile for Filesys::Statvfs
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
I sidste linie siger den impossible, så fetchgals virker stadig ikke. Nu henter jeg så modulet manuelt, pakker det ud, og vil kører det:
cd Filesys-Statvfs_Statfs_Df-0.71
linux@debian:~/Filesys-Statvfs_Statfs_Df-0.71$ ls
blib DfStatfs MANIFEST Statfs.pm Statvfs.xs typemap
Changes DfStatvfs META.yml Statfs.xs test.pl
config.h Makefile pm_to_blib Statvfs.c test_statfs
Df.pm Makefile.PL README Statvfs.pm test_statvfs
linux@debian:~/Filsys-Statfvs_Statfs_Df-0.71$ more README
INSTALL
TO INSTALL RUN:
perl Makefile.PL
make
make test
make install
linux@debian:~/Filesys-Statvfs_Statfs_Df-0.71$ perl Makefile.PL
Warning:/usr/include/sys/statvfs.h or /usr/include/sys/statvfs.h
could not be found.
Assuming that you use use statvfs() ....
Adgang nægtet config.h at Makefile.PL line 99.
linux@debian:~/Filesys-Statvfs_Statfs_Df-0.71$ su
debian:/home/linux/Filesys-Statvfs_Statfs_Df-0.71# perl Makefile.PL
Warning:/usr/include/sys/statvfs.h or /usr/include/sys/statvfs.h
could not be found.
Assuming that you use use statvfs() ....
Writing Makefile for Filesys::Statvfs
debian:/home/linux/Filesys-Statvfs_Statfs_Df-0.71# make
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.71\" -DXS_VERSION=\"0.71\" -fPIC "-I/usr/lib/perl/5.8/CORE" Statvfs.c
/bin/sh: line 1: cc: command not found
make: *** [Statvfs.o] Fejl 127
Og der får jeg fejl nummer 127!!!! Får også fejl nummer 127 med make install!!
Undskyld jeg har copyń'pastet så meget, men vidste ellers ikke hvordan jeg skulle forklarer mig!
