Hi Monks,

I have an assignment about parallel port using perl.
I searched CPAN and found Device::ParallelPort.
Installing this module is successful.

But then I realized that it also requires Device::ParallelPort::drv::linux.
But when I run "make" for this module, I have this error message:

cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC +"-I/usr/lib/perl/5.8/CORE" linux.c In file included from linux.xs:2: /usr/lib/perl/5.8/CORE/perl.h:420:24: error: sys/types.h: No such file + or directory /usr/lib/perl/5.8/CORE/perl.h:451:19: error: ctype.h: No such file or +directory /usr/lib/perl/5.8/CORE/perl.h:463:23: error: locale.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:480:20: error: setjmp.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:486:26: error: sys/param.h: No such file + or directory /usr/lib/perl/5.8/CORE/perl.h:491:23: error: stdlib.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:496:23: error: unistd.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:776:23: error: string.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:925:27: error: netinet/in.h: No such fil +e or directory /usr/lib/perl/5.8/CORE/perl.h:929:26: error: arpa/inet.h: No such file + or directory /usr/lib/perl/5.8/CORE/perl.h:939:25: error: sys/stat.h: No such file +or directory /usr/lib/perl/5.8/CORE/perl.h:961:21: error: time.h: No such file or d +irectory /usr/lib/perl/5.8/CORE/perl.h:968:25: error: sys/time.h: No such file +or directory /usr/lib/perl/5.8/CORE/perl.h:975:27: error: sys/times.h: No such file + or directory /usr/lib/perl/5.8/CORE/perl.h:982:19: error: errno.h: No such file or +directory /usr/lib/perl/5.8/CORE/perl.h:997:25: error: sys/socket.h: No such fil +e or directory /usr/lib/perl/5.8/CORE/perl.h:1024:21: error: netdb.h: No such file or + directory /usr/lib/perl/5.8/CORE/perl.h:1127:24: error: sys/ioctl.h: No such fil +e or directory /usr/lib/perl/5.8/CORE/perl.h:1156:23: error: dirent.h: No such file o +r directory In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/syslim +its.h:7, from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits +.h:11, from /usr/lib/perl/5.8/CORE/perl.h:1510, from linux.xs:2: /usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error: limi +ts.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2120, from linux.xs:2: /usr/lib/perl/5.8/CORE/handy.h:136:25: error: inttypes.h: No such file + or directory


.... and so on.


my code:

#!/usr/bin/perl use Device::ParallelPort; use Device::ParallelPort::drv::linux; my $parport = Device::ParallelPort->new('linux'); $parport->set_byte(0, char(255));


I'm a newbie to UNIX system and perl, but very eager to learn. Please shed some light on this problem.

In reply to Device::ParallelPort::drv::linux make problem by Ronny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.