我將rvm升級到1.15.8,然後在zsh中出現問題後回到1.15.7。降級後,我的Ruby 1.9+版本恢復正常,但1.8.7不會再次安裝。rvm無法在Mac OS X上安裝1.8.7-p352 Mountain Lion
有正在發生的兩個錯誤:
Error running 'patch -F 25 -p1 -N -f <"/Users/me/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch"', please read /Users/me/.rvm/log/ruby-1.8.7-p352/patch.apply.stdout-rouge-fix.log
該文件的內容是:
[2012-09-11 01:05:59] patch -F 25 -p1 -N -f <"/Users/me/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch"
patching file lib/mkmf.rb
Hunk #1 FAILED at 201.
1 out of 1 hunk FAILED -- saving rejects to file lib/mkmf.rb.rej
和:
Error running 'make ', please read /Users/me/.rvm/log/ruby-1.8.7-p352/make.log
出現了,同時運行的信息有誤。停止安裝。
和文件的內容(有錯誤開始只有前幾行):
Fail to find [tclConfig.sh, tkConfig.sh]
Use MacOS X Frameworks.
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
gcc-4.2 -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=\"2011-06-30\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -fno-common -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/tk.h:552: error: expected declaration specifiers or ‘...’ before ‘XEvent’
/usr/include/tk.h:561: error: expected specifier-qualifier-list before ‘Tk_ClassCreateProc’
/usr/include/tk.h:655: error: expected specifier-qualifier-list before ‘Bool’
/usr/include/tk.h:677: error: expected specifier-qualifier-list before ‘Bool’
/usr/include/tk.h:756: error: expected specifier-qualifier-list before ‘Display’
/usr/include/tk.h:902: error: expected declaration specifiers or ‘...’ before ‘XPoint’
/usr/include/tk.h:996: error: expected declaration specifiers or ‘...’ before ‘Display’
一個支持我的應用程序是1.8.7。我死在水中。這看起來可能是山獅VS rvm的問題。任何人都可以將我指向正確的方向嗎?
UPDATE:
我得到了這樣做的第一個錯誤「重裝」,而不只是「安裝」。儘管1.8.7-p352不在命令「rvm list rubies」給出的紅寶石列表中。
你應該發佈http://serverfault.com/或http://superuser.com/ – maxdec
@Double我回答了大多數RVM的問題 - 其中大部分都發布在這裏 - 將它們發佈到別處大多數可能會有更長的時間獲得答案。 – mpapis