← Back to team overview

dolfin team mailing list archive

Re: Problem installing dolfin

 

Johannes Ring wrote:
On Mon, March 31, 2008 Solveig Bruvoll wrote:
Johannes Ring wrote:
On Mon, March 31, 2008 Solveig Bruvoll wrote:

"scons install" does not seem to work. I get the following output:

[root@math-dhcp012 dolfin]# scons install
scons: Reading SConscript files ...
Unable to find any valid C++ compiler.
Checking for numpy-1... yes
Checking for scotch... no (pkg-config file not found)
Trying to generate pkg-config file for scotch... failed
*** Unable to generate a suitable pkg-config file for scotch.
*** If scotch is present on your system, try setting the SCOTCH_DIR
*** environment variable to the directory where scotch is installed.
Checking for ufc-1... yes
Checking for umfpack... no (pkg-config file not found)
Trying to generate pkg-config file for umfpack... failed
*** Unable to generate a suitable pkg-config file for umfpack.
*** If umfpack is present on your system, try setting the UMFPACK_DIR
*** environment variable to the directory where umfpack is installed.
Checking for python-2... yes
Checking for petsc... no (pkg-config file not found)
Trying to generate pkg-config file for petsc... failed
*** Unable to generate a suitable pkg-config file for petsc.
*** If petsc is present on your system, try setting the PETSC_DIR
*** environment variable to the directory where petsc is installed.
Checking for gts... no (pkg-config file not found)
Trying to generate pkg-config file for gts... failed
*** Unable to generate a suitable pkg-config file for gts.
*** If gts is present on your system, try setting the GTS_DIR
*** environment variable to the directory where gts is installed.
Checking for boost... yes
Checking for slepc... no (pkg-config file not found)
Trying to generate pkg-config file for slepc... failed
*** Unable to generate a suitable pkg-config file for slepc.
*** If slepc is present on your system, try setting the SLEPC_DIR
*** environment variable to the directory where slepc is installed.
Checking for libxml-2.0... yes
Warning: Unknown dependency package: ufc-1
NameError: name 'modEnv' is not defined:
File "/home/solveio/dolfin/SConstruct", line 176:
 buildDataHash = env.SConscript(os.path.join(env["projectname"],
"SConscript"), exports=["env", "configure"])
File "/usr/lib/scons/SCons/Script/SConscript.py", line 520:
 return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 245:
 exec _file_ in call_stack[-1].globals
File "/home/solveio/dolfin/dolfin/SConscript", line 276:
 replacements['PACKAGE_CXXFLAGS'] = modEnv["CXXFLAGS"]

Any ideas on how to fix this?

It seems that it doesn't find any C++ compilers to use. Currently it
looks
for one of the following: mpic++, mpicxx, c++, or g++. Which compiler
are
you using?


I am using g++.

Strange. It says that it is unable to find any valid C++ compiler. Perhaps
g++ is not in PATH? What does 'which g++' give you?

Anyway, I have done some changes in the build scripts that maybe fixes
things. At least you should get a different error message now. Can you do
a hg pull/up and try again?

Johannes





[root@math-dhcp012 dolfin]# which c++
/usr/bin/c++
[root@math-dhcp012 dolfin]# which g++
/usr/bin/g++

It seems to choose c++. The new output:

[root@math-dhcp012 dolfin]# scons
scons: Reading SConscript files ...
Checking for numpy-1... yes
Checking for scotch... no (pkg-config file not found)
Trying to generate pkg-config file for scotch... failed
*** Unable to generate a suitable pkg-config file for scotch.
*** If scotch is present on your system, try setting the SCOTCH_DIR
*** environment variable to the directory where scotch is installed.
Checking for ufc-1... yes
Checking for umfpack... no (pkg-config file not found)
Trying to generate pkg-config file for umfpack... failed
*** Unable to generate a suitable pkg-config file for umfpack.
*** If umfpack is present on your system, try setting the UMFPACK_DIR
*** environment variable to the directory where umfpack is installed.
Checking for python-2... yes
Checking for petsc... no (pkg-config file not found)
Trying to generate pkg-config file for petsc... failed
*** Unable to generate a suitable pkg-config file for petsc.
*** If petsc is present on your system, try setting the PETSC_DIR
*** environment variable to the directory where petsc is installed.
Checking for gts... no (pkg-config file not found)
Trying to generate pkg-config file for gts... failed
*** Unable to generate a suitable pkg-config file for gts.
*** If gts is present on your system, try setting the GTS_DIR
*** environment variable to the directory where gts is installed.
Checking for boost... yes
Checking for slepc... no (pkg-config file not found)
Trying to generate pkg-config file for slepc... failed
*** Unable to generate a suitable pkg-config file for slepc.
*** If slepc is present on your system, try setting the SLEPC_DIR
*** environment variable to the directory where slepc is installed.
Checking for libxml-2.0... yes
Unable to find optional package: petsc
Unable to find optional package: slepc
Unable to find optional package: scotch
Unable to find optional package: umfpack
Unable to find optional package: gts
Enabling compilation of PyDOLFIN
scons: done reading SConscript files.
scons: Building targets ...
c++ -o dolfin/main/SubSystemsManager.os -c -Wall -pipe -ansi -DDEBUG -g -Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.7.2\" -fPIC -I. -I/usr/include/libxml2 dolfin/main/SubSystemsManager.cpp dolfin/main/SubSystemsManager.cpp:18:17: error: mpi.h: No such file or directory dolfin/main/SubSystemsManager.cpp: In static member function ‘static void dolfin::SubSystemsManager::initMPI()’: dolfin/main/SubSystemsManager.cpp:54: error: ‘MPI_Init’ was not declared in this scope dolfin/main/SubSystemsManager.cpp: In static member function ‘static void dolfin::SubSystemsManager::finalizeMPI()’: dolfin/main/SubSystemsManager.cpp:121: error: ‘MPI_Finalize’ was not declared in this scope dolfin/main/SubSystemsManager.cpp: In static member function ‘static bool dolfin::SubSystemsManager::MPIinitialized()’: dolfin/main/SubSystemsManager.cpp:151: error: ‘MPI_Initialized’ was not declared in this scope
scons: *** [dolfin/main/SubSystemsManager.os] Error 1
scons: building terminated because of errors.


Solveig






Follow ups

References