Posted on 2006-06-01 14:22:01-07 by zii
Cannot get cpan working
Hi, I tried to install Cpan, but it won't do anything. This is due to a misconfiguration on my behalf, which seems irreversible. I know that I have posted in the wrong thread, but I cannot find any forums for new people to Cpan. I typed: perl -MCPAN -e install Date/Parse.pm The config script asked me if I was ready to manually configure, to which I answered no, because I thought it easier to automatically configure. I didn't realise that there was no automatic configuration. After this, cpan simply returns exit status 0. I looked in my home dir for cpan folders or config files that I could delete and hence let the config script run again, but there was only .cpan, which I deleted, but made no difference. Does anyone know how to get this working? Regards, Zii. (complete nib when it comes to cpan, and not so good with Perl either)
Direct Responses: 2401 | Write a response
Posted on 2006-06-01 20:14:03-07 by zii in response to 2399
Re: Cannot get cpan working
Update: I managed to get it installed using: perl -MCPAN::FirstTime -e 'CPAN::FirstTime::init()'
but it still doesn't work, because the next two things I tried were:

# perl -MCPAN -e install Bundle::libnet
# perl -MCPAN -e install Date/Parse.pm

Each time it simply returned to the command line, which made me wonder if it had already been installed, so I tried running a .pl script but got:
Can't locate Date/Parse.pm in @INC (@INC contains: /opt/csw/lib/perl/5.8.8 /opt/csw/share/perl/5.8.8 /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw /opt/csw/share/perl/csw .) at ./2md.pl line 131.

BEGIN failed--compilation aborted at ./2md.pl line 131.

Does any know?
Direct Responses: 2404 | Write a response
Posted on 2006-06-02 19:36:25-07 by zii in response to 2401
Re: Cannot get cpan working
OK, got cpan to run, but it tries to do an upgrade but this fails:

Can't exec "/usr/ccs/bin": Permission denied at /opt/csw/share/perl/5.8.8/CPAN.pm line 4565. /usr/ccs/bin -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
Direct Responses: 2405 | Write a response
Posted on 2006-06-02 20:08:20-07 by zii in response to 2404
Re: Cannot get cpan working
Looks like wrong make path used so have corrected it to /usr/ccs/bin/make, not that it made it work.
Doe anybody actually reads this forum?

Anyway, I have installed the module using the make/make install method, which has turned out to be a lot simpler than CPAN interface. IF I have to install more modules I'll do it manually!
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.