Installation of OpenLink Virtuoso Server in Ubuntu

OpenLink Virtuoso is the first CROSS PLATFORM Universal Server to implement Web, File, and Database server functionality alongside Native XML Storage, and Universal Data Access Middleware, as a single server solution. OpenLink Virtuoso plays a vital role for semantic web programming, it can work as a solid SPARQL end point, which can be supported by almost all endpoint interfaces. There are following steps to install and start OpenLink Virtuoso universal server-

1. Install Dependencies

To install OpenLink Virtuoso first of all following dependencies are needed-

Package Version From
autoconf 2.57 http://www.gnu.org/software/autoconf/
automake 1.9 http://www.gnu.org/software/automake/
libtool 1.5.16 http://www.gnu.org/software/libtool/
flex 2.5.33 http://www.gnu.org/software/non-gnu/flex/
bison 2.3 http://www.gnu.org/software/bison/
gperf 2.7.2 http://www.gnu.org/software/gperf/
gawk 3.1.1 http://www.gnu.org/software/gawk/
m4 1.4.1 http://www.gnu.org/software/m4/
make 3.79.1 http://www.gnu.org/software/make/
OpenSSL 0.9.7i http://www.openssl.org/

First of all check all the dependencies whether installed or not. (Version is important!)

To check the version use following sequence.

#autoconf –version

# automake –version

#libtoolize –version

#flex –version

#bison –version

#gperf –version

#gawk –version

#m4 –version

#make –version

#openssl version

During checking of the dependencies you will know whether they are installed or not and if not installed, for example,  you will get  something like-

The program ‘autoconf’ is currently not installed.  You can install it by typing:

apt-get install autoconf

Then why should you wait!! install the packages using “apt-get” one by one in the sequence as checking the version.

OR
you can install these from synaptic package manager.

2. run this command  apt-get install libssl-dev from your terminal
3. Download OpenLink Virtuoso from source forge (Link)
4. Extract the package in any directory.
5. Go to the directory where you have extracted the package.
6. It is better to run autogen.sh by typing ./autogen.sh, which checks for the presence and right version of some of the required components, and if it reports any missing package then install that package.
7. Set following  environmental variable by typing (one by one) -
CFLAGS=”-O2″
export CFLAGS
8. type  `./configure’ to configure the package for your system.
9. Type `make’ to compile the package.
10. Type `make install’ to install the programs and any data files and documentation.

To start the server you have two steps-
1. Go to ‘cd  /usr/local/virtuoso-opensource/var/lib/virtuoso/db’
2. then type ‘/usr/local/virtuoso-opensource/bin/virtuoso-t -f &’
Finally use the server from your browser by typing ‘http://localhost:8890/’ in the address bar.
Use the powerful multipurpose opensource server !!
Note:- All documentations are available at Wiki Page of  OpenLink Virtuoso.
To grant the SPARQL to update and insert data into a graph-
1. Go to “http://localhost:8890/conductor” and login as “dba” (Uname and Pass =” dba”)
2. Click on “Interactive SQL (ISQL)”.
3. In ISQL window type the commad

GRANT ALL PRIVILEGES TO "SPARQL";

No Responses to “Installation of OpenLink Virtuoso Server in Ubuntu”

  1. admin says:

    I have latest version of OpenSSL [ OpenSSL 0.9.8g ] , when i try to remove it from synaptic package manager , Lot of packages are also depended on it .i can not remove new version. any other solution for this problem.

  2. Akhtar says:

    I also have the same version of openssl and I did not remove that, here version shows the preferred or later version so you can proceed with OpenSSL 0.9.8g no problem, probably you will have to install “libssl-dev” by apt-get install libssl-dev to get development headers & libraries for OpenSSL.
    *It will be better to run autogen.sh to check for the presence and right version of some of the required components.

  3. admin says:

    Thanks Akhtar , After installing libssl-dev , its working now

  4. Shaily says:

    Thanks Akhtar. This post of yours was really of great help to me. Else I don’t know how long I would have taken to do this installation. Thanks for making it really easy. Keep up the good work.

Leave a Response