gem

gem install cannot find a header file

我的未来我决定 提交于 2019-12-18 07:17:32
问题 Following along the github README for talib_ruby: sudo port install ta-lib Complete. Next is where the trouble begins. sudo env ARCHFLAGS="-arch PLATFORM" gem install talib_ruby -- --with-talib-include=ABSOLUTE_PATH_TO_TALIB_HEADERS --with-talib-lib=ABSOLUTE_PATH_TO_TALIB_LIBS This install fails I believe because apparently it cannot find the ta_abstract.h file talib.c:2:25: error: ta_abstract.h: No such file or directory . . . many more errors I have included in my .bash_profile file the

How to avoid deprecation messages from RubyGems?

别来无恙 提交于 2019-12-18 03:24:12
问题 After gem update --system , when I do something related to rubygems, I receive this message: 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 /usr/lib/ruby/gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11. How can I avoid it? I've tried to remove rubygems and reinstall, but that didn't fix it. 回答1: You probably need to regenerate your gem specifications. After

How to avoid deprecation messages from RubyGems?

馋奶兔 提交于 2019-12-18 03:24:08
问题 After gem update --system , when I do something related to rubygems, I receive this message: 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 /usr/lib/ruby/gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11. How can I avoid it? I've tried to remove rubygems and reinstall, but that didn't fix it. 回答1: You probably need to regenerate your gem specifications. After

Error install rubyracer with error “invalid gem: package is corrupt”

回眸只為那壹抹淺笑 提交于 2019-12-18 03:19:06
问题 When trying to install therubyracer on OSX 10.9, with the command: $ gem install therubyracer -v '0.12.0' I get the error: ERROR: Error installing therubyracer: invalid gem: package is corrupt, exception while verifying: undefined method `path2class' for #<Psych::ClassLoader:0x000001018cf210> (NoMethodError) in /Users/doved/.rvm/gems/ruby-2.0.0-p353/cache/therubyracer-0.12.0.gem XCode developer tools are installed, and I've tried removing the cache file, but I still get the error. 回答1: Delete

How can I install an older version of Jekyll?

你。 提交于 2019-12-18 02:43:56
问题 I'd like to install Jekyll version 1.5.1 (on a Mac). Is it possible to do this? I found something about being able to downgrade, but I find it hard to believe there is no way just to install an older version. Thanks! 回答1: You can specify the exact version in your Gemfile like this: gem 'jekyll', '1.5.1' Or install a specific version from the command line: gem install jekyll -v 1.5.1 回答2: You can mention the version you want to run. jekyll _2.4_ serve --watch 来源: https://stackoverflow.com

How can I install an older version of Jekyll?

好久不见. 提交于 2019-12-18 02:43:36
问题 I'd like to install Jekyll version 1.5.1 (on a Mac). Is it possible to do this? I found something about being able to downgrade, but I find it hard to believe there is no way just to install an older version. Thanks! 回答1: You can specify the exact version in your Gemfile like this: gem 'jekyll', '1.5.1' Or install a specific version from the command line: gem install jekyll -v 1.5.1 回答2: You can mention the version you want to run. jekyll _2.4_ serve --watch 来源: https://stackoverflow.com

Error installing nokogiri 1.6.0 on mac (libxml2)

南笙酒味 提交于 2019-12-17 23:27:35
问题 UPDATE: Fixed I found the answer in another thread. The workaround I used is to tell Nokogiri to use the system libraries instead: NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install ==== Trying to install nokogiri 1.6.0 on a mac. With previous versions, I had no problems. But 1.6.0 refuses to install. This is the error: Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/josenriq/.rvm/rubies/ruby-1.9.3-head

bundle install issue with libv8 and rails

不羁的心 提交于 2019-12-17 22:00:26
问题 I'm having issues with the libv8 gem with ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]. gem install libv8 works fine and I have gem 'therubyracer' in my Gemfile and this has a dependency on libv8 which is installed when I do a bundle install : $ bundle exec gem list *** LOCAL GEMS *** actionmailer (3.1.3) actionpack (3.1.3) ... libv8 (3.3.10.4 x86_64-darwin-10) ... but when I run: $ rails s Could not find libv8-3.3.10.4 in any of the sources Run `bundle install` to install

Difference between plugins and Ruby gems?

ぃ、小莉子 提交于 2019-12-17 21:47:34
问题 What is the difference between plugins and gems? What are the different uses of each? Where and why would you use one over the other? 回答1: Gem Gem is a packaged ruby application using the packaging system defined by RubyGems. Rails itself is a Gem. Rails gem is installed in jruby-1.0\lib\ruby\gems\1.8\gems\rails-1.2.3 as: DIR bin DIR builtin 68,465 CHANGELOG DIR configs DIR dispatches DIR doc DIR environments 307 fresh_rakefile DIR helpers DIR html DIR lib 1,072 MIT-LICENSE 11,969 Rakefile 8

Passenger says Bundler:GemNotFound error while the bundle install says it's there

懵懂的女人 提交于 2019-12-17 21:36:50
问题 i get Passenger error on shared hosting Could not find i18n-0.6.0 in any of the sources (Bundler::GemNotFound) but if i run "bundle install" it says everything is ok :( and the contents of the Gemfile are: source 'http://rubygems.org' gem 'rake', '0.8.7' gem 'tzinfo', '0.3.27' gem 'mail', '2.2.16' gem 'arel', '2.0.9' gem 'rack', '1.2.2' gem 'i18n', '0.6.0' gem 'rails', '3.0.5' gem 'mysql2' gem 'paperclip' gem 'devise' gem 'jquery-rails' gem 'acts-as-taggable-on' gem "will_paginate", "~> 3.0