Showing posts with label Troubleshooting. Show all posts
Showing posts with label Troubleshooting. Show all posts

Wednesday, September 19, 2007

Troubleshooting CPAN.pm

I was having problem with Perl modules. When I decided to force install Bundle::CPAN again, I get this error message

CPAN.pm needs either the external programs tar, gzip and bzip2 installed. Can’t continue.

The problem was that somehow I screwed up CPAN.pm configuration. Don't know how I did this but my best guess is I forgot to use sudo when I tried to install Perl modules.

Anyhow, the solution was very easy:

shell> sudo perl -MCPAN -eshell
cpan> o conf tar /bin/tar
cpan> o conf bzip2 /bin/bzip2
cpan> o conf gzip /bin/gzip
cpan> o conf commit

Friday, October 27, 2006

Cygwin Update Troubleshooting

Somehow updating Cygwin caused /etc/profile to disappear. All Cygwin commands are not founded when I logged into bash. I haven't noticed for weeks because somehow some commands were working via ssh. Copying profile file from /etc/defaults/etc/profile fixed the problem.