I need to install Gitlabhq on Centos by assisting this page https://github.com/mattias-ohlsson/gitlab-installer/blob/master/gitlab-install-el6.sh but i am getting rb-fsevent error.
I already installed the latest version of rb-fsevent gem said but i can not execute bundle install
$gem install fr-fsevent
Successfully installed rb-fsevent-0.9.3
Done installing documentation for rb-fsevent (0 sec).
1 gem installed
But when i run bundle install i am getting this:
An error occurred while installing rb-fsevent (0.9.2), and Bundler cannot continue.
Make sure that `gem install rb-fsevent -v '0.9.2'` succeeds before bundling.
I searched too many things but could not find a good solution.
Related
I got following error for bundle
Bundler could not find compatible versions for gem "bundler": In
Gemfile:
bundler (~> 1.15)
Current Bundler version:
bundler (2.0.1) This Gemfile requires a different version of Bundler. Perhaps you need to update Bundler by running gem install
bundler?
Could not find gem 'bundler (~> 1.15)' in any of the relevant sources:
the local ruby installation
then I tried to downgrade the bundler version with
$ gem install bundler -v '~> 1.7.0' Fetching: bundler-1.7.15.gem
(100%) Successfully installed bundler-1.7.15 Parsing documentation for
bundler-1.7.15 Installing ri documentation for bundler-1.7.15 Done
installing documentation for bundler after 1 seconds 1 gem installed
but when I recheck the bundler version with
bundler --version
it still said Bundler version 2.0.1
The default bundler version on your system is still 2.0.1. If you need to use the downloaded version 1.7.15, you would have to run bundle _1.7.15_ install. You could also check if that version was successfully installed on your system using bundle _1.7.15_ -v
In either case, if you get the error Could not find command "_1.7.15_", then that means that the bundler version _1.7.15_ has not been installed on your system.
Additionally, these links may help you:
Run specific version of bundler
Downgrade Bundler in RVM
Try updating bundle with bundler update bundler and run the bundle update again. It solved my problem the last time.
I got a problem when i was installing Jekyll on win10.
When I finished deployment for ruby and wanna install Jekyll, it needs to install bundle first.
Fetching ffi 1.9.17 (x64-mingw32)
Installing ffi 1.9.17 (x64-mingw32)
Gem::RuntimeRequirementNotMetError: ffi requires Ruby version < 2.5, >= 2.0. The
current ruby version is 2.5.0.
An error occurred while installing ffi (1.9.17), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.17'` succeeds before bundling.
Then I followed the instruction
gem install ffi -v 1.9.17
The Error log is
ERROR: Error installing ffi:
The last version of ffi (= 1.9.17) to support your Ruby & RubyGems was 1.9.17. Try installing it with `gem install ffi -v 1.9.17`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
Also I have tried to followed the solution by vbortone.
gem install ffi -f
It also didn't work.
ERROR: Error installing ffi:
The last version of ffi (= 1.9.17) to support your Ruby & RubyGems was 1.9.17. Try installing it with `gem install ffi -v 1.9.17`
ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0.
The recent versions of ffi installs fine on Ruby 2.5. Bundler automatically requests for the latest version, unless there's a Gemfile.lock file, or a constraint has been specified in a Gemfile file or a dependency's gemspec.
You can first try running bundle update.
If that doesn't work, you can edit the Gemfile file (if available), and add gem 'ffi', '~> 1.9' before running bundle install. You can also manually install the gem with gem install ffi.
I'm trying to install beef framework on my Ubuntu 14.04.
I'm getting the error :
Gem::InstallError: public_suffix requires Ruby version >= 2.0.
An error occurred while installing public_suffix (2.0.5), and
Bundler cannot continue.
Make sure that `gem install public_suffix -v '2.0.5'` succeeds before
bundling.
I've tried to install ruby 2.4.0 and it worked and i used it using rvm :
root#XBuffer:/usr/share/beef-xss# rvm use ruby-2.4.0rvm
Using /usr/local/rvm/gems/ruby-2.4.0
But I'm still getting the same error while using bundle install
I've tried even to manually install public_suffix :
root#XBuffer:/usr/share/beef-xss# gem install public_suffix -v '2.0.5'
Successfully installed public_suffix-2.0.5
Parsing documentation for public_suffix-2.0.5
Done installing documentation for public_suffix after 0 seconds
1 gem installed
But I still get the same exact error.
I'm really stuck at this and I've tried a lot of other solutions based on some researches.
Jekyll's document says,
If you’re interested in browsing these docs on-the-go, install the
jekyll-docs gem and run jekyll docs in your terminal.
When I tried to install jekyll-docs on my MacBook Air running macOS Sierra, I bumped into the following problem:
sunqingyaos-MacBook-Air:myblog sunqingyao$ jekyll docs
You must install the 'jekyll-docs' gem to use the 'jekyll docs' command.
sunqingyaos-MacBook-Air:myblog sunqingyao$ sudo gem install jekyll-docs
Successfully installed jekyll-docs-3.3.0
Parsing documentation for jekyll-docs-3.3.0
1 gem installed
sunqingyaos-MacBook-Air:myblog sunqingyao$ jekyll docs
You must install the 'jekyll-docs' gem to use the 'jekyll docs' command.
sunqingyaos-MacBook-Air:myblog sunqingyao$
As you can see, rubygems told me it has successfully installed jekyll-docs-3.3.0, while jekyll docs kept falling. I've restarted the terminal, still not working.
Had the same issue.
In my case I had two jekyll gems:
sergpank$ gem list jekyll
*** LOCAL GEMS ***
jekyll (3.4.0, 3.3.1)
jekyll-docs (3.3.1)
jekyll-feed (0.8.0)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
I have simply uninstalled 3.4.0 (because there was no jekyll-docs-3.4.0):
sergpank$ gem uninstall jekyll -v 3.4.0
Successfully uninstalled jekyll-3.4.0
---------------------------------------
sergpank$ gem list jekyll
*** LOCAL GEMS ***
jekyll (3.3.1)
jekyll-docs (3.3.1)
jekyll-feed (0.8.0)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
After what jekyll docs was successfully started!
Here is the error message:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
Gem files will remain installed in /var/www/app_dir/shared/bundle/ruby/1.8/gems/bson_ext-1.7.0 for inspection.
Results logged to /var/www/app_dir/shared/bundle/ruby/1.8/gems/bson_ext-1.7.0/ext/cbson/gem_make.out
An error occured while installing bson_ext (1.7.0), and Bundler cannot continue.
Make sure that `gem install bson_ext -v '1.7.0'` succeeds before bundling.
I tried running gem install bson_ext -v '1.7.0' and this succeeded with no errors. I've tried installing ruby-dev and ruby1.8-dev apt packages and this did not help.
bundle install is able to successfully build bson_ext on my Mac OS X development system but is failing in the Linux production environment even when I run it directly outside of the context of the capistrano bundle:install task.
I have also tried running gem update --system and gem update bundler and this didn't help.
I suspect the issue lies in how bundle install is called on the target system. Still, I tried updating Capistrano to version 2.13.5 and this did not help.
So, it appears that bundler 1.2.1 is is unable to build the following gems on my system:
bson_ext 1.7.0
curb 0.8.3
nokogiri 1.5.5
json 1.7.5
therubyracer 0.8.2.
I was able to build these using gem install <GEMNAME> -v '<VERSION>' --install-dir /var/www/<APP_DIR>/shared/bundle/ruby/1.8/. After this, running bundle exec capistrano deploy succeeded.
bundle does not appear to be able to build gems with native extensions on my system. Not sure why, but maybe this procedure will help those with a similar issue.