$ bundle install
Errno::ENOENT: No such file or directory # rb_sysopen - /Users/Sean/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3/ext/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
$ gem list
eventmachine (1.0.3 x86-mingw32)
$ gem build eventmachine -v 1.0.3
ERROR: While executing gem ... (Gem::CommandLineError)
Too many gem names (eventmachine, 1.0.3); please specify only one
Try to edit Gemfile.lock and change eventmachive version from 1.0.3 to 1.0.4.
This works for me.
bundle update
bundle install Hope this will work.
I had a similar issue with eventmachine -v '1.0.4' and i resolved it like this.
gem install eventmachine -v '1.0.4' -- --with-cppflags=-I/usr/local/opt/openssl/include
Related
I am trying to install the aws-sdk gem for Rails, but it requires a Nokogiri version less than 1.6.0. I think due to a previous bundle install my system is locked on Nokogiri v1.6.6.2.
I tried removing the locked gem, and ran a bundle update but it didn't work. What should I do?
Specify your desired Nokogiri version in your Gemfile:
gem 'nokogiri', '< 1.6.0'
and run
bundle update nokogiri
Run
gem uninstall nokogiri -v 1.6.6.2
then change the Gemfile to the version you want and then do a bundle install.
I am using ruby 2.0.0 and Rails 4.0 . i added
gem 'fog'
gem "fog-aws"
on my gem file when i am trying to bundle install, getting following error
An error occurred while installing fog-aws (0.8.1), and Bundler cannot continue.
Make sure that `gem install fog-aws -v '0.8.1'` succeeds before bundling.
ranjith#Ranjith-laptop:~/projects/recruitement$ gem install fog-aws -v '0.8.1' ERROR: Could not find a valid gem 'fog-aws' (= 0.8.1), here is why:
Unable to download data from https://rubygems.org/ - server did not return a valid file (https://rubygems.org/specs.4.8.gz)
Sounds like that's a temporary rubygems issue. fog-aws 0.8.1 is available https://rubygems.org/gems/fog-aws/versions/0.8.1. I'd try 0.9.1 instead.
Hi I'm doing Rails app and when I bundle install it returns an error:
Could not find coffee-script-source-1.1.3 in any of the sources
I know that coffee-script-source-1.1.3 gem is deprecated/yanked but my other gems are having dependencies with this.
But this project is working with other machine and in heroku production.
How can I successfully bundle install this without changing my gemfile?
Thanks
Run this:
bundle update --source coffee-script-source
If you get an error, like this:
An error occurred while installing rmagick (2.13.1), and Bundler cannot continue.
Run this:
gem install rmagick
I hope it'll help you.
What it worked for me was to update the gem to 1.2.0.
As it shows here https://rubygems.org/gems/coffee-script-source/versions
1.1.3 says that it's yanked.
gem 'coffee-script-source', '~> 1.2.0'
And run
bundle update --source coffee-script-source
When I run bundle install I get
An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.
Libv8 is dependency for lunchy and therubyracer gems.
I have locked in my Gemfile.lock libv8 gem on 3.11.8.17
But I found that I can downgrade it to 3.3.10.4
bundle install / update: libv8 (therubyracer) installation fails (with native extensions)
How to do that?
I also found working 3.11.8.17 gem but don't know how to implement it on my system.
https://github.com/cowboyd/libv8/issues/107#issuecomment-26146673
You can actually install that version on Mavericks:
gem install libv8 -v 3.11.8.17 -- --with-system-v8
I can confirm this works with rbenv and ruby 1.9.3p448
See a similar thread here Installing libv8 gem on OS X 10.9+
You need to reinstall libv8
$ gem uninstall libv8
$ brew install v8
$ gem install therubyracer
Try with
gem "therubyracer", "~> 0.10.2" to Gemfile
And it will install dependent gem libv8 (3.3.10.4) and the issue of build gem native extension failure got resolve.
try upgrading your ruby to the highest patch level. libv8 and the rubyracer gem installed right away after I upgraded ruby-1.8.7 after going from p357 to p375.
Follow the below commands, this will solve the problem for sure:
gem install rmagick -v '2.13.2'
and then do:
gem install libv8 -v 3.11.8.17 -- --with-system-v8
I'm trying to use capistrano to deploy, and it fails because of a rubyracer gem issue.
I tried adding the following variants to gemfile and then deploying to a production server on ubuntu and nothing works:
1)
gem 'libv8', '3.11.8.3'
3)
gem 'therubyracer'
gem 'libv8', '3.3.10.4'
4)
gem 'libv8', '~> 3.11.8.3'
It all gives the same error:
An error occured while installing therubyracer (0.11.0), and Bundler cannot continue.
Make sure that gem install therubyracer -v '0.11.0' succeeds before bundling.
So I try this instead:
group :production do
gem 'therubyracer', '0.10.2', :platforms => :ruby
end
But that causes this error:
Bundler could not find compatible versions for gem "libv8":
In Gemfile:
therubyracer (= 0.10.2) ruby depends on
libv8 (~> 3.3.10) ruby
libv8 (3.11.8.3)
It seems I currently have two version of lib8 on server:
libv8 (3.11.8.4, 3.3.10.4 x86_64-linux)
Any ideas?
After hours of trying solutions from stackoverflow, I got an easy fix from this site with just 2 commands, the author mentioned that
When installing therubyracer gem you may run into this problem on a
fresh machine install.
http://usefulprogrammingshit.drmcnasty.com/?p=12
sudo apt-get install g++
sudo apt-get install build-essential
I know nothing of ruby so you would need to research more about this solution, but after all, "therubyracer 0.12.2" is installed on ubuntu 14.04. I hope it could help.
Just uninstall both libv8 from your machine
Terminal
gem uninstall libv8
In terminal, You will be prompt to select which version do you want to uninstall like this:
libv8 3.3.10.4 x86_64-linux
libv8 3.11.8.4 x86_64-linux
All
Select 3 and hit enter(return key). It will uninstall your both libv8 versions installed in your machine.
Now, in your Gemfile just include therubyracer without libv8 and bundle install
gem 'therubyracer'
bundle install
It will work
At the command line of the production server do
gem install therubyracer
try node.js as your runtime javascript environment, but not libv8.
if you insist on libv8, don't specify the version. it seems that there's conflicts on the versions. e.g. in your Gemfile:
gem 'therubyracer'
gem 'libv8'