Problems with Device-SerialPort
am 04.05.2006 20:15:23 von Stan BrownI'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
testing on.
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.
continuing anyway...
Running ./configure ...
checking for gcc... gcc
But, when I run make it blows up:
make
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
"-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" SerialPort.c
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.
Any sugestions.
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin