p4vasp icon indicating copy to clipboard operation
p4vasp copied to clipboard

Error while installing on Mac

Open vsumaria opened this issue 5 years ago • 3 comments

I followed the steps mentioned in the README.Macos for installing P4vasp on Macbook Pro (MacOS Mohave, v.10.14..3), but am having some issue.

I get the following error:

g++-7 -fpic -g -DPY_DOMEXC_MODULE=""xml.dom."" -Ipython -c "import sys;import os.path;print os.path.join(sys.prefix,\"include\",\"python\"+sys.version[:3])" -Iinclude -c string.cpp -o string.o /bin/sh: g++-7: command not found make[1]: *** [string.o] Error 127 make: *** [p4vasp] Error 2

I am unable to find a way to fix this error.

vsumaria avatar Feb 27 '19 06:02 vsumaria

Sorry for the delayed response.

Since the homebrew developers updated the gcc version to 8, you need to brew install gcc@7 for this to work.

Please see #12 for an updated MacOS compilation process.

Chengcheng-Xiao avatar Apr 08 '19 00:04 Chengcheng-Xiao