forked from inutano/dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-virtuoso-ubuntu-14-04.sh
executable file
·55 lines (44 loc) · 1.23 KB
/
install-virtuoso-ubuntu-14-04.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
# Installs, configures, and starts the open source version of Virtuoso.
set -e
# START OF SETTINGS SECTION
#
# Virtuoso and data directories will go here:
#
# NOTE: directory is relative to home (~/), so "src" will be
# referring to the directory "~/src"
SRC_BASE=src
VIRTUOSO_VERSION=develop/7
# END OF SETTINGS SECTION
# Does the source base directory exist? No? Well, create it!
cd ~
if [[ ! -d "$SRC_BASE" ]] ; then
mkdir "$SRC_BASE"
fi
cd "$SRC_BASE"
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y automake
sudo apt-get install -y gperf
sudo apt-get install -y libtool
sudo apt-get install -y flex
sudo apt-get install -y bison
sudo apt-get install -y libssl-dev
# Get Virtuoso and build it:
git clone https://github.com/openlink/virtuoso-opensource.git
cd virtuoso-opensource
git checkout $VIRTUOSO_VERSION
./autogen.sh
export CFLAGS="-O2 -m64"
./configure
make
sudo make install
# Start Virtuoso:
echo ""
echo "!!! Showing Virtuoso admin interface in Firefox in 30sec !!!"
echo ""
(sleep 30; firefox http://127.0.0.1:8890) &
cd /usr/local/virtuoso-opensource/var/lib/virtuoso
sudo chown -R `whoami` db
cd db
/usr/local/virtuoso-opensource/bin/virtuoso-t +foreground