Mountain Lion rvm install 1.8.7 x11 error

后端 未结 5 852
醉梦人生
醉梦人生 2020-12-02 04:55

After update to Mountain Lion, I tried install 1.8.7, and I got error. X11 file not found, I installed Xquarkz, but nothing changed. Whats wrong?

Fail to fi         


        
5条回答
  •  渐次进展
    2020-12-02 05:42

    Even after the X11 fix I was getting this compile error.

    compiling stubs.c
    In file included from stubs.c:16:
    /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
    make[2]: *** [stubs.o] Error 1
    make[1]: *** [ext/tk/all] Error 2
    make: *** [build-ext] Error 2
    

    After much head scratching I noticed this line in the make output.

    Use ActiveTcl libraries (if available).
    

    Turns out I had ActiveTcl 8.4 installed installed years ago, but it was picking up tk.h from /usr/include which is version 8.5.

    I couldn't figure out how to safely uninstall ActiveTcl and the ActiveTcl uninstall instructions weren't correct, but I did install ActiveTcl 8.5 and that worked around the issue. ActiveTcl Download here.

    Frustrating. Anyway hope this helps someone else.

提交回复
热议问题