Hi!
I have a problem using CPAN under cygwin because it creates ".cpan"
folder in the "Documents and Settings\ali" folder which contains spaces
in the name. I've created "home/ali" folder and set appropriate HOME
environment variable. But when I deleted the cpan and perl and
"Documents and Settings\ali\.cpan" dirrectory and installed them once
more the CPAN creates his folder in the "Documents and settings\ali"
again. How to force it to create it's folder in the /home/ali dirrectory?
Thanks for your attention.
Hereafter short listing where you can see the errornous behaviour of
CPAN. pay attention to line:
sh: /cygdrive/c/Documents: No such file or directory
*** log ***
[EMAIL PROTECTED] ~
$ 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.
[EMAIL PROTECTED] ~
$ 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.