Tag: rvm

带有@global gem的Ruby / RVM – bundle运行失败并带有`require’:无法加载这样的文件 – bundler(LoadError)

我研究linux一个月。 虽然我试图在Heroku上从MySQL迁移到Postgres的所有步骤,但我遇到了一个我无法处理的错误。 当我尝试从源代码安装mysqltopostgres gem时: $ git clone https://github.com/maxlapshin/mysql2postgres.git $ cd mysql2postgres $ bundle install $ gem build mysqltopostgres.gemspec $ sudo gem install mysqltopostgres-0.2.20.gem 我在$ bundle install上有错误: /home/franchb/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/ kernel_require.rb:55:in `require’: cannot load such file — bundler (LoadError) from /home/franchb/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/ kernel_require.rb:55:in `require’ from /usr/bin/bundle:7:in `’ 我已经安装了sudo apt-get install bundler但是当我尝试输入bundle -v我得到了同样的错误! 我的gem env是: RubyGems Environment: – RUBYGEMS VERSION: […]

在Mac OS x Lion上安装mysql2 gem

前几天我更新到了Mac OSX Lion。 它打破了我的rails安装,因为我不得不重新编译mysql。 虽然我有工作重新安装mysql2gem已成为问题。 我当时正在跑豹,所以我要从32位到64位。 ~/code/rails/london (master)$ gem install mysql2 — –with-mysql-dir=/usr/local/mysql Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/stewartmatheson/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb –with-mysql-dir=/usr/local/mysql checking for rb_thread_blocking_region()… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries […]

rvm install 1.9.3失败

我尝试重新安装ruby,xcode和其他一些东西因为我不断收到这些奇怪的C编译器错误。 在某些时候我的所有ruby都被卸载了,所以我在开始时就回来了…… rvm get head && rvm reload rvm install 1.9.3 我收到以下错误: No binary rubies available for: downloads/ruby-1.9.3-p327. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing Ruby from source to: /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)… ruby-1.9.3-p327 – #downloading ruby-1.9.3-p327, this may take a […]

OS X Mavericks安装rvm警告

在终端中运行时: $ curl -L https://get.rvm.io | bash -s 它似乎工作正常,但最后在升级说明中说 * WARNING: You have ‘~/.profile’ file, you might want to load it, to do that add the following line to ‘/Users/steven/.bash_profile’: source ~/.profile 我不能使用RVM,得到错误 -bash: rvm: command not found’ 我对终端和Ruby很新,所以任何帮助都会非常感激。

无法使用RVM安装Ruby

我在使用RVM安装Ruby时遇到了麻烦,这个让我很难过。 我正在运行OS Mavericks,使用最新的XCode和xcode命令行工具。 我(在我的知识)相同的设置在另一台机器上没有问题。 RVM似乎安装没有问题。 在尝试rvm install 2.1时,我收到以下错误消息: ruby-2.1.1 – #removing src/ruby-2.1.1.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-2.1.1. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for osx. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up to date. Requirements […]

rvm确定并安装最新版本的ruby

到目前为止我只知道如何做命令 rvm 2.0.0 幸运的是谷歌告诉我 目前的稳定版本是2.0.0-p247。 但我不应该使用rvm为我做这一步吗? 我无法弄清楚如何告诉rvm安装最新版本的ruby,而无需手动指定它。

干净安装OSX 10.9.1在尝试安装gem时返回“undefined method`path2class’”

我刚用Homebrew和RVM安装了一个干净的Mavericks安装。 brew doctor和rvm requirements返回“all good”,但是,当我在我的项目中运行bundle install ,我的大多数gem都安装得很好,但是少数几个安装失败时出现同样的错误: Bundler::GemspecError: Could not read gem at /Users/NK/.rvm/gems/ruby-2.0.0-p353/cache/eventmachine-1.0.3.gem. It may be corrupted. An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue. Make sure that `gem install eventmachine -v ‘1.0.3’` succeeds before bundling. 然后,如果我再次尝试使用gem install eventmachine -v ‘1.0.3’我会得到: ERROR: Error installing eventmachine: invalid gem: package is corrupt, exception […]

RVM与JRuby 1.7.0“未知的Ruby解释器”

我使用以下Gemfile设置了一个基本的Rails应用程序: source ‘https://rubygems.org’ ruby ‘1.9.3’, engine: ‘jruby’, engine_version: ‘1.7.0’ gem ‘rails’, ‘3.2.8’ 每当我切换到项目目录时,我都会收到以下消息: 未知的ruby解释器版本:’1.9.3,引擎:jruby,engine_version:1.7.0’。 我正在运行RVM 1.16.17并安装了’jruby-1.7.0’。 我的Gemfile引擎是否配置错误或者我是否需要在RVM中更改某些内容?

使用RVM安装Ruby 2.1.3时出错

我正在尝试使用RVM安装Ruby 2.1.3。 我安装了最新版本的XCode,并且我已经安装了rvm。 我基本上在做 rvm autolibs brew rvm install ruby-2.1.3 一切看起来都运行正常,但后来我得到了这个错误: 传递给证书的空路径更新,函数堆栈:requirements_osx_update_openssl_cert_run rvm_requiremnts_fail_or_run_action __rvm_osx_ssl_certs_ensure_for_ruby __rvm_osx_ssl_certs_ensure_for_ruby_except_jruby external_import_setup external_import main 我可以得到的唯一参考是当开发人员检查硬编码路径时Ruby 2.1.1的问题,但我看不出这是如何相关的。 这是我得到的完整痕迹: Searching for binary rubies, this might take some time. Found remote file https://rubies.travis-ci.org/osx/10.9/x86_64/ruby-2.1.3.tar.bz2 Checking requirements for osx_brew. Certificates in ‘/usr/local/etc/openssl/cert.pem’ are already up to date. Requirements installation successful. ruby-2.1.3 – #configure ruby-2.1.3 – #download […]

运行autoconf时rvm install 1.9.2失败了吗?

我跑的时候 rvm install 1.9.2 尝试运行autoconf时出错。 这是堆栈跟踪: kenmare:ruby-1.9.2-p0 lee$ rvm install 1.9.2-p0 /Users/lee/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)… ruby-1.9.2-p0 – #fetching ruby-1.9.2-p0 – #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted) Running autoconf Error running ‘autoconf’, please check /Users/lee/.rvm/log/ruby-1.9.2-p0/autoconf.error.log Skipping configure step, ‘configure’ does not exist, did autoconf not run successfully? ruby-1.9.2-p0 – #compiling Error […]