install REST::Client in perl

hi my friends,

i was tring to install REST::Client in perl without success

when I tring to install it using CPAN I get the error:

No such file or directory at /usr/share/perl5/CPAN/Distribution.pm line 2003.

also : Make had return bad status, install seems impossible

Note : I have install first CPAN like this:

 yum install perl-CPAN

Then I have tried this code:

sudo perl -MCPAN -e shell

install REST::Client

no success

please help ASAP
Thanks a lot
weissmanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
weissmanConnect With a Mentor Author Commented:
hi all,

you can close the question the solution was :

to add the gcc-4.2 folder using this:

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

and configre and install the cpan:

sudo yum install perl-Crypt-SSLeay
sudo perl –MCPAN –e shell
cpan> install Bundle::CPAN
cpan> install REST::Client

thanks.
0
 
weissmanAuthor Commented:
0
 
Seth SimmonsSr. Systems AdministratorCommented:
looks like there are prerequisites not met causing this to fail

what version of perl?  what linux distribution?
0
 
weissmanAuthor Commented:
ok
0
 
weissmanAuthor Commented:
ok
0
All Courses

From novice to tech pro — start learning today.