Subject: | |
From: | |
Reply To: | |
Date: | Tue, 29 Jul 2003 10:29:33 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
You need to create an empty "param.h" file in one of the "sys" directories
that the compiler searches.
E.g., from the shell, if you are logged on as MANAGER.SYS
touch /usr/include/sys/param.h
If you're not MANAGER.SYS, you can create the file elsewhere, although
getting the compiler to find the file might be difficult. You could just
try in the build directory. I.e.:
cd /PERL/PUB/lib/MPE-File-0.06
mkdir sys
touch sys/param.h
What's happening is that the version of MPE and/or gcc that you are
installing this on is not the same one that was used to compile your perl
executable. When "perl" is compiled, it includes all the C header files
that it might need. When you try to compile a module, it tries to include
the same header files.
----- Original Message -----
From: "Robert Mills" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, July 29, 2003 9:26 AM
Subject: [HP3000-L] MPE-FILE-0.06 install to Perl 5.6.1 on MPE/iX 6.5
> Greetings,
>
> Have just tried to install the Perl module MPE-File from CPAN.
> It looks as if make failed because one of the header files is missing.
> Is this correct and how do I fix it?
>
> shell/iX> cd /PERL/PUB/lib
>
> shell/iX> ll
> total 141
> -rw------- 1 ROBERT.SYSDEV PERL 71680 Jul 29 14:08
> MPE-File-0.06.tar
> drwxr-xr-x 4 MGR.PERL PERL 416 Jul 26 2001 perl5
>
> shell/iX> tar -xof MPE-File-0.06.tar
> tar: blocksize = 20
>
> shell/iX> ll
> total 144
> drwxr-xr-x 3 ROBERT.SYSDEV PERL 1280 Dec 18 2002
MPE-File-0.06
> -rw------- 1 ROBERT.SYSDEV PERL 71680 Jul 29 14:08
> MPE-File-0.06.tar
> drwxr-xr-x 4 MGR.PERL PERL 416 Jul 26 2001 perl5
>
> shell/iX> cd MPE-File-0.06
>
> shell/iX> ll
> total 112
> -rw-r----- 1 ROBERT.SYSDEV PERL 660 Dec 18 2002 Changes
> -rw-r----- 1 ROBERT.SYSDEV PERL 4015 Dec 18 2001 File.html
> -rw-r----- 1 ROBERT.SYSDEV PERL 8108 Dec 18 2002 File.pm
> -rw-r----- 1 ROBERT.SYSDEV PERL 23162 Jan 25 2002 File.xs
> -rw-r----- 1 ROBERT.SYSDEV PERL 97 Dec 20 2001 MANIFEST
> -rw-r----- 1 ROBERT.SYSDEV PERL 868 Dec 17 2001 Makefile.PL
> -rw-r----- 1 ROBERT.SYSDEV PERL 1063 Dec 18 2001 README
> -rw-r----- 1 ROBERT.SYSDEV PERL 174 Jan 25 2002 TODO
> -rw-r----- 1 ROBERT.SYSDEV PERL 5750 Dec 18 2001 longptr.h
> -rw-r----- 1 ROBERT.SYSDEV PERL 9767 Jan 25 2002 mpefile.h
> drwxr-xr-x 2 ROBERT.SYSDEV PERL 320 Dec 18 2002 t
>
> shell/iX> perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for MPE::File
>
> shell/iX> make
> cp File.pm blib/lib/MPE/File.pm
> /usr/local/bin/perl -I/PERL/PUB/lib/perl5/5.6.1/PA-RISC1.1
> -I/PERL/PUB/lib/perl5
> /5.6.1 /PERL/PUB/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap
> /PERL/PUB/lib/perl5/5
> .6.1/ExtUtils/typemap File.xs > File.xsc && mv -f File.xsc File.c
> gcc -c -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL
> -DIS_SOCKET_
>
CLIB_ITSELF -fno-strict-aliasing -I/usr/local/include -I/usr/contrib/include
> -I/
> BINDFW/CURRENT/include -I/SYSLOG/PUB -O2 -DPERL_EXTMALLOC_DEF
> -Dmalloc=Perl_mal
> loc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
> -DVERSION=\"0.
> 06\" -DXS_VERSION=\"0.06\" -I/PERL/PUB/lib/perl5/5.6.1/PA-RISC1.1/CORE
> File.c
> In file included from File.xs:2:
> /PERL/PUB/lib/perl5/5.6.1/PA-RISC1.1/CORE/perl.h:488:26: sys/param.h: No
> such fi
> le or directory
> make: *** [File.o] Error 1
>
> shell/iX>
>
> regards,
>
> Robert W.Mills
> Systems Development Manager
> Windsong Services
> (01689) 870622 x3005
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|