LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   hosed perl - missing various perl headers (https://www.linuxquestions.org/questions/slackware-14/hosed-perl-missing-various-perl-headers-115661/)

suffer 11-13-2003 01:28 PM

hosed perl - missing various perl headers
 
i'm using slackware 9.1 with the default perl tgz. had some problems installing some modules, and then CPAN stopped working. i removepkg'd perl, and then removed unneeded modules from /usr/lib/perl5 by hand, reinstalled tgz, reinstalled needed modules. now various scipts and programs are dumping errors, saying they can't find needed modules. tried reinstalling modules again, but CPAN says they are installed. ok, remove perl again, this time also deleting /usr/lib/perl5, reinstall package and modules, same errors. found perlivp, man perlivp, well this sounds like it might help, run it, gives a bunch of errors about the missing headers...

clipped (very long output):
ok 1
ok 2
ok 3
ok 4
ok 5
# files missing from installation:
# /usr/man/man3/Bundle::DBD::mysql.3 /usr/man/man3/DBD::mysql.3 /usr/man/man3/DBD::mysql::INSTALL.3 /usr/man/man3/Mysql.3
# files missing from installation:
# /usr/share/man/man1/a2p.1 /usr/share/man/man1/c2ph.1 /usr/share/man/man1
.....
clipped again:
# Perl header `sys/vfs.ph' does not appear to be properly installed.
# Perl header `sys/wait.ph' does not appear to be properly installed.
# Perl header `termios.ph' does not appear to be properly installed.
# Perl header `time.ph' does not appear to be properly installed.
# Perl header `unistd.ph' does not appear to be properly installed.
# Perl header `ustat.ph' does not appear to be properly installed.
# Perl header `utime.ph' does not appear to be properly installed.
# Perl header `values.ph' does not appear to be properly installed.
not ok 7
2/7 subtests failed, 71.43% okay.

i can't locate any of these files anywhere on my computer or in the package. so i'm at a loss here. i had hoped reinstalling the package would give me everything i needed for perl... are there other packages that contain these headers? is there something special done during the initial slackware installation that i'm missing out on by removing and reinstalling the package? i could, but am very much dreading, compiling perl from source. any suggestions??

Tinkster 11-13-2003 01:45 PM

It appears that you'll need to re-install
bits and pieces from MySQL mate ...

The files you're missing aren't coming
with Perl for all I know.

Cheers,
Tink

suffer 11-13-2003 05:49 PM

ok, i've completely uninstall perl and mysql. then reinstalled in the order they would have been installed during routine slackware install (ap/mysql then d/perl). there is no difference at all. below is the complete list of missing perl headers. i'm no expert of course... but it looks to me that these are the basic\essential headers for perl modules to do basic fucntions within the operating system (i hope my meaning there is clear, i'm not really sure)
. i've decompressed both packages and looked at the contents. the DBD and mysql modules mentioned in the output of perlivp are contained within the perl package for slackare 9.1. the mysql package does not contain anything being installed into /usr/lib/perl5. i've also looked at the doinst.sh files for both packages. everything in the perl doinst.sh has been done, and the mysql doinst.sh makes no reference at all to perl. as much as i appreciate your quick reply tinkster, i'm thinking this problem doesn't really involve mysql.

# Perl header `stdio.ph' does not appear to be properly installed.
# Perl header `arpa/inet.ph' does not appear to be properly installed.
# Perl header `crypt.ph' does not appear to be properly installed.
# Perl header `db.ph' does not appear to be properly installed.
# Perl header `dirent.ph' does not appear to be properly installed.
# Perl header `dlfcn.ph' does not appear to be properly installed.
# Perl header `float.ph' does not appear to be properly installed.
# Perl header `gdbm.ph' does not appear to be properly installed.
# Perl header `grp.ph' does not appear to be properly installed.
# Perl header `inttypes.ph' does not appear to be properly installed.
# Perl header `langinfo.ph' does not appear to be properly installed.
# Perl header `limits.ph' does not appear to be properly installed.
# Perl header `locale.ph' does not appear to be properly installed.
# Perl header `malloc.ph' does not appear to be properly installed.
# Perl header `math.ph' does not appear to be properly installed.
# Perl header `mntent.ph' does not appear to be properly installed.
# Perl header `netdb.ph' does not appear to be properly installed.
# Perl header `netinet/tcp.ph' does not appear to be properly installed.
# Perl header `netinet/in.ph' does not appear to be properly installed.
# Perl header `poll.ph' does not appear to be properly installed.
# Perl header `pthread.ph' does not appear to be properly installed.
# Perl header `pwd.ph' does not appear to be properly installed.
# Perl header `shadow.ph' does not appear to be properly installed.
# Perl header `stdarg.ph' does not appear to be properly installed.
# Perl header `stddef.ph' does not appear to be properly installed.
# Perl header `stdlib.ph' does not appear to be properly installed.
# Perl header `string.ph' does not appear to be properly installed.
# Perl header `sys/dir.ph' does not appear to be properly installed.
# Perl header `sys/file.ph' does not appear to be properly installed.
# Perl header `sys/ioctl.ph' does not appear to be properly installed.
# Perl header `syslog.ph' does not appear to be properly installed.
# Perl header `sys/mman.ph' does not appear to be properly installed.
# Perl header `sys/mount.ph' does not appear to be properly installed.
# Perl header `sys/param.ph' does not appear to be properly installed.
# Perl header `sys/resource.ph' does not appear to be properly installed.
# Perl header `sys/select.ph' does not appear to be properly installed.
# Perl header `sys/stat.ph' does not appear to be properly installed.
# Perl header `sys/statfs.ph' does not appear to be properly installed.
# Perl header `sys/statvfs.ph' does not appear to be properly installed.
# Perl header `sys/time.ph' does not appear to be properly installed.
# Perl header `sys/times.ph' does not appear to be properly installed.
# Perl header `sys/types.ph' does not appear to be properly installed.
# Perl header `sys/uio.ph' does not appear to be properly installed.
# Perl header `sys/un.ph' does not appear to be properly installed.
# Perl header `sys/utsname.ph' does not appear to be properly installed.
# Perl header `sys/vfs.ph' does not appear to be properly installed.
# Perl header `sys/wait.ph' does not appear to be properly installed.
# Perl header `termios.ph' does not appear to be properly installed.
# Perl header `time.ph' does not appear to be properly installed.
# Perl header `unistd.ph' does not appear to be properly installed.
# Perl header `ustat.ph' does not appear to be properly installed.
# Perl header `utime.ph' does not appear to be properly installed.
# Perl header `values.ph' does not appear to be properly installed.

Tinkster 11-13-2003 08:08 PM

Guess we'll have to wait for a 9.1
user who uses Perl then ... on my
machine I don't have MySQL (I
swear by PostgreSQL ;}) and I
don't have *ANY* files with the
.ph extension besides a few in
/usr/src/nasm ;) which appear to
be related to fonts for documentation
rather than source or header files
of any kind...


Cheers,
Tink

suffer 11-14-2003 08:35 AM

ok. i guess those headers were not the problem at all. i completely reinstalled and perlivp still gives the same output. what i found was a change between perl-5.8.0 in slack 9.0 and 9.1 that these scripts are choking on.

solution:
root@bourbon:/usr/lib/perl5/5.8.0# ln -s i486-linux/ i386-linux

that fixed most of the errors i was getting. then...
root@bourbon:~/Xmms-Perl-0.12# perl Makefile.PL
Warning: prerequisite MPEG::MP3Info 0 not found.
Writing Makefile for Xmms::Config
Writing Makefile for Xmms::Remote
Writing Makefile for Xmms::SongChange
Writing Makefile for Xmms-Perl
root@bourbon:~/Xmms-Perl-0.12# perl -MCPAN -e "install MPEG::MP3Info"
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 14 Nov 2003 08:47:17 GMT
MPEG::MP3Info is up to date.
root@bourbon:~/Xmms-Perl-0.12# locate MPEG | grep perl
/usr/lib/perl5/site_perl/5.8.0/MPEG
/usr/lib/perl5/site_perl/5.8.0/MPEG/MP3Info.pm
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/MPEG
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/MPEG/MP3Info
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/MPEG/MP3Info/.packlist
root@bourbon:~/Xmms-Perl-0.12# perl Makefile.PL
Warning: prerequisite MPEG::MP3Info 0 not found.
Writing Makefile for Xmms::Config
Writing Makefile for Xmms::Remote
Writing Makefile for Xmms::SongChange
Writing Makefile for Xmms-Perl
root@bourbon:~/Xmms-Perl-0.12#

08.32|Errors loading file /home/jeff/.xchat2/XMusix.pl:
08.32|Can't locate Xmms/Remote.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 7) line 51.
08.32|BEGIN failed--compilation aborted at (eval 7) line 51.

root@bourbon:~# locate Remote | grep perl
/usr/lib/perl5/site_perl/5.8.0/i486-linux/Xmms/Remote.pm
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/Xmms/Remote
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/Xmms/Remote/Remote.bs
/usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/Xmms/Remote/Remote.so
root@bourbon:~#

solution:
root@bourbon:/usr/lib/perl5/site_perl/5.8.0# ln -s i486-linux/ i386-linux

i know this isn't the proper way to do things, but until i figure out a few more things, it works. so now what i need to know is where or what is this "@INC" and how do i fix it to be backward compatible so that i don't have to make symlinks everywhere?


All times are GMT -5. The time now is 06:46 PM.