trouble in installation: version of gfortran

Hello,

I apologize for a possibly stupid question.

After a while being unable to work seriously on KIM, I am trying
to install the latest version of KIM API package, but it fails
due to the version of gfortran installed on my machine (now 4.4.7).
The installer says version 4.7.0 or higher is needed, but is there
any way to get around this problem? To install 4.7.0 or higher I
need to update the entire linux system (currently CentOS6), which
is demanding...

Yoshi

Hello,

I apologize for a possibly stupid question.

Not at all a stupid question. I'm sure others will have the same question.

After a while being unable to work seriously on KIM, I am trying
to install the latest version of KIM API package, but it fails
due to the version of gfortran installed on my machine (now 4.4.7).
The installer says version 4.7.0 or higher is needed, but is there
any way to get around this problem? To install 4.7.0 or higher I
need to update the entire linux system (currently CentOS6), which
is demanding...

If you want to disable the KIM API build checks on the gfortran version number, then you can comment out lines 41--49 in the file build_system/Makefile.SanityCheck

However, the latest KIM API has not been tested with these compilers. In the past, we have experienced some trouble with the older compilers and you may find that it doesn't work or works incorrectly.

Alternatively, you may be able to download and build gcc version 4.8 from source, instead of using the CentOS package manager. This is typically not a difficult task, but it can take up to a few hours on some machines to compile.

Keep us updated on your progress and we'll try to help as much as we can.

Cheers,

Ryan

Hello Ryan,

thanks for your kind advice. I appreciate the tip to negate the version check
but I'll try to renew gcc.

BTW, while searching a way to get new gcc I found the following temporary
solution (?) that should work for CentOS6:

cd /etc/yum.repos.d
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc
devtoolset-1.1-gcc-c++ devtoolset-1.1-gcc-gfortran

just in case there is anybody who has a trouble like me..

Best,
Yoshi

----- 元のメッセージ -----

Dear Yoshi,

I'm glad I could be of help. Thanks for the link; I'm sure it will be of help to others.

Cheers,

RYan