Page 1 of 1

Compiling error

Posted: Wed Jan 06, 2016 7:09 pm
by henry
Intel(R) Celeron(R) CPU N2840 @ 2.16 GHz
64-bit Operating System, x64-based processor
Compiling in serial
yambo-4.0.2-rev.90

Hello sir,

I am trying to install yambo on fedora desktop operating system. The configure script runs well. However, compilation does not go to completion. Instead, I get the following error message in the last few lines:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/henryodhiambo/Applications/yambo-4.0.2-rev.90/lib/netcdf/netcdf-y4.1.3':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Makefile:35: recipe for target 'configure-stamp' failed
make[1]: *** [configure-stamp] Error 1
make[1]: Leaving directory '/home/henryodhiambo/Applications/yambo-4.0.2-rev.90/lib/netcdf'
Makefile:89: recipe for target 'libs' failed
make: *** [libs] Error 2

What could be the problem? Thank you.

Regards,
Henry Odhiambo
Department of Physics and Materials Science
Maseno University
Kenya

Re: Compiling error

Posted: Thu Jan 07, 2016 8:59 am
by myrta gruning
Dear Henry

From what you posted the problem seems in the configure.
Can you upload the config.log so that we can see more precisely what is the problem?

Best,
Myrta

Re: Compiling error

Posted: Thu Jan 07, 2016 10:11 am
by henry
Dear Myrta,

Attached is the config.log file

I hope to hear from you. Thank you.

Henry Odhiambo
Department of Physics and Materials Science
Maseno University
Kenya

Re: Compiling error

Posted: Fri Jan 08, 2016 9:15 am
by myrta gruning
dear Henry

The configure process of Yambo was indeed successful. The configure that failed is probably that of the extra libraries needed by Yambo, possibly NETCDF.
For what I can see it seems related to missing C++ compiler. You can try to install it (using e.g. yum) and then try to compile yambo again.

Hope this helps,
Myrta

Re: Compiling error

Posted: Sat Jan 09, 2016 9:53 am
by henry
Hello,

yum install gcc-c++

It worked. Thank you.

Henry Odhiambo
Dept of Physics and Materials science
Maseno University
Kenya