[QE-users] issue installing qe-6.4.1 in Mac OS, "/lib/cpp fails sanity check"

Seyed Mohammad Farzaneh smf552 at nyu.edu
Fri Aug 30 19:33:49 CEST 2019


Greetings,

I had the same problem with the configure. I was able to resolve the issue
by changing the PATH variable.
I guess, there are two paths for gcc and cpp on your mac machine:
usr/local/bin/ and usr/bin/
If you put the usr/bin/ upfront in the PATH variable the error will
hopefully go away.
You can do this by adding the following at the end of your .bash_profile:
export PATH=/usr/bin:$PATH

Best,
SMF


On Sat, Jun 29, 2019 at 2:54 AM Paolo Giannozzi <p.giannozzi at gmail.com>
wrote:

> It looks like a problem of your Mac software, not of QE itself
>
> Paolo
>
> On Fri, Jun 28, 2019 at 11:22 PM Schneeloch, John August (jas9db) <
> jas9db at virginia.edu> wrote:
>
>> I'm trying to install Quantum Espresso 6.4.1 on macOS 10.14.5. I
>> extracted the .tar.gz file, entered the directory, and did "./configure".
>> The output is here: https://pastebin.com/7qda5UNV
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__pastebin.com_7qda5UNV&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=6o_aRsTxtVOWjgqdq11R-FUYX7SI7xxYdg-Yj5sZzb4&e=>.
>> Config.log is here: https://pastebin.com/n6buGMkB
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__pastebin.com_n6buGMkB&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=nMgzdFQFuOZB72f4C9QN9cwTV33OaDrVOlvsKohfWXQ&e=>.
>> The output ends with a line saying
>>
>> "configure: error: C preprocessor "/lib/cpp" fails sanity check"
>>
>> However, I have cpp installed at /usr/local/bin/cpp. How do I fix this
>> issue?
>>
>> John Schneeloch
>> University of Virginia
>>
>> _______________________________________________
>> Quantum ESPRESSO is supported by MaX (www.max-centre.eu/quantum-espresso
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.max-2Dcentre.eu_quantum-2Despresso&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=o3LwaP0JZQ9s6_L6CU4GDYaC2n5TG2bOX8nuFXSMBus&e=>
>> )
>> users mailing list users at lists.quantum-espresso.org
>> https://lists.quantum-espresso.org/mailman/listinfo/users
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.quantum-2Despresso.org_mailman_listinfo_users&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=Bu2cArIt3YvU6QzWmO0VciRWoF17Xp2bKV4P8BS7dow&e=>
>
>
>
> --
> Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,
> Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
> Phone +39-0432-558216, fax +39-0432-558222
>
> _______________________________________________
> Quantum ESPRESSO is supported by MaX (
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.max-2Dcentre.eu_quantum-2Despresso&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=o3LwaP0JZQ9s6_L6CU4GDYaC2n5TG2bOX8nuFXSMBus&e=
> )
> users mailing list users at lists.quantum-espresso.org
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.quantum-2Despresso.org_mailman_listinfo_users&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=zntZ02qV1lU7lWqWBWqDyQ&m=BQtTv6zn9efaEcfjh_u98a3-Ag6gJzMiJFEbnIoau74&s=Bu2cArIt3YvU6QzWmO0VciRWoF17Xp2bKV4P8BS7dow&e=



-- 
*S. M. Farzaneh*
Graduate Student
ECE Department
New York University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20190830/55b82fcf/attachment.html>


More information about the users mailing list