Tag: gem

安装/捆绑gem unf_ext -v’0.0.6’时出错

我正在尝试捆绑unf_ext -v ‘0.0.6’但我一直收到此错误: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. checking for main() in -lstdc++… yes checking for ruby/encoding.h… yes creating Makefile make “DESTDIR=” clean make “DESTDIR=” compiling unf.cc In file included from unf.cc:1: In file included from ./unf/normalizer.hh:4: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:265: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__bit_reference:15: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628: […]

弄清楚哪些gemRails应用程序不使用

使用拥有近200颗gem的应用程序。 有没有人想出如何隔离未使用的gem,以便可以将它们从混合物中取出。

Mac上的Ruby gem安装问题是防火墙背后的问题

请为我提供以下问题的解决方案:1)如何在公司防火墙后面的Mac(OS X 10.5.1)上安装ruby gems。 此致,孙

获取Bundler项目正在使用的gem列表

有没有办法获得Bundler(它是一个Rails 3)项目为当前项目加载的gem的gem或路径列表。 我正在寻找类似的东西: Gem.path 但是只返回Gemfile中Bundler主动要求的那些。

heroku工具带的问题

我是Ruby和Rails项目的绝对新手,所以如果这是一个愚蠢的问题,我很抱歉。 我已经使用wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh //toolbelt.heroku.com/install-ubuntu.sh安装了heroku工具wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 我也试过gem install heroku 。 但是当我键入: MY_USER@home-PC:~$ heroku version :1:in `require’: cannot load such file — rubygems.rb (LoadError) from :1:in `’ 我已经检查了谷歌,人们建议gem和当前的ruby是不同的版本,所以我检查了它们,它们似乎是一样的: MY_USER@home-PC:~$ which ruby /home/MY_USER/.rvm/rubies/ruby-1.9.3-p327/bin/ruby MY_USER@home-PC:~$ gem env | grep ‘RUBY EXECUTABLE’ – RUBY EXECUTABLE: /home/MY_USER/.rvm/rubies/ruby-1.9.3-p327/bin/ruby 我不知道该怎么做,所以请帮忙。 对不起这个可能很愚蠢的问题,提前谢谢。 编辑:忘了说我正在运行Ubuntu […]

更新到gem 1.8.1时出现rubyonrails错误

我将gem更新到最新的1.8.1,现在当我使用rails命令时,我得到如下错误 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 /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11. 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/Haxrat/.gem/ruby/1.8/specifications/RedCloth-4.2.7.gemspec:10.

如何在OS X 10.5.4下安装mysql ruby​​ gem

这是交易。 $ gem –version 1.1.0 $ sudo gem install mysql – –with-mysql-config = / usr / local / mysql / bin / mysql_config 批量更新Gem源索引: http : //gems.rubyforge.org/错误:无法在本地或存储库中找到mysql $ sudo gem update 更新已安装的gems批量更新Gem源索引: http : //gems.rubyforge.org/ 更新RedCloth错误:执行gem时…(Gem :: GemNotFoundException)无法在本地或存储库中找到RedCloth 我试过这个 , 这个 , 这个 ,以及其他很多。 他们都没有为我工作。 还有其他人有这个问题吗? 如果是这样你做了什么来解决它上面没有提到的?

使用Ruby gem部署shell脚本并安装在bin目录中

我希望在我的gem的bin目录中放置一个shell脚本,以及属于该包的其他Ruby程序。 我希望将这个shell脚本原样安装在bin目录中(即没有包装器)。 这可能与Rubygem有关吗? 如果没有其他可能,我会对安装后挂钩感到满意。 有人有这方面的经验吗?

为什么Middleman一旦安装就不会包含rb-inotify和therubyracergem?

我有: $ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] $ middleman version Middleman 2.0.13.1 $ cat /etc/debian_version 6.0.3 如果我开始这样的项目: $ middleman init np –rack –bundler –template = html5 创建np / config.ru 创建np / Gemfile 运行捆绑安装 获取http://sofzh.miximages.com/ruby/ apple-touch-icon-114×114-precomposed.png 创建np / source / apple-touch-icon-57×57-precomposed.png 创建np / source / apple-touch-icon-72×72-precomposed.png 创建np / source / apple-touch-icon-precomposed.png 创建np / […]

错误:安装mysql2时出错:错误:无法构建gem本机扩展

我在尝试为Rails安装gem install mysql2 -v’0.3.17’时遇到了一些问题。 当我尝试通过运行gem install mysql2 -v’0.3.17’或gem install mysql2 -v’0.3.17’来安装它时,它给出了以下错误: ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the file for more details. You may need configuration options. Provided configuration options: –with-opt-dir –with-opt-include –without-opt-include=${opt-dir}/include –with-opt-lib […]