ERROR: build stopped due to errors

Asked by Kun Zeng

Dear all,

When I installed escript on ubuntu 17.04, error happened that:

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

scons: Reading SConscript files ...
Using options in scons/kun_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 working complex std::acos()... yes
Checking for C++ header file Python.h... yes
Checking for C++ function Py_Exit()... yes
Checking for C++ library boost_python-py27... yes
Checking for C++ header file numpy/ndarrayobject.h... yes
Checking for C++ library netcdf_c++... no
RuntimeError: Unable to link against ['netcdf_c++', 'netcdf'] (paths: /usr/include, /usr/lib):
  File "/home/kun/escript/SConstruct", line 472:
    env=checkOptionalLibraries(env)
  File "/home/kun/escript/site_scons/dependencies.py", line 339:
    netcdf_inc_path,netcdf_lib_path=findLibWithHeader(env, env['netcdf_libs'], 'netcdf.h', env['netcdf_prefix'], lang='c++')
  File "/home/kun/escript/site_scons/site_init.py", line 77:
    raise RuntimeError('Unable to link against %s (paths: %s, %s)'%(libs,inc_path,lib_path))

what's wrong here? Thanks.

Regards,

Kun

Question information

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

Hi Kun,

You seem to be missing the netCDF C++ headers. Try installing the package:
 libnetcdf-cxx-legacy-dev
and try again.

Revision history for this message
Kun Zeng (zkbread) said :
#2

Thanks caltinay, that solved my question.