Build Error: dolfin can't find Sphinx

Asked by Ronnie Wallace

OS: Scientific Linux 6.3 (RHEL clone like CentOS), Arch x86_64.

I have installed the python-sphinx10 (release 1.0.8) rpm as the version available as the rpm python-sphinx is release 0.6.6
and dolphin wants release 1.0.7 or later.

 http://pkgs.org/centos-6-rhel-6/epel-i386/python-sphinx10-1.0.8-1.el6.noarch.rpm.html

However on using dorsal to build dolfin it exits saying it can't find Sphinx.

###
-- Checking for package 'Sphinx'
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE SPHINX_VERSION_OK) (Required is at least version "1.0.7")
--
-- The following optional packages were found:
-- -------------------------------------------
-- (OK) OPENMP
-- (OK) MPI
-- (OK) TRILINOS
-- (OK) UMFPACK
-- (OK) CHOLMOD
-- (OK) SCOTCH
-- (OK) CGAL
-- (OK) ZLIB
-- (OK) PYTHON
--
-- The following optional packages could not be found:
-- ---------------------------------------------------
-- (**) PETSC
-- (**) SLEPC
-- (**) MTL4
-- (**) PARMETIS
-- (**) SPHINX
--
CMake Warning at CMakeLists.txt:584 (message):
  Disabling generation of documentation because Sphinx is missing.

-- Configuring incomplete, errors occurred!
Failure with exit status: 1
Exit message: There was a problem configuring dolfin-1.0.0.
###

Question information

Language:
English Edit question
Status:
Answered
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

Sphinx is not required so that is not why it fails. There must be something else in the output (above what you have posted). The output should also be available in dorsal_configure.log in the DOLFIN source directory (by default in ~/Work/FEniCS/src/dolfin-1.0.0).

BTW, it is currently recommended (when using Dorsal) to build the development version of the FEniCS packages instead of the 1.0.0 packages. You can do that by setting STABLE_BUILD=false in dorsal.cfg (or local.cfg). Also make sure to use the development version of Dorsal (bzr branch lp:dorsal).

Revision history for this message
Ronnie Wallace (r-wallace) said :
#2

Yes, you are right. sorry, the sphinx error at the bottom put me on the wrong scent.

Problem seems to be with the boost library.
I've installed the boost-math rpm but that just seems to be an empty rpm.

I see there was a similar error with fedora in the ticket
https://answers.launchpad.net/dorsal/+question/179760
and from the comments in that ticket saw that dorsal now builds the boost library for fedora.

I've just tried the development packages build and hit the same boost_math_tr1 error
with the rhel6 build.

However by adding boost to the top of the list of packages in the rhel6.platform file
and setting the environment variable BOOST_DIR to the FEniCS install directory I've
managed to get dolfin to compile.

###
CMake Error at /import/packages/FEniCS/share/cmake-2.8/Modules/FindBoost.cmake:1135 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.41.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_math_tr1

  Some (but not all) of the required Boost libraries were found. You may
  need to install these additional Boost libraries. Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.

Can you help with this problem?

Provide an answer of your own, or ask Ronnie Wallace for more information if necessary.

To post a message you must log in.