Tag: macos

无法在OS X Mavericks上降级Ruby

OS X 10.9附带ruby 2.0.0p195,但我需要安装Ruby 1.8.7。 我一直遇到错误。 我有Xcode5-DP安装,我相信也安装了命令行工具。 在终端: sudo rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require sudo password. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up […]

安装gem失败,权限错误

昨天我将Mac OS更新为10.9 Mavericks。 我目前的Ruby版本显示为 ruby 2.0.0p247(2013-06-27修订版41674)[universal.x86_64-darwin13] 我在我的机器上安装了Rails,当我尝试安装gem时,我收到以下消息: 获取:eventmachine-1.0.3.gem(100%) 错误:执行gem时…(Gem :: FilePermissionError) 您没有/Library/Ruby/Gems/2.0.0目录的写权限。 我在我的主目录中尝试所有这些。 有什么建议?

Ruby和“你必须使用OpenSSL支持重新编译Ruby或更改Gemfile中的源代码”

使用rvm我将我的ruby升级到1.9.3-p392,同时添加了2.0.0,当我运行我的bundle命令时尝试使用这个版本时我得到了这个错误。 Could not load OpenSSL. You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from ‘https’ to ‘http’. Instructions for compiling with OpenSSL using RVM are available at rvm.io/packages/openssl. 我已经按照几个不同的说明来解决这个问题。 我试过删除版本并使用rvm选项安装它 –with-openssl-dir=$HOME/.rvm/usr 我已经安装了带有rvm和macports的OpenSSL。 两者都没有帮助解决这个问题。 我甚至使用以下方法更改了ssl证书的文件位置: export SSL_CERT_FILE=/Users/DarkLord/.rvm/usr/ssl/cert.pem 无论我做什么,我都会继续犯错误。 有人可以帮我解决这个问题吗?

不兼容的库版本:nokogiri.bundle需要8.0.0或更高版本,但libiconv.2.dylib提供版本7.0.0

为了在我的mac上为rails项目安装mysql,我遵循在线建议安装自制程序和删除mac端口。 这就是问题的开始。 rails项目不会构建,我得到这个: [rake –prereqs]耙子流产了! dlopen(/Users/Parker/.rvm/gems/ruby-1.9.3-p448/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle,9): 未加载库:/opt/local/lib/libiconv.2.dylib 参考自:/Users/Parker/.rvm/gems/ruby-1.9.3-p448/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle 原因:不兼容的库版本:nokogiri.bundle需要8.0.0或更高版本,但libiconv.2.dylib提供版本7.0.0 /Users/Parker/.rvm/gems/ruby-1.9.3-p448/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle /Users/Parker/.rvm/gems/ruby-1.9.3-p448 /gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in`requirement’ … 我试过跑步的建议 brew安装libiconv 我收到的消息是: 错误:没有可用的libiconv公式Apple将libiconv与OS X一起分发,您可以在/ usr / lib中找到它。 某些构建脚本无法正确检测到它,请检查现有的解决方案公式。 我也试过了 gem install nokogiri – –with-xslt-dir = / usr / local / Cellar / libxslt / 1.1.28 –with-xml2-dir = / usr / local / Cellar / libxml2 / 2.9.1 我收到的: 错误:安装nokogiri时出错: 错误:无法构建gem原生扩展。 /Users/Parker/.rvm/rubies/ruby-2.0.0-p247/bin/ruby […]

Jruby:NameError:未初始化的常量Neo4j

我从git运行这个例子: https : //github.com/andreasronge/neo4j require “rubygems” require ‘neo4j’ Neo4j::Transaction.run do node = Neo4j::Node.new(:name => ‘andreas’) node.outgoing(:friends) < ‘peter’) node.outgoing(:friends).each {|node| puts “name #{node[:name]}”} end 它输出错误: NameError: uninitialized constant Neo4j const_missing at org/jruby/RubyModule.java:2626 (root) at ./neo4j.rb:4 require at org/jruby/RubyKernel.java:1027 require at ./neo4j.rb:36 (root) at /Users/ZATLUKE/RubymineProjects/nokogiri/neo4j.rb:2 load at org/jruby/RubyKernel.java:1052 (root) at -e:1 有任何想法吗?

错误:通过Homebrew安装ImageMagick时未定义的方法`=〜’

当我试图通过Homebrew安装ImageMagick时,我得到了一个非常奇怪的答案。 它给了我这个: Holger-Sindbaeks-MacBook-Air:showwwdown_0.3 holgersindbaek$ brew install imagemagick Error: undefined method `=~’ for # Please report this bug: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue /usr/local/Library/Homebrew/formula.rb:426:in `factory’ /usr/local/Library/Homebrew/formula_installer.rb:38:in `block (2 levels) in install’ /usr/local/Library/Homebrew/extend/ARGV.rb:121:in `filter_for_dependencies’ /usr/local/Library/Homebrew/formula_installer.rb:34:in `block in install’ /usr/local/Library/Homebrew/formula_installer.rb:30:in `each’ /usr/local/Library/Homebrew/formula_installer.rb:30:in `install’ /usr/local/Library/Homebrew/cmd/install.rb:103:in `block in install_formulae’ /usr/local/Library/Homebrew/cmd/install.rb:86:in `each’ /usr/local/Library/Homebrew/cmd/install.rb:86:in `install_formulae’ /usr/local/Library/Homebrew/cmd/install.rb:24:in `install’ /usr/local/bin/brew:83:in `’ 它绝对没有告诉我,我不知道下一步可能是什么。 你有什么想法? 我在Mac OSX 10.6和Ruby 1.9.2上运行

尝试在Mac上为Ruby on Rails安装Homebrew时出错

我试图在我的Mac上安装Homebrew与OS 10.8.5,我收到一个错误。 我在终端输入以下内容: ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)” 我收到以下错误 /Users/marlonmarescia/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory

如何在OSX上安装Ruby on Rails 3?

我有一台白色Macbook,我必须在10个小时内参加一个会议,但我遇到了很多问题。 首先,我想要Rails 3,所以我使用MacPorts来安装Ruby 1.8.7。 它工作得很好;)然后我想我应该安装Rails 3,但不,不! 它说: $ sudo gem install rails –pre ERROR: Error installing rails: activesupport requires Ruby version >= 1.8.7. 我该怎么办? 我已经有1.8.7!

Mac OS X Mountain Lion“此系统上当前未安装Rails”。

我正在全新安装OS X Mountain Lion。 我通过以下方式安装了rails: sudo gem install rails 一切似乎安装正确,但当我键入rails命令(rails s,rails -v等)时,我收到此错误: Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your “rails” command. ‘ which rails ‘的结果是/usr/bin/rails 我认为这是一个路径问题,也许是,但我可以看到/ usr / bin是我的PATH的一部分。 有帮助吗? 谢谢! 更新:我注意到我的其他Mac上的所有内容都具有相同的操作系统非常好…我只是不记得我是如何让它以这种方式工作的。 如果我运行’哪个轨道’我会看到它在一个完全不同的地方/Users/username/.rvm/gems/ruby-1.9.3-p194/bin/rails

gem install debugger -v’1.5.0’失败

我试图在小牛队的大型项目中做bundle ,虽然这是rbenv的全新安装,但是我的环境有些gem坏了或者出了什么问题。 $ gem install debugger -v ‘1.5.0’ Building native extensions. This could take a while… ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /Users/samat/.rbenv/versions/1.9.3-p448/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.h… no checking for rb_control_frame_t.method_id in method.h… no checking for rb_method_entry_t.called_id in method.h… no checking for rb_control_frame_t.method_id in method.h… no Makefile creation […]