Articles of RubyGems的

如何在OS X下安装mysql gem

在安装ruby mysql gem的时候, sudo gem安装mysql 后续的轨道迁移仍然失败,消息如下所示: $ rake db:migrate (在/用户/家伙/代码/项目) 耙中止! 未初始化的常量MysqlCompat :: MysqlRes (通过使用–trace运行任务来查看完整跟踪) 我怎样才能解决这个问题?

Plesk 9.5.4上的Ruby 1.8.7

我想要在Plesk 9.5.4上安装Ruby 1.8.7。 我目前正在运行1.8.6,但是gem需要安装更新版本的Ruby: /opt/ruby/bin/gem update –system Updating RubyGems Updating rubygems-update ERROR: While executing gem … (Gem::InstallError) rubygems-update requires Ruby version >= 1.8.7 我试图安装的应用程序需要i18n但不能安装,因为gem是不是最新的: /opt/ruby/bin/gem install -v=0.4.2 i18n ERROR: Error installing i18n: i18n requires RubyGems version >= 1.3.5 任何帮助将不胜感激! 操作系统:红帽企业Linux ES版本4(Nahant更新6)内核:2.6.9-67.EL(老,我知道..)

无法安装Heroku使用RVM轻触gem

我试图在我的rvm上安装水龙头gem,但得到了以下结果: larson:~ larson$ rvm gem install taps Successfully installed taps-0.3.23 1 gem installed Installing ri documentation for taps-0.3.23… Installing RDoc documentation for taps-0.3.23… larson:~ larson$ ruby -S gem which taps ERROR: Can't find ruby library file or shared library taps 奇怪的是,水龙头仍然出现在我的gem名单。 这个错误是什么意思,它会阻止我使用Heroku的db:push命令?

我如何完全删除所有的Rubygem?

我想完全删除我的Ruby和Rails的安装。 使用apt-get remove ruby1.9.1卸载Ruby后, apt-get remove ruby1.9.1我看到从“/ usr / bin”中的ruby , rake和irb等所有Ruby的东西都被删除了,但是这些gem仍然在这里: /var/lib/gems/1.9.1/gems 什么是最好的方法来消除这些? 再一次,我想卸载一切,所以我可以再次尝试这个安装。 rm -r /var/lib/gems/ ???

重新加载傀儡gem提供者来源

所以我在“master”节点puppettentmaster上有了Puppet Enterprise 2.7。 在开发在“客户”节点上安装Ruby 2.0的新配方时,我注意到如果我强制客户端开始使用gem 2.0,我会遇到以下错误: err: /Stage[main]/_ruby::Mysql_gem/Package[mysql]/ensure: change from absent to 2.8.1 failed: Could not update: Execution of '/usr/bin/gem install -v 2.8.1 –include-dependencies –no-rdoc –no-ri mysql' returned 1: ERROR: While executing gem … (OptionParser::InvalidOption) invalid option: –include-dependencies at /etc/puppetlabs/puppet/environments/ci/modules/_ruby/manifests/mysql_gem.pp:29 我追踪到–include-dependencies到https://github.com/puppetlabs/puppet/commit/2284e837939628f81149e62fdc0f314ff077a776 ,它已经被删除,所以我从我的Puppet提供程序代码在主/opt/puppet/lib/site_ruby/1.8/puppet/provider/package/gem.rb : def install(useversion = true) command = [command(:gemcmd), "install"] command << "-v" << […]

Fedora 20上的Openshift起源的ruby问题

检查bundle依赖性时遇到一些问题 cd /var/www/openshift/broker bundle –local 这是错误信息, Bundler could not find compatible versions for gem "activesupport": In Gemfile: openshift-origin-controller (>= 0) ruby depends on activesupport (~> 3.2.8) ruby rails (>= 0) ruby depends on activesupport (4.0.0) 这是我所有的gem名单 activesupport (4.0.0, 3.2.8, 3.1.0) … openshift-origin-admin-console (1.17.0.1) openshift-origin-auth-mongo (1.15.1.1) openshift-origin-auth-remote-user (1.17.1.1) openshift-origin-common (1.18.0.2) openshift-origin-controller (1.18.0.1) openshift-origin-dns-avahi (1.10.2.2) openshift-origin-dns-nsupdate (1.15.1.2) […]

在Amazon Linux上使用本机扩展安装gem的问题

当我尝试在我的Amazon Linux EC2实例上安装ohai和fpm之类的gem时,我收到错误消息: [ec2-user@ip-172-31-43-16 ~]$ sudo gem install ohai Building native extensions. This could take a while… ERROR: Error installing ohai: ERROR: Failed to build gem native extension. /usr/bin/ruby2.0 extconf.rb Gem files will remain installed in /usr/local/share/ruby/gems/2.0/gems/ffi-1.9.6 for inspection. Results logged to /usr/local/share/ruby/gems/2.0/gems/ffi-1.9.6/ext/ffi_c/gem_make.out 就是这样,没有额外的提示。 该消息与fpm相同。 我谷歌search,并做了我认为我应该做的一切。 我有百胜安装海湾合作委员会,使,安装,ruby – 开发 – 事实上,尝试一切我百胜安装一切ruby20 *,rubygem [S] 20 *等,百胜更新了我的整个系统的地狱。 […]

在手动安装ruby 1.8之后安装rubygems

我已经在Ubuntu 14.04上成功安装了Ruby 1.8.7,通过下载软件包,在本地构build和安装。 命令ruby -v按预期的方式输出Ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-Linux] ,这与运行Ubuntu 12.04的另一台服务器上的输出相同,我的应用程序按预期工作。 Ubuntu 14.04上的which ruby的输出是/usr/local/bin/ruby /usr/bin/ruby ,Ubuntu 12.04上的/usr/bin/ruby 。 这给我的印象是安装了Ruby 1.8(这是我的应用程序需要)。 但是,当我尝试安装导轨gem: gem install rails (以root身份login;我还以root身份安装了ruby),出现以下错误: The program 'gem' can be found in the following packages: * ruby * rubygems Try: apt-get install <selected package> 当运行apt-get install ruby会解决这个问题,它会安装ruby 1.9.x,这不是我需要的版本。 我已经安装了如上所述的所需版本。 运行apt-get install ruby1.8 ,它将在Ubuntu 12.04上运行,在14.04上抛出一个错误,因为ruby1.8已经有点过时了,并且已经从官方的ubuntu […]

安装耙gem时出错302

我尝试在我干净的lenny服务器上安装耙 ,我得到以下错误: Updating installed gems ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) bad response Found 302 (http://gems.rubyforge.org/latest_specs.4.8) 有什么build议吗? 谢谢!

在Solaris 10上使用gcc代替SUNWspro cc在ruby mkmf中为yajl

在Solaris 10上,如何让mkmf使用gcc而不是/ opt / SUNWspro / bin / cc? 我想安装厨师使用gem安装厨师。 这是失败的: Building native extensions. This could take a while… ERROR: Error installing chef: ERROR: Failed to build gem native extension. /opt/csw/bin/ruby18 extconf.rb creating Makefile make /opt/SUNWspro/bin/cc -I. -I/opt/csw/lib/ruby/1.8/i386-solaris2.9 -I/opt/csw/lib/ruby/1.8 /i386-solaris2.9 -I. -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -KPIC -xO3 -m32 -xarch=386 -KPIC -Wall -funroll-loops -c yajl.c make: /opt/SUNWspro/bin/cc: Command […]