Perl Initialization – August 31, 2004

When I was installing RT (Request Tracker) I got an error, since I hadn't ever set up CPAN before. After searching for a bit, here is the solution. I figured I would post this here to help others in the future find it in google quicker.Error:
Number found where operator expected at /usr/lib/perl5/5.8.0/CPAN/FirstTime.pm line 485, near "< = 60 && -s _ > 0". (Missing operator before 0?)
Solution:
Run "perl -MCPAN -e shell" as root and answer the configuration questions. The defaults are probably mostly fine, although I made my CPAN directory in a system readable/writable place. I did have to change the permissions on the directory in order for it to work, since by default it made the CPAN directory writable only by root.

Questions? Have Anything to Add?
(your comments will be published on this site - click here for private questions)

thanks for this, it helped me (and 459 others by the look of it!)

Posted by anonymous on April 16, 2007, 10:18 pm