2011-10-01 64 views
0

這是我跑:無法使用RVM安裝Ruby或Rails:錯誤:運行configure時出錯。暫停安裝

rvm install ruby-1.9.2-p290 

我的Xcode 4安裝。而我運行OSX 10.6.7

以下是錯誤我得到

ruby-1.9.2-p290 - #configuring 
ERROR: Error running ' ./configure --prefix=/Users/jac/.rvm/rubies/ruby-1.9.2-p290 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jac/.rvm/usr ', please read /Users/jac/.rvm/log/ruby-1.9.2-p290/configure.log 
ERROR: There has been an error while running configure. Halting the installation. 

下面是日誌文件的最後部分

checking for working volatile... yes 
checking whether right shift preserve sign bit... yes 
checking read count field in FILE structures... _r 
checking read buffer ptr field in FILE structures... _p 
checking size of struct stat.st_ino... SIZEOF_LONG 
checking whether _SC_CLK_TCK is supported... yes 
checking stack growing direction on i386... -1 
checking for backtrace... yes 
checking whether ELF binaries are produced... no 
checking whether OS depend dynamic link works... yes 
checking for strip... strip 
configure: error: thread model is missing 

我會告訴你我從來沒有張貼問題因爲我通常可以最終弄清楚什麼東西。但我沒有看到任何人在任何地方都有這個特定的錯誤。我看到類似的事情沒有XCode ...但我有。

編輯: 我就遇到了這個問題,因爲我以爲我擁有了一切成立,但是當我試圖做一個新項目,我就遇到了這個: 軌新的演示

/Library/Ruby/Site/1.8 '從/Library/Ruby/Site/1.8/rubygems.rb:1195:in`寶石 ' /rubygems/dependency.rb:247:in to_specs': Could not find rails (>= 0) amongst [rake-0.8.7, rake-0.8.7] (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in to_spec從/ usr/bin中/導軌:18

回答

0

你在你的系統上丟失/usr/include/pthread.h

+0

編號 emacs /usr/include/pthread.h沒有工作 – Johnston

+0

爲什麼我會缺少'pthreads'?這似乎沒有任何意義。 – Johnston

+0

我誤讀你的迴應...是的,如果你有頭配置比找到它 – nhed