![]() Installation Perl Here installation Perl 5.6.1.635 is described - take into account, that installation of newer versions can differ a little from described. It will be necessary for you to download an adjusting file with expansion *.msi (the link to this file nazvaetsja " Windows MSI " - she usually the first in the list further, and there are links to versions for different variants Linux). Click on the downloaded file *.msi. Such picture will appear: Press Next and read then the license agreement. Then pass to the following section - to a choice of components. You can not establish examples and the documentation if you like an empty seat on a disk. So if you concern to breed of people, liking to read instructions, put, and no - so no. At the following stage it is necessary to specify a folder for installation. Specify D:\usr\ (or what there you have chosen a disk). Not D:\perl. During installation in a folder D:\usr\ it will be created podpapka bin in which will settle down perl.exe - that will give us a necessary way -/usr/bin/perl - which it is underlined in heading of each Perl-script. To change further nothing is necessary - simply press Next. When files will be copied, disconnect an antivirus. Any AVP Monitor can slow down copying of time in three. Any danger in it no - in fact the distribution kit has already been checked up at uploading from Internet - so what for it to check once again? Established perl.exe it is possible to use for check of correctness of scripts. For example, having typed{collected} in window DOS the command d:\usr\bin\Perl.exe-c d:\cgi-bin\myscript.cgi You or receive the message " myscript.cgi - Syntax is OK " or an explanation, in what place you have made a mistake. If you have unloaded a script on a site in such kind, you would receive the message about " Error 500 " without any additional explanatories - and so you know where a mistake. ATTENTION: very much widespread mistake is installation Perl not in that directory or not on that disk. Once again we pay attention to where the compiler should be located. If all of you for any inexplicable reason do not adhere to our advice{council} check up the first line in your script. She should specify not a directory with Perl, and on ispolnimyj a file perl.exe. We remind, that *!/usr/bin/perl (without blanks) Forces to search for the Perl-interpreter perl.exe in directory D:/usr/bin/, instead of D:/usr/bin/perl If all of you establish ways incorrectly, Apache will give out not clear message on a mistake, and in errors.log the message will appear: could not spawn child process. In this case check up still time. Adjustment Perl , actually, and all. Can use the Perl-compiler. For check of his serviceability use a file test.cgi (placed, certainly, in a directory D:\cgi-bin\ or similar), for example with such maintenance{contents}: *!/usr/bin/perl (without blanks) print " Content-type: text/html\n\n "; print " It works! <br> \n "; system ("dir"); Installation of modules Perl For full happiness us does not suffice to establish the modules expanding functionality Perl. Modules are necessary for job with MySQL, modules for job with databases under Windows (such as Microsoft Access) and, probably, mail can be demanded. If it is required, it will be possible to put and modules for job with XML and other excesses - but it already on your taste. Download files: DBI.zip DBD-Mysql.zip Unpack their both in in any folder, for example, d:\temp\modules\. Open window DOS, pass to a folder d:\usr\bin and then vpechatajte the command: ppm.bat When will see the invitation of a kind: d:\temp\modules> d:\usr\bin\ppm.bat PPM interactive shell (2.1.1) - type ' help ' for available commands. PPM> vpechatajte the command: install d:\temp\modules\DBI.ppd Also confirm your desire to establish the module with pressing of button " Y ". Wait, while copying and installation of files will pass. When all will end, vpechatajte the command: install d:\temp\modules\DBD-MySQL.ppd Also repeat sequence of actions. When also this command will come to the end, close PPM, vpechatav the command: quit And then close window DOS. The folder D:\temp\modules\ now can be erased. If you seriously are engaged Perl, to you can be interesting and other modules from site ActiveState on <http://www.activestate.com/PPMPackages/zips/6xx-builds-only/>. So, the module can be necessary for job with Microsoft Access and other databases, such as SPSS <http://www.spss.com/>, supporting standard ODBC - DBD-ODBC.zip <http://www.activestate.com/PPMPackages/zips/6xx-builds-only/DBD-ODBC.zip> for you. If you want to send with convenience letters with attachmentami from scripts, you can be necessary MIME-Lite.zip <http://www.activestate.com/PPMPackages/zips/6xx-builds-only/MIME-Lite.zip>. In general, understand and establish that is necessary for you - I to you have already described process of installation of modules. | |