Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Stan Brown
May 4, 2006, 6:15 pm
rate this thread
I'm trying to posr a perl application from FreeBSD to Soalris 10 X86. One
of the key requirements of this application is communicating via the serail
port. I have several SunFire 2100's for this, which do have a serail port
(etting harder and ahrder to find this0.
I cant get Device-SerialPort to insall using the CPAN installer, which
probably shouldn't suprise me, as it requires that an argument be passed to
the "perl Makefile.OL" sequence to define which serial port to do it's
So, I donwloaded the module, and ran this:
perl Makefile.PL TESTPORT=/dev/ttya
Which seems resonably happy. here are a couple of snipptes from the utput:
Found what seems to be a Sun serial device.
Its path is '/dev/../devices/isa/asy@1,3f8:a',
but is not a 'zs' or 'se' style serial device.
Running ./configure ...
checking for gcc... gcc
But, when I run make it blows up:
cp SerialPort.pm blib/lib/Device/SerialPort.pm
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap SerialPort.xs > SerialPort.xsc &&
mv SerialPort.xsc SerialPort.c
cc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3
-xspace -xildoff -DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -KPIC
sh: cc: not found
*** Error code 1
make: Fatal error: Command failed for target `SerialPort.o'
Notice that it is trying to use the (noexistant) cc, instead of gcc. I even
triied editing the Makefil by hand and defining CC = gcc, but it just blows
up a bit later.
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
- » On CygwinPerl, Digest::SHA fails all tests (yet passed on CPAN-testers)
- — Previous thread in » PERL Modules Announcements