Error while installing FEniCS from source

Hello,

I am trying to install FeniCS from source (following this link https://fenics.readthedocs.io/en/latest/installation.html#from-source)

When I do:

from dolfin import *

I get the following error:

Traceback (most recent call last):
File “”, line 1, in
File “~/Builds/lib/python3.7/site-packages/dolfin/init.py”, line 34, in
from .cpp import version
ImportError: ~/Builds/lib64/libdolfin.so.2019.1: undefined symbol: _ZNK5boost15program_options22error_with_option_name23substitute_placeholdersERKSs

Then I did (following this link https://answers.launchpad.net/dolfin/+question/218687):

echo _ZNK5boost15program_options22error_with_option_name23substitute_placeholdersERKSs|c++filt

which produces the following error:

boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char, std::char_traits, std::allocator > const&) const

The file libboost_program_options.so is in ~/Builds/lib.

I have installed boost_1.75.0.