![]() The installation of Strawberry Perl did add its directory to the Path, but at the end of the Path, so Strawberry Perl's executables have been preempted by Git's Perl, in a different folder. You may have noticed that you can call a program on Windows without the extension. "C:\strawberry\perl\bin\perl.exe" "%1" %* That way, you can call programs just by naming them with the.pl extension. That allows you to use almost any module in the CPAN archive without modification. This includes a MinGW distribution that comes with a minimally configured gcc compiler and base libraries. The other Perl choice for Windows is Strawberry Perl. If the name of the module in Perl-land is Path::Tiny, then the name of the package in Debian/Ubuntu-land is most likely going to be libpath-tiny-perl. To install for the system-perl as root you can use either aptitude or apt-get depending on your personal preferences. ActiveState offers a complete, ready-to-install version of Perl for Windows. To work with Perl programs on Windows, Perl will need to be manually downloaded and installed. Perl does not come pre-installed with Windows. Set the desired installation path and click on the Next button. Accept the license agreement and click on the Next button. For that, all versions of Perl for Windows are available on Download the Perl and follow the further instructions for installation of Perl.Īs the administrator, start the Perl installation. There is no need to fill out any of the contact information on the next page in order to download ActivePerl.ĭownloading and Installing Perl: Downloading Perl: Before starting with the installation process, you need to download it. Go to ActiveState's ActivePerl home page (ActiveState is ). Explanation of this setup Padre, the Perl IDE is recommended, because you get Strawberry Perl (Perl packaged for Windows) 5.12.3 as well as many useful modules (especially those that are tricky to install) and the Perl IDE/editor itself.īefore we can install Perl on your windows system, you'll need to download it. I hope this helps get Perl working in your Windows Apache install.Installing Strawberry Perl (without Padre) video. Print $q->header( "text/html" ),$q->start_html( "hello from perl cgi!" ) # print header and start the markup output # ^^^ this must be the first line of the script! ^^^ You can copy the code and save it as in c:\apache2\htdocs or anther directory of your preference. We are now ready to test to see if it displays a simple Perl Hello script. Save the changes and restart Apache service. Next you will need to add ExecCGI in the Option section. ScriptAlias /cgi-bin/ "c:/Apache2/cgi-bin/" ![]() Look for the alias_module section and make sure the cgi-bin line is pointed to the correct location. Now we need to enable and add a few items to allow perl to execute. LoadFile "C:/strawberry/perl/bin/perl510.dll"įind the mime section and modify this AddHandler cgi-script. LoadModule perl_module modules/mod_perl.so You can add this to the bottom of the file. We must tell Apache to load the module and tell it where the perl Dll lives. This will be your Apache modules directory (ex:c:/Apache2/modules)Ĭlose the command prompt and edit c:\Apache2\conf\nf Once it compiles the module it will ask where to put it. Next download and compile the mod_perl using ppm (Perl Package Manager) ppm install Run the command c:\strawberry> perl\bin\perl.exe update_env.pl.bat Once the installation is completed then, open a command prompt to set the perl environment and reboot the system. Once downloaded just double-click to install it, you can change the default installation path or change it to your preference. In the past I have gone with ActiveState’s ActivePerl but lately I have been using Strawberry Perl due to changes in retrieving older releases.I settled on Perl 5.10 release.ĭownload Strawberry Perl 5.10.5 from and click on strawberry-perl-5.10.1.5.msi under the Strawberry Perl May 2011 section. ![]() For this post I chose to make it work on Apache 2.2 but it could possibly work on Apache 2.4 as well, but I have not tested they portion yet.įirst piece of the puzzle is to download a version of Perl that supports the Module on Apache. To continue on with developing on Windows using Apache/MySQL/PHP I wanted to add mod_perl to the mix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |