bundler

Why aren't “gem” and “bundle” using the same libxml2?

坚强是说给别人听的谎言 提交于 2020-06-23 06:56:11
问题 I seem to be in a recursive loop of frustration. I'm trying to "bundle install" a project, but it results in: An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling. So I try that: $ gem install nokogiri -v '1.6.6.2' Building native extensions. This could take a while... Successfully installed nokogiri-1.6.6.2 Parsing documentation for nokogiri-1.6.6.2 Done installing documentation for

Why aren't “gem” and “bundle” using the same libxml2?

霸气de小男生 提交于 2020-06-23 06:56:06
问题 I seem to be in a recursive loop of frustration. I'm trying to "bundle install" a project, but it results in: An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling. So I try that: $ gem install nokogiri -v '1.6.6.2' Building native extensions. This could take a while... Successfully installed nokogiri-1.6.6.2 Parsing documentation for nokogiri-1.6.6.2 Done installing documentation for

How to run “bundle exec jekyll new .”

坚强是说给别人听的谎言 提交于 2020-06-14 05:57:51
问题 I'm trying to follow "Creating a GitHub Pages site with Jekyll" but when I run any of these commands: $ bundle exec jekyll VERSION new . $ bundle exec jekyll _4.0.0_ new . $ bundle exec jekyll 4.0.0 new . I get this error: "Could not locate Gemfile or .bundle/ directory" I have looked at several SO posts related to this error message, but none seem to have a fix for my problem. Perhaps I have missed something? Some relevant details: $ ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86

Error loading the 'mysql2' Active Record adapter

风格不统一 提交于 2020-05-16 04:16:49
问题 I am trying to upgrade my app and this is the error I am getting while deploying the app: Error loading the 'mysql2' Active Record adapter. Missing a gem it depends on? can't activate mysql2 (< 0.6.0, >= 0.4.4), already activated mysql2-0.3.21. Make sure all dependencies are added to Gemfile. here is my Gemfile: https://github.com/BI-CTSICN/sparc-request/blob/master/Gemfile gem 'mysql2', '~> 0.3.18' gem 'rails', '~> 5.1', '>= 5.1.4' I am using ruby 2.4.2 回答1: Your mysql2 version you use ( 0.3

Error loading the 'mysql2' Active Record adapter

谁都会走 提交于 2020-05-16 04:16:31
问题 I am trying to upgrade my app and this is the error I am getting while deploying the app: Error loading the 'mysql2' Active Record adapter. Missing a gem it depends on? can't activate mysql2 (< 0.6.0, >= 0.4.4), already activated mysql2-0.3.21. Make sure all dependencies are added to Gemfile. here is my Gemfile: https://github.com/BI-CTSICN/sparc-request/blob/master/Gemfile gem 'mysql2', '~> 0.3.18' gem 'rails', '~> 5.1', '>= 5.1.4' I am using ruby 2.4.2 回答1: Your mysql2 version you use ( 0.3

What to do after removing a gem from the Gemfile?

喜夏-厌秋 提交于 2020-05-11 03:45:07
问题 I removed a gem 'mygem' from the Gemfile, but just now I realized it's still installed. So how do I tell bundler to rescan the Gemfile and update Gemfile.lock, without updating every gem? Coming from php, this is how I'm used to do this: composer update nothing . Is there an equivalent for bundler? 回答1: You can run just bundle or bundle install to install gems based on your Gemfile. That will remove the instance of mygem from your Gemfile.lock file. It will not, however, remove the gem from

Update local gem source code

余生颓废 提交于 2020-05-10 04:30:27
问题 I'm testing a gem in a Rails project. The current Gemfile: gem 'mygemname', path: '/path/to/my/gem' When I edit a gem locally I can build the gem, remove the gem from Gemfile , run bundle install , add the gem back to the Gemfile and run bundle install again. Is there an easier way to do this locally? 回答1: If you use bundle config local.GEM_NAME /path/to/local/git/repository from the command line then every time you reload your application it will load the latest source from your file system.

Update local gem source code

ぐ巨炮叔叔 提交于 2020-05-10 04:30:25
问题 I'm testing a gem in a Rails project. The current Gemfile: gem 'mygemname', path: '/path/to/my/gem' When I edit a gem locally I can build the gem, remove the gem from Gemfile , run bundle install , add the gem back to the Gemfile and run bundle install again. Is there an easier way to do this locally? 回答1: If you use bundle config local.GEM_NAME /path/to/local/git/repository from the command line then every time you reload your application it will load the latest source from your file system.

“Unable to require openssl” when trying to install ruby gems on OS X

痞子三分冷 提交于 2020-04-30 04:55:44
问题 Since I upgraded to OS X 10.10 Yosemite, I get the following error when trying to install a ruby gem: ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources But when I do which openssl it shows me the path: /usr/local/bin/openssl I have uninstalled and reinstalled rvm and ruby but still get the same error. How do I install Ruby gems? 回答1: OpenSSL issues with Ruby on Yosemite could be a result of your

清华大学 Ruby Gems 镜像使用帮助

你。 提交于 2020-04-10 17:44:40
Ruby Gems 镜像使用帮助 gem 使用以下命令替换 gems 默认源 # 添加 TUNA 源并移除默认源 gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/ # 列出已有源 gem sources -l # 应该只有 TUNA 一个 或者,编辑 ~/.gemrc ,将 https://mirrors.tuna.tsinghua.edu.cn/rubygems/ 加到 sources 字段。 bundler 使用以下命令替换 bundler 默认源 bash bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems 官方文档: http://bundler.io/v1.16/man/bundle-config.1.html#MIRRORS-OF-GEM-SOURCES 使用Ruby China镜像 详见 https://gems.ruby-china.com/ 来源: oschina 链接: https://my.oschina.net/u/2403168/blog/3006123