Questions tagged «ruby»

8
OS X 10.9上的Ruby由于未构建扩展而忽略了gem
每隔几天,就会knife在OS X上的Ruby CLI(尤其是使用Chef 的实用程序)中执行各种操作时发生这种情况(无法在其他环境中复制; Linux,FreeBSD等): Ignoring bcrypt-3.1.7 because its extensions are not built. Try: gem pristine bcrypt-3.1.7 Ignoring bigdecimal-1.2.5 because its extensions are not built. Try: gem pristine bigdecimal-1.2.5 Ignoring ffi-yajl-1.1.0 because its extensions are not built. Try: gem pristine ffi-yajl-1.1.0 Ignoring gem-wrappers-1.2.5 because its extensions are not built. Try: …
36 macos  ruby 


2
在Mountain Lion中通过RVM安装Ruby版本时出现问题
因此,我最近加入了Mac世界,并购买了MacBook。 我在正确设置所有开发工具时遇到了麻烦,并且不是100%熟悉Linux CLI和OSX CLI的差异。 现在,我正在尝试通过RVM安装一些不同版本的Ruby。 我已经尝试过按照建议的方式获取gcc4.2,但是无论使用什么编译器,我都会收到类似的消息。在这种情况下,我尝试安装2.0.0-preview2,但是对于其他版本,我也会得到相同的消息: $ rvm install 2.0.0-preview2 No binary rubies available for: downloads/ruby-2.0.0-preview2. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Fetching openssl-1.0.1c.tar.gz to /usr/local/rvm/archives Extracting openssl to /usr/local/rvm/src/openssl-1.0.1c Configuring openssl in /usr/local/rvm/src/openssl-1.0.1c. Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./Configure darwin64-x86_64-cc …

2
通过RVM进行Ruby 2.0.0安装:openssl周围的错误
使用:Mountain Lion 10.8.2,RVM 1.18.15 显然,openssl尝试通过RVM安装Ruby 2.0.0时遇到了麻烦: $ rvm install 2.0.0 ... Extracting openssl to /Users/meltemi/.rvm/src/openssl-1.0.1c Configuring openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c. Error running './Configure darwin64-x86_64-cc -I/Users/meltemi/.rvm/usr/include -L/Users/meltemi/.rvm/usr/lib zlib no-asm no-krb5 --prefix=/Users/meltemi/.rvm/usr no-shared ', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/configure.log Compiling openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c. Error running 'make', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/make.log 因此,我brew install openssl将openssl更新为1.0.1e希望有帮助,但仍有更多错误(请参见“长输出”)。 因此,在Stack Exchange上进行挖掘,然后松散地遵循了这篇帖子中的建议rvm get …

0
rbenv没有覆盖默认的Ruby版本
我使用thinkbot笔记本电脑脚本来设置新的Macbook Air(OSX 10.10.5),但是当我在包含.ruby-version文件的Rails项目中导航时,运行命令如rails s返回错误:Your Ruby version is 2.0.0, but your Gemfile specified 2.2.3。 rbenv local在同一目录中运行会提供正确的2.2.3版本。 我在zsh中使用以下.zshrc运行命令: export PATH="$HOME/.bin:$PATH" eval "$(rbenv init - --no-rehash zsh)" # recommended by brew doctor export PATH="/usr/local/bin:$PATH" export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi 我只是希望能够在本地运行Rails应用程序,并且如果需要,将使用除rbenv之外的其他内容来进行Ruby版本管理。

1
Rails报告错误:无法构建gem原生扩展
我已经安装了最新的命令行工具,并在此主题的其他线程上执行了相应的步骤。我知道这似乎是重复的,但我在这里看不到任何问题的答案: Jacobs-MacBook-Pro:~ jacob$ sudo gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking if the C compiler accepts ... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.