Web Hosting Talk







View Full Version : Is perl working?


Snowbird122
05-22-2001, 12:54 AM
I tried to install ikonboard which uses perl. I thought I would test to see where perl was installed by using the following script I found on another post:

print "content-type: text/html ";
print`perl -v`;

I uploaded this to the cgi-bin and opened it with my browser. I got this: http://www.echo-technologies.com/cgi-bin/perlpath.pl

This makes me believe I have a perl problem.

I have a cobalt raq 4i server. When I telnet in and type:

perl -v

it says this:



[admin ikonboard]$ perl -v

This is perl, version 5.005_03 built for i386-linux

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://http://www.perl.com/, Perl Home Page.

[admin ikonboard]$



When I navigate to /usr/bin, perl is in the directory.

What do I do? Is my perl working right?

Travis
05-22-2001, 01:00 AM
Perl is probably working fine. Your test script is set up incorrectly. It probably needs this line at the top:

#! /usr/bin/perl

...as well as the executable permission set.

sodapopinski
05-22-2001, 01:13 AM
Originally posted by Snowbird122
I tried to install ikonboard which uses perl. I thought I would test to see where perl was installed by using the following script I found on another post:


I would suggest you to log into your account through telnet/ssh and type the following command:

whereis perl

You should get the answer.

Snowbird122
05-22-2001, 01:41 AM
Thanks sodapopinski

Here is what I got back:
[admin admin]$ whereis perl
perl: /usr/bin/perl5.00503 /usr/bin/perl /usr/man/man1/perl.1

I guess this means that the path is correct?

TheRazor
05-22-2001, 03:52 PM
If you read what the script says, You may have a few anwsers right there.

Make sure you use pico to type the script if you don't have a unix capable text editor.

Make sure you upload it in ascii.

Make sure you chmod it correctly...
if the above true are correct, chmod it 777 just to see if it a permission issue, just don't leave it like that when your done testing...