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).
Step 1: What is needed
Step 2: Installing some required modules
Step 3: Installing Perl SADI
Step 4: Run sadi-install
To implement SADI services using SADISeS, you need to have the following installed on your machine:
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
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:
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()"
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:
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:
Hit the Enter key to issue the command.
Now you will need to issue the following commands from your command prompt:
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:
Once nmake has finished running, issue the following command at the command prompt to test the distribution:
Assuming that nmake test ran successfully, it is time to run the install command:
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:
Now you are ready to develop SADI services on your MS Windows 64-bit system!