Some of your have asked me to create a tutorial for Mac for running script. This post is the answer to your queries. Without further ado here are the steps:

PART 1 – Installing XAMPP & Copying Files

1> Download XAMPP for Mac at  this link

2> Install XAMPP using instructions at: this link (just a couple of steps)

3> At this point you can go to the htdocs folder on your Mac (/Applications/XAMPP/htdocs)

4> You can cleanup this folder by placing all files and folders into a single folder or leave it as is.

5> Assuming you have downloaded the windows version of SEO Warrior (xampp distribution) simply copy all files and folders from the ‘htdocs’ (windows) to your Mac ‘htdocs’ folder.

6> Copy, from the Windows (zip:\xampp\perl\site\lib\HTML) distribution to /Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.0/HTML/

7> Copy from the Windows (zip:\xampp\perl\lib\Math\MATH) distribution to /Applications/XAMPP/xamppfiles/lib/perl5/5.10.0/Math

With this step you will avoid getting the following error message:
Can't locate HTML/ in @INC (@INC contains: /Applications/XAMPP/xamppfiles/lib/perl5/5.10.0/darwin-2level /Applications/XAMPP/xamppfiles/lib/perl5/5.10.0 /Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.0/darwin-2level /Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.0 .) at line 25.

8> Next we need to setup the path. You can execute the following command in a Terminal window (just for this window session) or place it in your .profile file (as a more permanent solution). Note: this is a single line and the only white space is after the ‘export’ word.

export PATH=/Applications/XAMPP/xamppfiles/lib/perl5/5.10.0:/Applications/XAMPP/xamppfiles/lib/perl5/site_perl/:/Applications/XAMPP/xamppfiles/bin/:$PATH

You are now ready to run the script. Simply go to the /Applications/XAMPP/book/downloads/chapter-4 folder. (i.e. perl 10 buy shoes)

That’s it! These instructions could also be helpful for Linux installations as well (especially the modules part).


Post to Twitter

Tags: , ,

Comments are closed.