When the stone fails, where can I find the mkmf.log file?

Cannot find libpq-fe.h header

** extconf.rb failed **

The Makefile could not be created for some reason, the necessary libraries and / or headers may have been missing. Check mkmf.log for more details.

Where can I find the mkmf.log file?

+70
rubygems
Dec 04 '13 at 15:26
source share
3 answers

The mkmf.log file can be found in the gem installation directory.

RVM

If you are using RVM then find a directory similar to

~ / .rvm / gemstones / ruby-1.9.3-P194 / gemstones / some cool gem name / int / mkmf.log

You can list all the mkmf.log files available with this command:

find ~/.rvm -name mkmf.log 

rbenv

 find ~/.rbenv -name mkmf.log 
+64
Dec 04 '13 at 15:44
source share
— -

Windows solution

According to @givanse, mkmf logs are in the gem installation directory. Since this can be tricky, you should just look for the mkmf file. You can do this in Windows Explorer or in PowerShell

 cd C:\Dev\Ruby22 # Change to reflect your Ruby install dir Get-ChildItem mkmf* -Recurse 
+1
Mar 08 '16 at 16:54
source share

On Ubuntu, you can also use the following command to search for a file:

 find / -name mkmf.log 
0
May 8 '17 at 16:33
source share



All Articles