Re: Error installing modules from CPAN
On Friday, May 3, 2002, at 08:13 AM, Hans Holtan wrote: > I keep getting this set of errors when I try do install > directly from CPAN with: > > % sudo perl -MCPAN -e shell > > I have tried installing various modules but this is what I get > every time: > > cpan> install MD5 > Running make for G/GA/GAAS/MD5-2.02.tar.gz > Fetching with Net::FTP: > > ftp://ftp.cs.colorado.edu/pub/perl/CPAN/authors/id/G/GA/GAAS/MD5-2.02.tar. > gz > > CPAN: MD5 security checks disabled because MD5 not installed. > Please consider installing the MD5 module. > > zsh: no such file or directory: > y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz > tar: End of archive volume 1 reached > tar: Sorry, unable to determine archive format. > y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz: No such file or > directory > Couldn't uncompress y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz > What's the "y" directory? Try having a look at your ~/.cpan/CPAN/MyConfig.pm file. What are the values of 'build_dir', 'cpan_home', and 'keep_source_where'? My guess is that they're wrong. Maybe you answered "y" to one of the configuration questions, when it wasn't looking for a y/n answer? -Ken
Re: Getting the path of a running process from OS X Perl
On Thursday, May 2, 2002, at 10:46 PM, Charles Albrecht wrote: > For that (Arshad's original question), you can leverage the Finder and > OSA, something along the lines of... > > #!/usr/bin/perl -w > > system q(/usr/bin/open -a "`/usr/bin/osascript -e 'tell > application "Finder" to get name of application file id > "CWIE" ' `" ); Yow - I think that's worthy of framing for its quote-character usage alone! =) -Ken
Re: Error installing modules from CPAN
Hans Holtan wrote: > I keep getting this set of errors when I try do install directly from > CPAN with: > > % sudo perl -MCPAN -e shell > > I have tried installing various modules but this is what I get every > time: > > cpan> install MD5 > Running make for G/GA/GAAS/MD5-2.02.tar.gz > Fetching with Net::FTP: > > ftp://ftp.cs.colorado.edu/pub/perl/CPAN/authors/id/G/GA/GAAS/MD5-2.02.tar.gz > > > CPAN: MD5 security checks disabled because MD5 not installed. > Please consider installing the MD5 module. > > zsh: no such file or directory: > y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz > tar: End of archive volume 1 reached > tar: Sorry, unable to determine archive format. > y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz: No such file or directory > Couldn't uncompress y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz > > > cpan> > > > Can someone tell me in "newbie" what is going wrong here? > > Thanks for your help, > -Hans Hans, I had many such and other wierd errors... my specific problem was that the gzipped tars being downloaded were screwed up. The checksum was all wonky. Try changing your CPAN repository. Use the o conf command to do that. Hth, pk/
Error installing modules from CPAN
I keep getting this set of errors when I try do install directly from CPAN with: % sudo perl -MCPAN -e shell I have tried installing various modules but this is what I get every time: cpan> install MD5 Running make for G/GA/GAAS/MD5-2.02.tar.gz Fetching with Net::FTP: ftp://ftp.cs.colorado.edu/pub/perl/CPAN/authors/id/G/GA/GAAS/MD5-2.02.tar.gz CPAN: MD5 security checks disabled because MD5 not installed. Please consider installing the MD5 module. zsh: no such file or directory: y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz tar: End of archive volume 1 reached tar: Sorry, unable to determine archive format. y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz: No such file or directory Couldn't uncompress y/sources/authors/id/G/GA/GAAS/MD5-2.02.tar.gz cpan> Can someone tell me in "newbie" what is going wrong here? Thanks for your help, -Hans
Re: DBI
>> Does any one have any tips for installing perl modules >> >> I have tried to install the DBI module using CPAN and manually, but both >> times I cannot seem to get then to connect up? >> >> Thank you >> >> roland > > What DB are you using and is set up properly? If MYSQL what version > are you running? I'm using the eSuite4X MYSQL3 and DBI installed fine > from cpan, not sure if I tinkerd with it manually or not though. I installed MySQL from fink, and DBI and DBD:mysql from CPAN without problem. I didn't really 'answer' any of the questions while installing DBI either. Just hitting enter all the way(You might choose to actually read the questions). But, it is working flawless for me. :) Tor
Re: DBI
>Does any one have any tips for installing perl modules > >I have tried to install the DBI module using CPAN and manually, but both >times I cannot seem to get then to connect up? > >Thank you > >roland What DB are you using and is set up properly? If MYSQL what version are you running? I'm using the eSuite4X MYSQL3 and DBI installed fine from cpan, not sure if I tinkerd with it manually or not though. W
Re: Getting the path of a running process from OS X Perl
At 1:08 PM -0600 5/1/2002, Charles Albrecht wrote: > >% open -a "BBEdit 6.5" file.txt > >will give you the desired effect. I don't know if it helps for >Arshad's original question, though, as you still don't know the >name of the app itself. For that (Arshad's original question), you can leverage the Finder and OSA, something along the lines of... #!/usr/bin/perl -w system q(/usr/bin/open -a "`/usr/bin/osascript -e 'tell application "Finder" to get name of application file id "CWIE" ' `" ); __END__ -Charles [EMAIL PROTECTED]
Re: Accessing AFP remote volumes?
After getting the password to the user, I'd make a call to the mount_afp shell command. -mab On Wednesday, May 1, 2002, at 02:04 PM, Jeff Lowrey wrote: > At 4:04 PM -0400 5/1/02, [EMAIL PROTECTED] wrote: >> While we're on the subject of remote volumes, I've been trying to >> figure out >> how to automate mounting "normal" AFP volume from Perl (or the >> Terminal -- >> it just has to let Perl read & write files) in OS X. The servers >> require ID >> & password. >> >> Right now, I'm using FTP to access these remote volumes. Is there a >> better >> way? > > Maybe you want to use osascript and AppleScript to do this. "mount > volume" is your friend.