Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how do I package a CPAN module?
October 23, 2004, 5:13 pm
rate this thread
If I use the h2xs program for example, and try to make that, it gives
me this error below. If I try converting it to use my custom module, I
get the same error. What am I doing wrong? This is my first CPAN
cp Access.pm blib/lib/Logfile/Access.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.0/ExtUtils/typemap Access.xs > Access.xsc && mv
Please specify prototyping behavior for Access.xs (see perlxs manual)
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686
-g -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC
Access.xs:7:27: Logfile::Access: No such file or directory
make: *** [Access.o] Error 1
Re: how do I package a CPAN module?
> I have designed a perl module for cpan but cannot get the h2xs system
> to work.
> If I use the h2xs program for example, and try to make that, it gives
> me this error below. If I try converting it to use my custom module, I
> get the same error. What am I doing wrong? This is my first CPAN
Points of clarification:
1. Does your module actually use C code?
2. What specific h2xs command did you use?
Reasons for these points: h2xs has, AFAICT, two quite different common
usages. First (its originally intended use) is to generate the
structure needed to import C code. Second (a humbler but more common
use) is to use it with the -X option to simply generate the basic file
structure of a proper CPAN distribution, i.e., a MANIFEST, a README, a
..pm file, a .t file, etc.
- » Looking for module that will expands domain/username to email address
- — Previous thread in » PERL Modules Announcements