Tag: rubygems

没有这样的文件加载 – ruby​​gems(LoadError)

我最近在fedora 12中安装了rails。我也是linux新手。 一切工作正常在Windows 7上。但我在Linux面临很多问题。 请帮助! 我已经安装了所有基本知识来使基本脚本/服务器正常运行。 当我尝试脚本/服务器时,我从boot.rbpopup这个错误。 我想在这里提供一些细节: rails,ruby和gem被安装的目录, [vineeth@localhost my_app]$ which ruby /usr/local/bin/ruby [vineeth@localhost my_app]$ which rails /usr/bin/rails [vineeth@localhost my_app]$ which gem /usr/bin/gem 而当我运行脚本/服务器,这是错误。 [vineeth@localhost my_app]$ script/server ./script/../config/boot.rb:9:in `require': no such file to load — rubygems (LoadError) from ./script/../config/boot.rb:9 from script/server:2:in `require' from script/server:2 PATH文件看起来像这样 [vineeth@localhost my_app]$ cat ~/.bash_profile # .bash_profile # Get the […]

在Ruby 1.9.3中安装debugger-linecache时出错

我需要一个项目的debugger-linecache版本1.0.1,并且在尝试安装时遇到以下错误。 trunk ☺ gem install debugger-linecache -v '1.0.1' Building native extensions. This could take a while… ERROR: Error installing debugger-linecache: ERROR: Failed to build gem native extension. /Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for vm_core.h… no checking for vm_core.h… no Makefile creation failed ************************************************************************** No source for ruby-1.9.3-p194 provided with debugger-ruby_core_source gem. ************************************************************************** *** extconf.rb failed *** Could […]

Rails 3authentication解决scheme

我围绕着StackOverflow和Google进行了探讨,但找不到任何将Rails身份validationgem或插件进行比较的人(我正在寻找Rails 3的东西)。 Rails 3的哪些authentication解决scheme是最受欢迎的,它们之间有什么区别?

在Redis数据库中转储所有的键/值对

我在Ruby中使用了一个名为Ohm的ORM,它在Redis上工作,并且很好奇如何确定数据是如何存储的。 我想知道是否有办法列出Redis数据库中的所有键/值。 任何领导都会帮助我(我基本上坚持atm)很长的路要走。 提前致谢! 更新: 其他人的注意事项使用redis-cli来试用这个,使用这个: $ redis-cli keys * (press * followed by Ctrl-D) … (prints a list of keys and exits) $ 感谢@antirez和@hellvinz!

错误通过Bundler安装mysql2 gem

我正在尝试通过Bundler安装mysql2 gem,但它一直死于以下错误: ** executing command /home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in 'rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb –with-mysql-config=/usr/bin/mysql_config checking for rb_thread_blocking_region()… yes checking for mysql.h… no checking for mysql/mysql.h… no —– mysql.h is missing. please check your installation of mysql and try again. —– *** extconf.rb failed *** Could not create […]

如何删除安装的ri和rdoc?

我怎样才能删除已安装的gem的ri和rdoc ? 谢谢

我怎样才能设置一个代理服务器的gem?

我无法通过命令提示符安装SASS。 我尝试下面的步骤 c:\gem install sass 我收到以下错误: ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from https://rubygems.org/ – Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. – connect(2) (https://rubygems.org/latest_specs.4.8.gz) 请帮帮我,

Rubygems,Bundler和RVM混淆

在再次询问之前,我读了“ Rubygems,Bundler和RVM之间的关系 ”。 好吧,这样的问题很多,但是回答的人说他们和Rubygems,RVM和Bundler一起工作,他们没有解释每个工作是如何独立的。 当我们安装gem的时候,我真的很困惑,三个人是如何孤立地工作的。 请不要告诉我你是如何工作的,这对我有帮助,但是当我们和他们一起玩时,我不知道发生了什么。 我的困惑可以分解成这些问题。 在以下情况下安装的gem在哪里? 我只有Rubygems(没有RVM或Bundler)? Rubygems和RVM安装? Rubygems,RVM和Bundler是否安装? 请通过networking上的资源或详细的答案来帮助我理解这些内容。

Nokogiri'运行软件包安装时无法构buildgem原生扩展'

我正在运行bundle install ,我得到这个错误: Building nokogiri using system libraries. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb –use-system-libraries Building nokogiri using system libraries. libxml2 version 2.6.21 or later is required! *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for […]

当gem失败时,我在哪里可以findmkmf.log文件?

找不到'libpq-fe.h标头 ** extconf.rb失败** 由于某种原因无法创buildMakefile,可能缺less必要的库和/或头文件。 检查mkmf.log文件以获取更多详细信息。 我在哪里可以findmkmf.log文件?