This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Soprano virtuoso backend not found

Tags: None
(comma "," separated)
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Soprano virtuoso backend not found

Sun Sep 23, 2012 3:30 pm
So i've built KDE from master using kdesrc-build, and i'm having troubles starting nepomuk, it conmplains about missing virtuoso backend.

Code: Select all
NepomukServer(19918)/nepomuk (server) Nepomuk2::Server::enableNepomuk: enableNepomuk true
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: "nepomukfileindexer"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: Queueing "nepomukfileindexer" due to dependency "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::start: Starting "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: "nepomukfilewatch"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::startService: Queueing "nepomukfilewatch" due to dependency "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::slotServiceRegistered: "org.kde.nepomuk.services.nepomukstorage"
[/home/hrvoje/kdelocal/bin/nepomukservicestub] nepomukstorage(19920)/nepomuk (storage service) Nepomuk2::Storage::slotNepomukCoreInitialized: Failed to initialize nepomuk core
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::slotIsInitializedDBusCallFinished: Service "nepomukstorage" not initialized yet. Listening for signal.
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::slotServiceInitialized: Failed to initialize service "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::stop: Stopping "nepomukstorage"
[/home/hrvoje/kdelocal/bin/nepomukservicestub] nepomukstorage(19920)/nepomuk (storage service) Nepomuk2::Core::~Core: Shutting down Nepomuk storage core.
[/home/hrvoje/kdelocal/bin/nepomukservicestub] nepomukstorage(19920)/nepomuk (storage service) Nepomuk2::Repository::~Repository: "main"
[/home/hrvoje/kdelocal/bin/nepomukservicestub] nepomukstorage(19920)/nepomuk (storage service) Nepomuk2::Repository::close: "main"
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceController::slotProcessFinished: Service "nepomukstorage" went down
NepomukServer(19918)/nepomuk (server) Nepomuk2::ServiceManager::Private::_k_serviceStopped: Service stopped: "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::Server::slotServiceStopped: "nepomukstorage"
NepomukServer(19918)/nepomuk (server) Nepomuk2::Server::slotServiceStopped: Services still running: ()
Application '/home/hrvoje/kdelocal/bin/nepomukservicestub nepomukstorage' exited normally...


These are mine settings:
Code: Select all
KDEDIR=~/kdelocal
KDEDIRS=$KDEDIR
PATH=$KDEDIR/bin:$PATH

# Act appropriately if LD_LIBRARY_PATH is not already set.
#if [ -z $LD_LIBRARY_PATH ]; then
#  LD_LIBRARY_PATH=$KDEDIR/lib
#else
  LD_LIBRARY_PATH=$KDEDIR/lib:$LD_LIBRARY_PATH
#fi

export KDEDIRS PATH LD_LIBRARY_PATH

export KDEHOME="${HOME}/.kdelocal"

# Create it if needed
[ ! -e ~/.kdelocal ] && mkdir ~/.kdelocal



CMake output for soprano build:

Code: Select all
# kdesrc-build running: 'cmake' '/home/hrvoje/kdesrc/kdesupport/soprano' '-DCMAKE_BUILD_TYPE=Release' '-DSOPRANO_DISABLE_CLUCENE_INDEX=1' '-DBUILD_VIRTUOSO_BACKEND=ON' '-DCMAKE_CXX_FLAGS:STRING=-pipe ' '-DCMAKE_INSTALL_PREFIX=/home/hrvoje/kdelocal'
# from directory: /home/hrvoje/kdesrc/build/kdesupport/soprano
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.8.3
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found Rasqal: /usr/lib64/librasqal.so
-- Found Rasqal 0.9.29: libs - /usr/lib64/librasqal.so; includes - /usr/include/rasqal
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.25")
-- Found Raptor: /usr/lib64/libraptor2.so  (found version "2.0.8", required is "2.0.0")
-- Found Redland: /usr/bin/redland-config
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could not find Java JNI
-- Found iODBC 3.52.7: libs - /usr/lib64/libiodbc.so; includes - /usr/include
-- Performing Test __SOPRANO_HAVE_GCC_VISIBILITY
-- Performing Test __SOPRANO_HAVE_GCC_VISIBILITY - Success
-- Performing Test __SOPRANO_HAVE_GCC_INLINE_VISIBILITY
-- Performing Test __SOPRANO_HAVE_GCC_INLINE_VISIBILITY - Success
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1")
---------------------------------------------------------------------------------------
-- Soprano Components that will be built:
   * Redland storage backend
   * Virtuoso storage backend (Run-time dependency: Virtuoso)
   * Raptor RDF parser
     (including TriG parser)
   * Raptor RDF serializer
   * D-Bus server/client support

-- Soprano Components that will NOT be built:
   * Sesame2 storage backend (java-based)
   * The CLucene-based full-text search index library
---------------------------------------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hrvoje/kdesrc/build/kdesupport/soprano


For nepomuk-core:
Code: Select all
# kdesrc-build running: 'cmake' '/home/hrvoje/kdesrc/kde/kdelibs/nepomuk-core' '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_FLAGS:STRING=-pipe ' '-DCMAKE_INSTALL_PREFIX=/home/hrvoje/kdelocal'
# from directory: /home/hrvoje/kdesrc/build/kde/kdelibs/nepomuk-core
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.8.3 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /home/hrvoje/kdelocal/bin/automoc4
-- Found Perl: /usr/bin/perl (found version "5.16.0")
-- Found Phonon: /home/hrvoje/kdelocal/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.10 include dir: /home/hrvoje/kdelocal/include
-- Found KDE 4.10 library dir: /home/hrvoje/kdelocal/lib
-- Found the KDE4 kconfig_compiler preprocessor: /home/hrvoje/kdelocal/bin/kconfig_compiler
-- Found automoc4: /home/hrvoje/kdelocal/bin/automoc4
-- Found SharedDesktopOntologies: /home/hrvoje/kdelocal/share/ontology  (found version "0.10.51", required is "0.10")
-- Found Soprano: /home/hrvoje/kdelocal/include  (found version "2.8.50", required is "2.7.56")
-- Found Strigi: /home/hrvoje/kdelocal/lib/libstreams.so
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1")
-- Performing Test STRIGI_HAS_VERSION_HEADER
-- Performing Test STRIGI_HAS_VERSION_HEADER - Failed
-- Performing Test STRIGI_HAS_FILEINPUTSTREAM_OPEN
-- Performing Test STRIGI_HAS_FILEINPUTSTREAM_OPEN - Success

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * Soprano - Soprano is the Qt-based RDF storage and parsing solution
   * Soprano Virtuoso Backend - Virtuoso storage backend for Soprano
   * Soprano Raptor Parser - RDF parser plugin for Soprano
   * Soprano Redland Backend - Redland storage backend for Soprano
   * Shared desktop ontologies - Desktop ontologies
   * Strigi - Strigi is a fast and light-weight file indexing solution

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /home/hrvoje/kdesrc/build/kde/kdelibs/nepomuk-core


Any idea what could be wrong?
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS
I 'almost solved' my issue, by compiling virtuoso into same prefix as KDE built with kdesrc-build.
Why almost? Cause now i got nepomuk up & running, but on every KDE start, there are two virtuoso processes :o

That shouldn't be, right?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You should only get one Virtuoso instance - unless you end up with two nepomukserver instances somehow.
In regards to this issue - are you running on 64 bit? If you are, you may need to pass the -DLIB_SUFFIX=64 option to cmake (see the cmake-options part of your kdesrc-buildrc file if you use kdesrc-build) in order for Soprano/Nepomuk to find the Virtuoso connector (as it uses iODBC to connect).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS
compiled virtuoso to same prefix as KDE, with configure flags same as suse's and the issue is gone ;)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Marked as Solved - good to hear.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient