Perl Device::SerialPort problem

aliko ali.tlisov@gmail.com
Wed Nov 22 15:28:00 GMT 2006


Hi!

Maybe it's not the right list to ask such a question, anyway I hope 
someone here can help me. The problem is with the sdcc-sdb (debugger for 
sdcc compiller) program which I've compiled and installed. This programm 
uses perl and Device::SerialPort module. I've tried to ask my question 
in the forum devoted to that programm, but the answer was that the roots 
of problem is in my Cygwin configuration. Here the answer:

***
sh: /cygdrive/c/Documents: No such file or directory

This looks like your problem. Cygwin does not like blank spaces in file 
names at times, so work from your cygwin home directory. This is 
"/home/ali" or something, and not "/cygdrive/c/*"
***

As far as I understood it's all because my home directory is located in 
the "Documents and Settings" folder wich contains spaces in the name and 
it's causes some programs like perl to work incorrectly.I cant work from 
the /home/ali dirrectory as it's was suggsested because there is no such 
dirrectory "/home".

Hereafter I'm including some listing of what I was doing.

***
ali@aliko ~
$ cpan

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled

cpan> install Device::SerialPort
CPAN: Storable loaded ok
Going to read /cygdrive/c/Documents and Settings/ali/.cpan/Metadata
Database was generated on Sun, 15 Oct 2006 00:23:51 GMT
Running install for module Device::SerialPort
Running make for C/CO/COOK/Device-SerialPort-1.002.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /cygdrive/c/Documents and 
Settings/ali/.cpan/sources/authors/id/C/C
O/COOK/Device-SerialPort-1.002.tar.gz ok
Scanning cache /cygdrive/c/Documents and Settings/ali/.cpan/build for sizes
sh: /cygdrive/c/Documents: No such file or directory
Package seems to come without Makefile.PL.
(The test -f "/cygdrive/c/Documents and 
Settings/ali/.cpan/build/COOK005/Makef
ile.PL" returned false.)
Writing one on our own (setting NAME to DeviceSerialPort)

CPAN.pm: Going to build C/CO/COOK/Device-SerialPort-1.002.tar.gz

Writing Makefile for DeviceSerialPort
/usr/bin/make -- OK
Running make test
No tests defined for DeviceSerialPort extension.
/usr/bin/make test -- OK
Running make install
Writing /usr/lib/perl5/site_perl/5.8/cygwin/auto/DeviceSerialPort/.packlist
Appending installation info to /usr/lib/perl5/5.8/cygwin/perllocal.pod
/usr/bin/make install -- OK

cpan> exit
Lockfile removed.


ali@aliko ~
$ sdb.pl -p /dev/ttyS1
Can't locate Device/SerialPort.pm in @INC (@INC contains: 
/usr/lib/perl5/5.8/cyg
win /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin 
/usr/lib/perl5/site_p
erl/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 
/usr/li
b/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 
/usr/lib/perl5/ven
dor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 .) at (eval 1) line 2.
BEGIN failed--compilation aborted at (eval 1) line 2.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list