These are notes for my work on playing with OpenLink Virtuoso 5.0.7 on Windows Vista.


To install as a service

  1. Make sure that you've got %VIRTUOSO_HOME%\bin on your path.
  2. Open an administrator console and cd to %VIRTUOSO_HOME%\database. This is so that it can see your virtuoso.ini file. (You can run it from anywhere if you point to the config file you want to use with the +configfile flag.)
  3. Pick which binary you're going to use. I'm using the one with Java embedded.
  4. $> virtuoso-javavm-t +service create -I yourservicename
  5. to verify that it is installed run
       $> virtuoso-javavm-t +service list

    You should see it listed.
  6. WARNING: If at some point if you start the service using the Windows Services Control Panel and it instantly stops with the error message "The OpenLink Virtuoso Server [servicename] service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs." You will need to go into the %VIRTUOSO_HOME%\databases directory and delete the files virtuoso.trx and virtuoso.lck in order to get the service to start. Running the instance in the foreground will give you the error messages you need in order to learn this. This can happen on a system crash so if you have the service set to automatic it will not start and will not add anything to the error logs.
   
Dealing with the JDK 1.4 req
The  virtuoso-javavm-t binary requires JDK 1.4 be on your PATH in order to run. Eclipse Ganymede requires jdk 1.5. I've set up bat files that run as administrator that do the Vista equivalent of a virtual symlink so that I can easily pivot between JDK 1.4 and 1.6. (Set this up for back when Mule ESB required that you build it with 1.4)

# jdk1.6.bat
RMDIR C:\opt\java
mklink /d C:\opt\java C:\opt\Sun\jdk\jdk1.6.0_05\fastdebug

# jdk1.4.bat
RMDIR C:\opt\java
mklink /d C:\opt\java C:\opt\Sun\j2sdk1.4.2_16

Both need to run as administrator.


Building OpenLink Virtuoso from Source

General Comments

Building OpenSSL

Building PHP 5 SAPI module for Virtuoso