Tag: rvm

使用Xcode 4.3.1在Mac上更新Ruby

我正在使用RVM来安装它,它给了我这个错误: The provided compiler ‘/usr/bin/gcc’ is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 我在Lion 10.7.3上,我有Xcode 4.3.1。

如何修复Rubygems最近的弃用警告?

我最近运行更新: gem update –system gem update 现在,每次加载gem时,我都会收到很多弃用警告。 例如, rails console : NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/user/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/user/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no […]

Emacs在运行编译命令时忽略了我的路径

我正在尝试使用我的Mac OS X系统上的特定ruby版本运行编译命令(rake cucumber),我使用rvm当前在终端中执行此操作。 我的〜/ .MacOSX / environment.plist中有正确的路径,但是emacs坚持在这条路径上加前一步,因此无用。 我也尝试过: (when (equal system-type ‘darwin) (setenv “PATH” (concat “/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin:/Users/fearoffish/.rvm/bin”)) (push “/Users/fearoffish/.rvm/bin” exec-path) (push “/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin” exec-path) (push “/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin” exec-path) (push “/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin” exec-path) (push “/Users/fearoffish/.rvm/bin” exec-path)) 这是emacs初学者的绝望尝试,以获得我想要的东西。 它仍然在它前面,所以我的道路最终是: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin 我不希望/ usr / bin和其他人在前面,我希望我的路径首先和emacs前置路径到最后,我认为这将解决我的问题。 我通过简单地打开Aquamacs并运行meta-x compile然后echo $PATH 。 有任何想法吗?

Gem安装调试器错误

我在Mac OS 10.9.2上运行Rails v4.0.2并且我一切顺利。 我突然发现一个错误,当我尝试使用rails server时,gem丢失了。 我运行bundle install,这是输出: Fetching gem metadata from https://rubygems.org/……. Fetching additional metadata from https://rubygems.org/.. Using rake 10.1.1 Using i18n 0.6.9 Using minitest 4.7.5 Using multi_json 1.9.0 Using atomic 1.1.16 Using thread_safe 0.2.0 Using tzinfo 0.3.39 Using activesupport 4.0.2 Using builder 3.1.4 Using erubis 2.7.0 Using rack 1.5.2 Using rack-test 0.6.2 Using […]

未定义的符号:运行bundle install时的SSLv2_method

我在运行bundler安装我的gem时遇到此错误。 我环顾四周找不到解决办法,除了在rvm上安装openssl pkg并重新安装所有ruby,这样做没有解决问题,还有其他可能的解决方案吗? 这是我运行bundle install的输出: Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method – /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError) from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/openssl.rb:17:in `’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/https.rb:22:in `’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from […]