in reply to Perl module installing at server

G'day james786,

Welcome to the monastery.

It sounds like you could have more than one version of Perl installed. It's /usr/bin/perl that can't find String.pm; do you have another /some/path/to/perl on your system?

Try running:

which perl

from the command-line. Does that show /usr/bin/perl or something else?

How did you install String? There's normally some messages indicating where a module's files are being installed to. Do you have a log or history of that? Try using find to locate the path to String.pm.

Try running:

/usr/bin/perl -e 'use String; print "$String::VERSION\n";'

from the command-line. Do you get the same messages? Is the output showing the same version you installed? Do you get the same results with these:

perl -e 'use String; print "$String::VERSION\n";' /some/path/to/perl -e 'use String; print "$String::VERSION\n";'

How are you running your web application? Perhaps there's a configuration issue; have you checked this?

Did you undertake any troubleshooting yourself before posting here. If so, what were the results?

-- Ken

Replies are listed 'Best First'.
Re^2: Perl module installing at server
by james786 (Initiate) on Aug 19, 2013 at 09:43 UTC

    Sir, I am doing all this within cPanel of web server. Path to PERL is /usr/bin/perl

    which is given by the service provider. Perl version is 5.14.3. I don't know how many installed version they have at their server.

    String.pm is at, locate by using find option

    /perl/usr/local/cpanel/3rdparty/perl/514/site_lib/XML/SAX/PurePerl/Reader/String.pm

    I am not running the web application. First I am trying to installing PERL modules. After that I will run my application. And currently, I do not have access to command line. Yes, its the configuration problem but don't know its solution.

      What would XML/SAX/PurePerl/Reader/String.pm have to do with a module named String?