in reply to Re: installing text::csv cpan
in thread installing text::csv cpan

I have strawberry perl only and I run my script it gives this error

C:\Documents and Settings\x0199665\Desktop\ke>first_time_userl.pl Can't locate Text/CSV.pm in @INC (you may need to install the Text::CS +V module) (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/ +lib C:/str awberry/perl/lib .) at C:\Documents and Settings\x0199665\Desktop\ke\f +irst_time_ userl.pl line 90. BEGIN failed--compilation aborted at C:\Documents and Settings\x019966 +5\Desktop\ ke\first_time_userl.pl line 90.

and my line 90 is use Text::CSV; so I did this cpan Text::CSV; it gave this error

C:\Documents and Settings\x0199665\My Documents>cpan Text::CSV CPAN: CPAN::SQLite loaded ok (v0.202) CPAN: LWP::UserAgent loaded ok (v6.05) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.strawberryperl +.com:80 (B ad hostname)] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows +\system32\ ftp.exe' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp2248'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.strawberryperl +.com:80 (B ad hostname)] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to www.cpan.org:80 (Ba +d hostname )] Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01 +mailrc.txt .gz.tmp2248'. Giving up on it. As a last resort we now switch to the external ftp command 'C:\Windows +\system32\ ftp.exe' to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp2248'. Doing so often leads to problems that are hard to diagnose. If you're the victim of such problems, please consider unsetting the ftp config variable with o conf ftp "" o conf commit CPAN: YAML::XS loaded ok (v0.41) Please check, if the URLs I found in your configuration file (http://cpan.strawberryperl.com/, http://www.cpan.org/, http://www.cpan.org/) are valid. The urllist can be edited. E.g. with +'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz

Replies are listed 'Best First'.
Re^3: installing text::csv cpan
by marto (Cardinal) on Jul 03, 2013 at 10:13 UTC

    Clicking http://cpan.strawberryperl.com/authors/01mailrc.txt.gz downloads a file for me, if it works for you from your desktop then this suggests you need to configure cpan to allow it to use your proxy. I mentioned reading the documentation for this in your previous thread, have you done so?

    To kick off the configuraiton within the cpan shell:

    C:\>cpan cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. cpan> o conf init /proxy/ some questions here which you answer cpan> o conf commit

    If in doubt as to what these settings should be speak to your systems or network administrator. Also please use the formatting used on this site for code and errors: How do I post a question effectively?.

    Update: Fixed broken link.

      hey I solved it , thank you it works by dmake . thanks for helping out everyone , specially Marto . much appreciate it

        Glad you managed to install this module, did you manually download the files and install it that way? The reason I ask is that for modules with lots of dependancies this can take you quite a long time going back and fourth, and going the same process for multiple modules. Configuring cpan and PPM to work within your network is well worth the investment in time IMHO.

Re^3: installing text::csv cpan
by Corion (Patriarch) on Jul 03, 2013 at 10:11 UTC

    You have a proxy between your machine and the internet. Please ask your system and/or your network administrator for how to properly set up HTTP connectivity to the outside.