Click here to get back home

Problems with Device-SerialPort

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with Device-SerialPort Stan Brown 05-04-2006
Get Chitika Premium
Posted by Stan Brown on May 4, 2006, 2:15 pm
Please log in for more thread options


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
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

Similar ThreadsPosted
Problems using GD.pm January 8, 2005, 8:05 pm
Problems when using Net::MSN 1.022 May 4, 2005, 1:20 pm
LWP problems July 11, 2005, 3:50 pm
PPM Problems on Win.XP November 5, 2007, 4:26 pm
LWP Problems (Authentication?) September 5, 2004, 7:12 am
Net::FTP mdtm problems December 14, 2004, 11:00 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm
DBI_DB2 problems June 2, 2006, 5:24 pm
CGI.pm: encoding problems June 9, 2006, 10:53 am
Test::Pod problems March 3, 2007, 1:04 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap