这是我跑的:
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的类似事情......但我有。
编辑: 我遇到了这个问题,因为我认为我已经设置了所有东西但是当我尝试创建一个新项目时,我遇到了这个: rails new demo
/Library/Ruby/Site/1.8/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'
来自/Library/Ruby/Site/1.8/rubygems.rb:1195:在'gem'中
来自/ usr / bin / rails:18
答案 0 :(得分:0)
您是否遗漏了系统中的/usr/include/pthread.h
?