2012-07-26 20 views
10

Ho avuto una nuova installazione di Mountain Lion e installato gli strumenti di riga di comando Xcode,. Sono stato in grado di ottenere homebrew in esecuzione e installato RVM. Sfortunatamente, RVM non è in grado di installare ree-1.8.7-head. Fallisce durante la compilazione. Ho pensato che fosse collegato a X11, quindi ho installato XQuartz. Ancora nessuna gioia. Poi sono andato avanti e ho installato l'intero Xcode dall'app store. Ancora nessuna gioia. Qualcuno ha ottenuto questo in una nuova installazione di Mountain Lion?Installare ree-1.8.7 con RVM su Mountain Lion

Dal fondo della .rvm/log/ree-1.8.7-testa/make.log:

Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. 
gcc -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-02-08\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -pipe -fno-common -c stubs.c 
In file included from stubs.c:10: 
/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory 
In file included from stubs.c:10: 
/usr/include/tk.h:549: error: expected declaration specifiers or ‘...’ before ‘Window’ 
/usr/include/tk.h:549: error: ‘Window’ declared as function returning a function 

. .

/usr/include/tkDecls.h:1240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute 

__’ before ‘Tk_GetBitmapFromObj’ 
/usr/include/tkDecls.h:1245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
/usr/include/tkDecls.h:1356: error: expected ‘)’ before ‘*’ token 
/usr/include/tkDecls.h:1362: error: expected ‘)’ before ‘*’ token 
/usr/include/tkDecls.h:1387: error: expected declaration specifiers or ‘...’ before ‘GC’ 
/usr/include/tkDecls.h:1399: error: expected declaration specifiers or ‘...’ before ‘GC’ 
/usr/include/tkDecls.h:1413: error: expected declaration specifiers or ‘...’ before ‘Pixmap’ 
/usr/include/tkDecls.h:1420: error: expected declaration specifiers or ‘...’ before ‘XColor’ 
/usr/include/tkDecls.h:1448: error: expected declaration specifiers or ‘...’ before ‘Pixmap’ 
/usr/include/tkDecls.h:1524: error: expected ‘)’ before ‘*’ token 
/usr/include/tkDecls.h:1621: error: expected declaration specifiers or ‘...’ before ‘Drawable’ 
/usr/include/tkDecls.h:1656: error: expected ‘)’ before ‘*’ token 
/usr/include/tkDecls.h:1661: error: expected ‘)’ before ‘*’ token 
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’ 
make[1]: *** [stubs.o] Error 1 
make: *** [all] Error 1 

risposta

16

provare

rvm reinstall 1.8.7 --without-tcl --without-tk 

ma ancora il problema potrebbe essere correlato a gcc-4.2 -> è richiesto per la risonanza magnetica rubino, ci sono alcuni successi con LLVM/clang, ma ancora non riesce con Fibers

+0

esiste un essere tter modo di istituire Mountain Lion? Sto pensando di ricominciare da capo domani. –

+0

Le opzioni --disable-tcl --disable-tk non sono ancora state completate, ma ho aggiunto altre informazioni dal registro make per vedere se questo fornisce degli indizi. –

+0

aggiornato la mia risposta – mpapis

0

Se non avete bisogno di tcl o tk e si utilizza rbenv, questo dovrebbe funzionare:

brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb 

CC=/usr/local/bin/gcc-4.2 CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p358 
Problemi correlati