Unable to locate Perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unable to locate Perl
# 1  
Old 03-17-2015
Hammer & Screwdriver Unable to locate Perl

Hi,

On my server : Linux mymac 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

I tried to load successfully the Perl module inside my Apache [running as apache user] by adding the following in my httpd.conf
Code:
LoadModule cgid_module modules/mod_cgid.so

Restarted Apache successfully and tried to hit a page on Apache I see the below errors in my logs ...

Code:
 Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/app/workload/content_bulkmail/cgi-bin/top.cgi line 3.
BEGIN failed--compilation aborted at /opt/app/workload/content_bulkmail/cgi-bin/top.cgi line 3

I have perl installed with non apache users [root] at the following locations

1. file /usr/bin/perl
/usr/bin/perl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped


2.file /usr/local/opt/perl5.14/bin/perl
/usr/local/opt/perl5.14/bin/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped


Can you suggest what should i do to fix this error.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to unlink files perl

Hi, I have a dir and some files as below (all have full perm) drwxrwxrwx 2 sam sam 4096 Aug 8 04:31 /home/sam/test $ ll /home/sam/test -rwxrwxrwx 1 sam sam 0 Aug 8 04:31 b1_2013_file.txt -rwxrwxrwx 1 sam sam 0 Aug 8 04:31 c1_2014_file.txtI want to go to this directory and delete the... (2 Replies)
Discussion started by: sam05121988
2 Replies

2. Shell Programming and Scripting

Perl CGI : unable to download the excel sheet from perl cgi page

Hi All, I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet. I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet. print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies

3. Programming

Unable to get substring from a string in perl

Hello friends, I have one string "Absoulte_Markup_XYZ.xml" . I am trying to get XYZ in a variable but not able to :( Here please note that "XYZ" can be "XYZABC" or "XYZPQR"...i mean to say its length is variable. I hope you got my point. I tried with > `grep <Above String> | cut -f2 -d.`... (3 Replies)
Discussion started by: harpal singh
3 Replies

4. Shell Programming and Scripting

unable to return multilple values in perl

hello friends, i have written one perl script.Which opens a file and search for some parameter's value and gets the status of these parameters. but while i am trying to return these value always i am getting false. Can any one please help me.. here is that function: =======================... (5 Replies)
Discussion started by: harpal singh
5 Replies

5. Shell Programming and Scripting

Unable to open a file in perl

Not able to open a file using this code why not? use strict; use warnings; my $file = "verInfo.txt"; unless(open FILE, $file) { # Die with error message # if we can't open it. die "\nUnable to open $file\n"; } my $line = <FILE>; print $line; close FILE; (7 Replies)
Discussion started by: srijith
7 Replies

6. Shell Programming and Scripting

Unable to get the correct sort order in perl.

Hi, I have created the hash. %hash; @arr1 = qw(Dealnum AdminStatus adminReason effFrom effTo); @arr2 = qw(121212121 YES 1992-06-19T05:14:27 ); @hash{@arr1}=@arr2; foreach(sort keys %hash){ print "$_ ---- $hash{$_}\n"; } The output i got like this: C:\strawberry\perl\bin>perl... (1 Reply)
Discussion started by: vanitham
1 Replies

7. Shell Programming and Scripting

File creating in another path.. application unable to locate

I am submitting a concurrent program (of HOST tyme) from Oracle apps screen, The MAIN shell program submits another program, (child) which is also a Shell program. The child writes data to log file. Now the main program, read the log and do some calculations and sends the data to user through... (1 Reply)
Discussion started by: Pradeep Garine
1 Replies

8. UNIX for Advanced & Expert Users

perl -V Can't locate Config.pm in @INC

Hi guys I have an issue in my sum server . I have perl installed in my machine and when i enter perl -version i get the verson on perl 10.0 but when i enter perl -V i get an error message "perl -V Can't locate Config.pm in @INC" I would appreciate if some one had faced this issue to share... (1 Reply)
Discussion started by: mohdaleem
1 Replies

9. UNIX for Dummies Questions & Answers

Unable to download modules from Strawberry perl.

Hi, I am using Strawberry Perl on WinXP but i am unable to download modules from Cpan via cmd,everytime a connection timeout error pops up. I get the following error : C:\>cpan Tk CPAN: LWP::UserAgent loaded ok (v5.834) CPAN: Time::HiRes loaded ok (v1.9719) Fetching with LWP:... (0 Replies)
Discussion started by: parimal14
0 Replies

10. UNIX for Dummies Questions & Answers

Howto locate locally installed Perl module for a CGI script in APACHE .htaccess

Hi, I have the following simple CGI script, just containg header: #!/usr/bin/perl -w use CGI ':standard'; use lib "/home/myname/lib/perl5/site_perl/5.8.5/"; use Mail::Sendmail; I also have included this directive in ~/public_html/.htaccess : SetEnv PERL5LIB... (0 Replies)
Discussion started by: monkfan
0 Replies
Login or Register to Ask a Question