/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directoryI found the answer to the problem here and an explanation here.
Resolving the problem is easy. Just follow these steps:
- Install xQuartz
- Tell the compiler to use the correct installation with: export CPPFLAGS=-I/opt/X11/include
- Then try to attempt to install again with rvm: rvm install 1.8.7-p358