0
- 乾淨的山獅安裝
- 從App Store
- 安裝的XCode 4.5安裝命令行工具
- 安裝家釀
- 釀造醫生也很高興
- 安裝RVM
- RVM安裝1.9.3
- 安裝程序要求更多的啤酒,安裝以下軟件:
- 蘋果gcc42
- autoconf的
- automake的
- libksba
- 安裝程序要求更多的啤酒,安裝以下軟件:
安裝完成後,一切看起來都不錯.. 。無法加載寶石原生擴展:新鮮10.8時,Xcode 4.5,RVM
maximus:~$ gem install json
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/Users/mmoser/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
generator.c:369: warning: unused parameter ‘self’
generator.c:423: warning: unused parameter ‘self’
generator.c:759: warning: unused parameter ‘Vstate’
generator.c:773: warning: unused parameter ‘Vstate’
generator.c:773: warning: unused parameter ‘state’
generator.c:773: warning: unused parameter ‘obj’
generator.c:778: warning: unused parameter ‘Vstate’
generator.c:778: warning: unused parameter ‘state’
generator.c:778: warning: unused parameter ‘obj’
generator.c:783: warning: unused parameter ‘Vstate’
generator.c:783: warning: unused parameter ‘state’
generator.c:783: warning: unused parameter ‘obj’
generator.c:788: warning: unused parameter ‘Vstate’
generator.c:788: warning: unused parameter ‘state’
generator.c:793: warning: unused parameter ‘Vstate’
generator.c:793: warning: unused parameter ‘state’
generator.c:799: warning: unused parameter ‘Vstate’
linking shared-object json/ext/generator.bundle
make install
/Users/mmoser/.rvm/scripts/install -c -m 0755 generator.bundle /Users/mmoser/.rvm/gems/ruby-1.9.3-p362/gems/json-1.7.6/lib/json/ext
/Users/mmoser/.rvm/scripts/install: line 33: /Users/mmoser/.rvm/gems/ruby-1.9.3-p362/gems/json-1.7.6/ext/json/ext/generator/scripts/functions/installer: No such file or directory
/Users/mmoser/.rvm/scripts/install: line 39: install_setup: command not found
Unrecognized option: -c
/Users/mmoser/.rvm/scripts/install: line 84: install_usage: command not found
make: *** [/Users/mmoser/.rvm/gems/ruby-1.9.3-p362/gems/json-1.7.6/lib/json/ext/generator.bundle] Error 1
Gem files will remain installed in /Users/mmoser/.rvm/gems/ruby-1.9.3-p362/gems/json-1.7.6 for inspection.
Results logged to /Users/mmoser/.rvm/gems/ruby-1.9.3-p362/gems/json-1.7.6/ext/json/ext/generator/gem_make.out
我拉我的頭髮。任何人都可以解釋嗎?
更多信息:
的Xcode
maximus:~$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
maximus:~$ la /Applications/Xcode.app/Contents/Developer/usr/bin/gcc* && la /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc*
lrwxr-xr-x 1 root wheel 12B Dec 24 19:22 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 32B Dec 24 19:22 /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 32B Dec 24 19:22 /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
在/ usr/bin中
maximus:~$ la /usr/bin/gcc* && la /usr/bin/llvm-gcc*
lrwxr-xr-x 1 root wheel 12B Jan 11 19:23 /usr/bin/gcc -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 12B Jan 11 19:23 /usr/bin/gcc-4.2 -> llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 32B Dec 25 08:24 /usr/bin/llvm-gcc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
lrwxr-xr-x 1 root wheel 32B Jan 11 19:19 /usr/bin/llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
在/ usr/local/bin目錄
maximus:~$ la /usr/local/bin/gcc* && la /usr/local/bin/llvm-gcc*
lrwxr-xr-x 1 mmoser admin 46B Jan 11 21:14 /usr/local/bin/gcc-4.2 -> ../Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
ls: /usr/local/bin/llvm-gcc*: No such file or directory
版本
maximus:~$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
maximus:~$ gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.bash_profile中含有(這就是把在$ HOME/.rvm/*路徑?)
# Load RVM
if [ -f $HOME/.rvm/scripts/rvm ]; then
source $HOME/.rvm/scripts/rvm
fi
電流echo $ PATH
/Users/mmoser/.rvm/gems/ruby-1.9.3-p362/bin
/Users/mmoser/.rvm/gems/[email protected]/bin
/Users/mmoser/.rvm/rubies/ruby-1.9.3-p362/bin
/Users/mmoser/.rvm/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/Users/mmoser
/Users/mmoser/scripts
我別名從我的Dropbox帳戶我點文件,這條道路是 一個來自別人的殘餘。謝謝你讓我信服 清理我的PATH declorations,這是非常需要的;)唉,我的 問題依然存在。 (當前路徑加入問題) – mmoser
增加更多信息 – mpapis
BAM!就是這樣,真棒醬。非常感謝。 – mmoser