build stopped because of error...

Asked by Weimin Song

Dear all,

When I installed escript, error happened that:

scons -j1 options_file=scons/templates/centos7_0_options.py

scons: Reading SConscript files ...
Using options in scons/templates/centos7_0_options.py.
sh: 1: svnversion: not found
Checking whether the C++ compiler works... yes
Checking for C++ function gethostname()... yes
Checking for C++ header file byteswap.h... yes
Checking for C++ function SCbswap32()... yes
Checking for C++ header file sys/endian.h... no
Checking for C++ header file libkern/OSByteOrder.h... no
Checking for C++ header file Python.h... yes
Checking for C++ function Py_Exit()... yes
Checking for C++ library boost_python-mt... no
RuntimeError: Unable to link against ['boost_python-mt'] (paths: /usr/include, /usr/lib):
  File "/home/vigoss/Downloads/escript/SConstruct", line 503:
    env=checkBoost(env)
  File "/home/vigoss/Downloads/escript/site_scons/dependencies.py", line 175:
    boost_inc_path,boost_lib_path=findLibWithHeader(env, env['boost_libs'], 'boost/python.hpp', env['boost_prefix'], lang='c++')
  File "/home/vigoss/Downloads/escript/site_scons/site_init.py", line 75:
    raise RuntimeError('Unable to link against %s (paths: %s, %s)'%(libs,inc_path,lib_path))

What's wrong with it? How to solve the problem?

Best !
Weimin Song

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Joel Fenwick
Solved:
Last query:
Last reply:
Revision history for this message
Best Joel Fenwick (j-fenwick1) said :
#1

It looks like you do not have boost python installed. (or the options file does not match the version you do have).

If you do have it installed, please let us know which version of centos you are running.

Revision history for this message
Weimin Song (wsong8) said :
#2

The python version is 2.7.11+, it is pre-installed in Ubuntu 16.04.

Revision history for this message
Joel Fenwick (j-fenwick1) said :
#3

Section 3.3.2 of the install guide talks about the packages you need to install in Ubuntu.
It requires you to choose an options file, try the vivid_options.py and see how that goes.

Revision history for this message
Weimin Song (wsong8) said :
#4

Thanks Joel Fenwick, that solved my question.