Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ready to install PERL

Status
Not open for further replies.

raevans

Programmer
Dec 3, 2002
28
US
OK although I am not prepared.. I have no choice but to try to install perl on my win2K server laptop so that I can start loading the nms email script and test it out. Please if anyone out there has some time and is in the holiday spirit... maybe on the east coast and hoping for snow so we dont have to work tomorrow anyway... can you explain some things.... Like exactly what I need on my server for this to work? If I go to this link and download the zip.... My question is... what else do I need? Do I need a compiler? Or does win2Kserver have one. Also... what else is necessary for the script to work??? Thanks for any help.
 
I'd backup one step. If you were using anything other than a Win OS, I'd say use CPAN (that is where your link goes). CPAN is THE 'official' place for all things Perl. However, since you are on a Win OS, I'd use . They do a very good job of providing a Perl port for the Win OSes with a few convinient tools thrown in. Their Perl port is available as a MSI file, you double-click, answer the typical installer questions and perl is installed. They also ship in that MSI all the html docs for core Perl.

See the downloads section in the lower right of their front page. They ask for a little registration info before the download, but, in my experience they are very conservative with the use of that info.

Do you need a compiler? NO.
Perl uses as interpreter(comes in the MSI). Your code resides on your system as text files. Each time your code is run, a text file(the code) is passed to the interpreter and compiled on-the-fly and then run. Yes, this does make Perl a little slower than most compiled languages. There are a few ways around that problem, but that is beyond what you'd need to know now.

...what else is necessary for the script to work???
I am not familiar with the script. If it is a peice of CGI, then you'll need to have a web server running on the machine to server the CGI. That is also fairly easy. If you are married to the MS IIS, then check out the IIS docs about how to run CGIs. Otherwise, I'd suggest going to and downloading apache. In less than an hour, you can setup apache and have CGIs running. See that FAQs tab at the top of this forum. 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
GoinBoating. Thanks. I have installed perl via the msi (whats the diff between this and the as btw?) and it was easy (good for retarded individuals such as me:( Anyway, I have an email script... basically I volunteered to set up an html form for a contest at our school which visitors will fill out and then which will be submitted via email to someone... (not me:) So I have run the example.pl from my cmd prompt and everything is ok I am also looking thru the documentation which I cannot wait to actually learn and study in depth.. but for now I need to get this script in and start testing it. I am guessing that I am married to IIS, if by that you mean it is there, apparently running, There is one slight issues... I have to rtype in my ip address of the server laptop instead of localhost followed by the path to the perl documentation index.html page in order for it to display in IE. I dunno... but its coming up, so thats good. Anyhow... I was going to just load the formmail.pl in the cgi-bin directory, and then from another computer on the minilan call iot up fill it out and hit submit to see if it will call and execute the script. So.. thats where i am at. Any advice on anything which is jumping out at you as wrong will be much appreciated. BTW I cant believe that I spent the last year learning HTML and javascript when I could have been learning PERL...
 
If you're having problems with setting up any NMS scripts, I recommend you contact the developers directly at:


Any message you send gets sent to all the 25 developers who are currently working on various areas of the project.

From your message I suspect you just need to correctly set the various entries in the configuration block, so that the script knows what it can and can't do. Barbie
Leader of Birmingham Perl Mongers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top