Installing SADISeS on Windows 64

Installing the Perl libraries required by SADI can be a bit challenging on 64-bit Windows, since several of the underlying libraries do not yet have distributions with Active State Perl.

This document summarises steps that we found were needed in order to implement SADI services on the Win64 platform using SADISeS (SADI Service Supoort).

Table of Contents

Step 1: What is needed
Step 2: Installing some required modules
Step 3: Installing Perl SADI
Step 4: Run sadi-install

Step 1: What is needed

To implement SADI services using SADISeS, you need to have the following installed on your machine:

      1. Perl - perl has to be installed on your machine (and since you are using 64-bit MS Windows, we assume that you are using ActiveState Perl64)
      2. 7-Zip - you will need to unzip TAR and GZ files, and this free tool will allow you to do so
      3. NMAKE - Need nmake for Win64; Comes as part of Visual C++ Express

After installation of Visual C++ (which requires a free registration) you need to set your PATH.

In a new explorer window, right-click on "Computer", then Properties/Advanced System Settings [Environment Variables] in the System Variables section scroll down to Path and select [EDIT]. At the end of the existing Path information, add a ';' (semicolon) if there isn't one already, then add the complete path to VC++ nmake (do NOT put a space between the semicolon and the "C:\..."): C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin

Step 2: Installing some required modules

The next thing that you need to do is manually install some required modules. This is more tedious, than it is hard.

Open a command prompt (Windows START button, then search for "cmd", the first application discovered will be your command window) and enter the following command:

ppm

This will bring up the Perl Package Manager interface. Ensure that you can "View all packages". If you cannot, then under the View menu, click on "All Packages".

In the search box, enter Template-Toolkit. From the list of results, select Template-Toolkit and mark it for install (shortcut key '+'). Then run marked actions (shortcut key 'Ctrl+enter').

Once the installation of that module has completed, clear the search box and enter Unicode-String. From the list of results, select Unicode-String and mark it for install. Then run marked actions.

Once the installation of that module has completed, clear the search box and enter DBD-mysql. From the list of results, select DBD-mysql and mark it for install. Then run marked actions.

Once the installation of that module has completed, clear the search box and enter RDF-Core. From the list of results, select RDF-Core and mark it for install. Then run marked actions.

Once the installation of that module has completed, clear the search box and enter XML-LibXML. From the list of results, select XML-LibXML and mark it for install. Then run marked actions.

You should now exit from the Perl Package Manager by clicking Quit from the File menu (shortcut 'Ctrl+Q').

Note that on some machines, the ppm installation of XML-LibXML does not set-up the environment properly. First read the full instructions at http://perl-xml.sourceforge.net/faq/#parserdetails.ini, but if you want to simply push ahead, from the command prompt type the following:

 C:\>  perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"

Step 3: Installing Perl SADI

You are now ready to install the SADISeS Perl Libraries.

To do so you will need to download Perl SADI from CPAN. From the CPAN page, click on Download and save the compressed archive onto your desktop. Using 7-Zip, uncompress the file (right-click on the file, mouse over 7-Zip and choose to extract here).

From the command prompt, change into the newly extracted directory. The easiest way to do this is to type the following at the command prompt and add an extra space:

cd 

Then drag the folder containing our extracted directory onto the command prompt. Windows should place the complete path onto the prompt for you, like shown below:

C:\Users\Eddie>cd C:\Users\Eddie\Desktop\SADI-1.06

Hit the Enter key to issue the command.

Now you will need to issue the following commands from your command prompt:

Perl Makefile.PL

When prompted to do so, make sure that you tell Perl that you would like to install missing modules.

Next enter the following command to actually install the missing modules (can take several minutes)and to set up the installation environment:

nmake

Once nmake has finished running, issue the following command at the command prompt to test the distribution:

nmake test

Assuming that nmake test ran successfully, it is time to run the install command:

nmake install

Step 4: Run sadi-install

The last thing to do, is run the user SADI install script that comes with the Perl SADI distribution. For details on what exactly this script does, please refer to the Perl SADI documentation.

To run the user installation script, enter the following command at the command prompt:

sadi-install

Now you are ready to develop SADI services on your MS Windows 64-bit system!