Yes....I did search and attempt fixes as noted both on this forum and through yahoo search engines. They do NOT appear to work. I do NOT know much in the way of CGI or C programming so I am doing my best to read through this. If anybody could help it would be appreciated.
What I am doing is attempting to get a directory listing. We are running Oracle Apps 11i with the Apache server. I have found this program called dirwrap.cgi (dirwrap_8.3.zip) and it appears to do what I am looking for.
The error I am getting is:
"Can't locate CGI.pm in @INC (@INC contains: /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503 /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005) at /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi line 44.
BEGIN failed--compilation aborted at /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi line 44.
[Tue Jul 8 10:48:51 2003] [error] [client 10.10.2.10] Premature end of script headers: /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi"
If you look at the code it appears to be having a problem on line 44 according to above:
33 $dirwrap_url = "/OA_CGI/dirwrap/dirwrap.cgi";
34 $image_url = "/images";
35 $default_template = "example";
36 $default_sort = "by_r_date";
37 $sendmail_location = '/usr/lib/sendmail -t';
38 $admin_code = "admin";
39 $allow_dirwrap_links = "yes";
40
41 # exercise some good cgi practices
42 $|= 1;
43 open(CGI, '/u01/appl/silgora/iAS/Apache/perl/lib/5.00503/CGI.pm') or die $!;
44 use CGI qw(:standard);
45 use CGI::Carp qw(fatalsToBrowser);
46 use Fcntl;
47 use strict;
48 use vars qw(
49 $admin_code $admin_email $allow_dirwrap_links $allow_path_parm $base_path
50 $base_url $bgcolor_1 $bgcolor_2 $chk $chkd $color $counts_file $default_sort
51 $default_template $dirwrap_url $download_counter $e1 $e2 $e3 $e4 $e5 $e6 $e7
My perl directory is:
which perl
/u01/appl/silgora/iAS/Apache/perl/bin/perl
The CGI.pm value is located at:
-rwxr-xr-x 1 applsilg dba 190905 Oct 20 2001 CGI.pm
/u01/appl/silgora/iAS/Apache/perl/lib/5.00503
Where is it getting the directory above noted as "(@INC contains: /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503 /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005) "?????
I have searched the program and anything else I can think of and can not find it.
Also am I calling this program correctly in my URL?
http://server.com:PORT/OA_CGI/dirwrap.cgi
Has anybody else used this program?
Any other programs recommended that would do get me a directory listing?
What I am doing is attempting to get a directory listing. We are running Oracle Apps 11i with the Apache server. I have found this program called dirwrap.cgi (dirwrap_8.3.zip) and it appears to do what I am looking for.
The error I am getting is:
"Can't locate CGI.pm in @INC (@INC contains: /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503 /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005) at /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi line 44.
BEGIN failed--compilation aborted at /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi line 44.
[Tue Jul 8 10:48:51 2003] [error] [client 10.10.2.10] Premature end of script headers: /u01/common/silgcomn/html/bin/dirwrap/dirwrap.cgi"
If you look at the code it appears to be having a problem on line 44 according to above:
33 $dirwrap_url = "/OA_CGI/dirwrap/dirwrap.cgi";
34 $image_url = "/images";
35 $default_template = "example";
36 $default_sort = "by_r_date";
37 $sendmail_location = '/usr/lib/sendmail -t';
38 $admin_code = "admin";
39 $allow_dirwrap_links = "yes";
40
41 # exercise some good cgi practices
42 $|= 1;
43 open(CGI, '/u01/appl/silgora/iAS/Apache/perl/lib/5.00503/CGI.pm') or die $!;
44 use CGI qw(:standard);
45 use CGI::Carp qw(fatalsToBrowser);
46 use Fcntl;
47 use strict;
48 use vars qw(
49 $admin_code $admin_email $allow_dirwrap_links $allow_path_parm $base_path
50 $base_url $bgcolor_1 $bgcolor_2 $chk $chkd $color $counts_file $default_sort
51 $default_template $dirwrap_url $download_counter $e1 $e2 $e3 $e4 $e5 $e6 $e7
My perl directory is:
which perl
/u01/appl/silgora/iAS/Apache/perl/bin/perl
The CGI.pm value is located at:
-rwxr-xr-x 1 applsilg dba 190905 Oct 20 2001 CGI.pm
/u01/appl/silgora/iAS/Apache/perl/lib/5.00503
Where is it getting the directory above noted as "(@INC contains: /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/5.00503 /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005/sun4-solaris /vobs/pdc_perl/bin/Solaris/Opt/lib/site_perl/5.005) "?????
I have searched the program and anything else I can think of and can not find it.
Also am I calling this program correctly in my URL?
http://server.com:PORT/OA_CGI/dirwrap.cgi
Has anybody else used this program?
Any other programs recommended that would do get me a directory listing?