LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2008, 04:39 AM   #1
analgesic
LQ Newbie
 
Registered: Mar 2008
Location: Toronto
Distribution: Debian
Posts: 9

Rep: Reputation: 0
KDE4 Install: Can't Find [Installed] Soprano


So I'm a virgin, running Slackware, and looking to install KDE 4.0.3 to play with the new toys. When attempting to install kdelibs, however, I get the following error messages:

Quote:
-- Could not find Soprano includes.
-- Could not find Soprano library.
I already installed Soprano, and a quick search confirms that I seem to have what cmake is looking for, but perhaps they're not quite where they're supposed to be?

In usr/lib/include/ I have both "Soprano" and "soprano" folders, and there are various libsoprano files in usr/lib/lib/ and usr/lib/lib/soprano.

The cmake folder in kdelibs has a file called FindSoprano.cmake, but I don't know enough to understand where exactly cmake is looking for Soprano. The full text of the file:
Code:
#if(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)

  # read from cache
#  set(Soprano_FOUND TRUE)
#  set(SopranoServer_FOUND TRUE)
#  set(SopranoClient_FOUND TRUE)
#  set(SopranoIndex_FOUND TRUE)

#else(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)
  INCLUDE(FindLibraryWithDebug)

  FIND_PATH(SOPRANO_INCLUDE_DIR 
    NAMES
    soprano/soprano.h
    PATHS
    ${KDE4_INCLUDE_DIR}
    ${INCLUDE_INSTALL_DIR}
    )

  FIND_LIBRARY_WITH_DEBUG(SOPRANO_INDEX_LIBRARIES 
    WIN32_DEBUG_POSTFIX d
    NAMES
    sopranoindex
    PATHS
    ${KDE4_LIB_DIR}
    ${LIB_INSTALL_DIR}
    )

  FIND_LIBRARY_WITH_DEBUG(SOPRANO_CLIENT_LIBRARIES 
    WIN32_DEBUG_POSTFIX d
    NAMES
    sopranoclient
    PATHS
    ${KDE4_LIB_DIR}
    ${LIB_INSTALL_DIR}
    )

  FIND_LIBRARY_WITH_DEBUG(SOPRANO_LIBRARIES
    WIN32_DEBUG_POSTFIX d
    NAMES soprano
    PATHS
    ${KDE4_LIB_DIR}
    ${LIB_INSTALL_DIR}
  )

  FIND_LIBRARY_WITH_DEBUG(SOPRANO_SERVER_LIBRARIES 
    WIN32_DEBUG_POSTFIX d
    NAMES
    sopranoserver
    PATHS
    ${KDE4_LIB_DIR}
    ${LIB_INSTALL_DIR}
    )

  # check for all the libs as required to make sure that we do not try to compile with an old version
  # FIXME: introduce a Soprano version check

  if(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES)
    set(Soprano_FOUND TRUE)
  endif(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES)

  if(Soprano_FOUND AND SOPRANO_INDEX_LIBRARIES)
    set(SopranoIndex_FOUND TRUE)
  endif(Soprano_FOUND AND SOPRANO_INDEX_LIBRARIES)

  if(Soprano_FOUND AND SOPRANO_CLIENT_LIBRARIES)
    set(SopranoClient_FOUND TRUE)
  endif(Soprano_FOUND AND SOPRANO_CLIENT_LIBRARIES)

  if(Soprano_FOUND AND SOPRANO_SERVER_LIBRARIES)
    set(SopranoServer_FOUND TRUE)
  endif(Soprano_FOUND AND SOPRANO_SERVER_LIBRARIES)
  
  # check Soprano version
  if(Soprano_FOUND)
    FILE(READ ${SOPRANO_INCLUDE_DIR}/soprano/version.h SOPRANO_VERSION_CONTENT)
    STRING(REGEX MATCH "SOPRANO_VERSION_STRING \".*\"\n" SOPRANO_VERSION_MATCH ${SOPRANO_VERSION_CONTENT})
    IF (SOPRANO_VERSION_MATCH)
      STRING(REGEX REPLACE "SOPRANO_VERSION_STRING \"(.*)\"\n" "\\1" SOPRANO_VERSION ${SOPRANO_VERSION_MATCH})
      if(SOPRANO_VERSION STRLESS "1.99")
        set(Soprano_FOUND FALSE)
        message(FATAL_ERROR "Soprano version ${SOPRANO_VERSION} is too old. Please install 1.99 or newer")
      endif(SOPRANO_VERSION STRLESS "1.99")
    ENDIF (SOPRANO_VERSION_MATCH)
  endif(Soprano_FOUND)
  
  if(Soprano_FOUND)
    if(NOT Soprano_FIND_QUIETLY)
      message(STATUS "Found Soprano: ${SOPRANO_LIBRARIES}")
      message(STATUS "Found Soprano includes: ${SOPRANO_INCLUDE_DIR}")
      message(STATUS "Found Soprano Index: ${SOPRANO_INDEX_LIBRARIES}")
      message(STATUS "Found Soprano Client: ${SOPRANO_CLIENT_LIBRARIES}")
    endif(NOT Soprano_FIND_QUIETLY)
  else(Soprano_FOUND)
    if(Soprano_FIND_REQUIRED)
      if(NOT SOPRANO_INCLUDE_DIR)
	message(FATAL_ERROR "Could not find Soprano includes.")
      endif(NOT SOPRANO_INCLUDE_DIR)
      if(NOT SOPRANO_LIBRARIES)
	message(FATAL_ERROR "Could not find Soprano library.")
      endif(NOT SOPRANO_LIBRARIES)
    else(Soprano_FIND_REQUIRED)
      if(NOT SOPRANO_INCLUDE_DIR)
        message(STATUS "Could not find Soprano includes.")
      endif(NOT SOPRANO_INCLUDE_DIR)
      if(NOT SOPRANO_LIBRARIES)
        message(STATUS "Could not find Soprano library.")
      endif(NOT SOPRANO_LIBRARIES)
    endif(Soprano_FIND_REQUIRED)
  endif(Soprano_FOUND)

mark_as_advanced(SOPRANO_CLIENT_LIBRARIES SOPRANO_INDEX_LIBRARIES SOPRANO_LIBRARIES SOPRANO_SERVER_LIBRARIES SOPRANO_INCLUDE_DIR )

#endif(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)
Can anyone suggest how I might go about fixing this?
 
Old 04-24-2008, 02:11 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
I think that cmake is looking for the soprano headers. Have you installed the soprano development package?

-----------------------
Steve Stites
 
Old 04-24-2008, 04:56 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
usr/lib/include/....usr/lib/lib/soprano....Looks wrong.
You probably installed something which began in this way:
./configure --prefix=/usr/lib ....must be =/usr
to have headers in /usr/include, etc.
unless you are going to make a new set of path's.

(Slackware do not have -devel packages, all is included in one package)

Last edited by knudfl; 04-24-2008 at 05:00 PM. Reason: added 1 line
 
Old 04-25-2008, 01:45 AM   #4
analgesic
LQ Newbie
 
Registered: Mar 2008
Location: Toronto
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
usr/lib/include/....usr/lib/lib/soprano....Looks wrong.
You probably installed something which began in this way:
./configure --prefix=/usr/lib ....must be =/usr
to have headers in /usr/include, etc.
unless you are going to make a new set of path's.

(Slackware do not have -devel packages, all is included in one package)
I suspected something the like. So then, is my solution to reinstall, or can I simply move the folders?
 
Old 04-25-2008, 04:59 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
I hope you didn't compile everything to /usr/lib/
Binaries in /usr/lib/bin cannot be moved, if any. Recompile all.
Scripts in /usr/lib/bin : edit to move.
Scripts in /usr/lib/lib/pkgconfig : edit to move.
Libs .la in /usr/lib/lib/ : edit to move.
Stuff in /usr/lib/etc, if any, I don't know.
Files in /usr/lib/share :impossible to know.
Then ....../man and doc possibly movable.
/usr/lib/include can be moved and /usr/lib/lib, folders and libsxxx.so files
can be moved. Quite a puzzle, but you will come to know your files.
Else: recompile all with the wrong prefix. If you re-use build-dir's
do: 'make clean' and 'make distclean'
Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to install KDE4 in slackware 12 gopi.d Slackware 21 08-06-2009 03:52 AM
Install KDE4 in Debian/GNOME? 449 Linux - Newbie 1 02-01-2008 06:31 AM
LXer: More About Nepomuk-KDE: Soprano and KDE Integration LXer Syndicated Linux News 0 06-19-2007 03:16 PM
How to find if package is installed Redbone981sl Ubuntu 4 01-23-2007 07:03 PM
install can't find installed rpms vijayind Linux - Newbie 1 12-12-2004 05:32 AM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration