When a gem fails, where do I find the mkmf.log file?

后端 未结 3 1020
谎友^
谎友^ 2021-01-30 10:17

Can\'t find the \'libpq-fe.h header

** extconf.rb failed **

Could not create Makefile due to some reason, probably lack of necessary libraries and/or

3条回答
  •  遇见更好的自我
    2021-01-30 10:42

    Windows solution

    As @givanse said, the mkmf logs are in the gem installation directory. Because that can be complicated, you should just search for the mkmf file. You can do that in Windows explorer or in PowerShell

    cd C:\Dev\Ruby22 # Change to reflect your Ruby install dir
    Get-ChildItem mkmf* -Recurse
    

提交回复
热议问题