Bundler cant read autoprefixer-rails-6.0.3.gem - ruby-on-rails

Bundler is throwing an error could not read the gem & that it may be corrupted.
Bundler::GemspecError: Could not read gem at /home/pragadeesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/autoprefixer-rails-6.0.3.gem. It may be corrupted.
An error occurred while installing autoprefixer-rails (6.0.3), and Bundler cannot continue.
Make sure that `gem install autoprefixer-rails -v '6.0.3'` succeeds before bundling.
i dont know how to resolve this problem ? please help me out.

Try this:
$ rm -f /home/pragadeesh/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/autoprefixer-rails-6.0.3.gem
$ gem install autoprefixer-rails

Related

"An error occurred while installing eventmachine" with version 1.0.8

Can someone help me to solve this problem:
An error occurred while installing eventmachine (1.0.8), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.8'` succeeds before bundling.
It comes after I do: "bundle install" in my environment.
Thanks!
Create a reference for the OpenSSl gem was the key. I did something like this:
gem install eventmachine -v '1.0.8' -- --with-cppflags=-I/usr/local/opt/openssl/include
and finally worked for me.
Thanks #Jack and #Jww for his help.

annoying libv8 error even after successful install

okay. I am trying bootstarp for the first time and I added gems "therubyracer" and "less-rails" to my gemfile along with 'twitter-bootstrap-rails'. After
bundle install
I get following error.
Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
as it says, I tried:
gem install libv8 -v '3.16.14.3'
and it does succeeds.
Building native extensions. This could take a while...
Successfully installed libv8-3.16.14.3
Parsing documentation for libv8-3.16.14.3
Done installing documentation for libv8 after 0 seconds
1 gem installed
but when I try bundle install again, I get the same error as before:
Bundler::GemspecError: Could not read gem at /home/addie/.rvm/gems/ruby-2.1.1/cache/libv8-3.16.14.3-x86_64-linux.gem. It may be corrupted.
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
Its so annoying! Can someone please help me?
EDIT:
As most of the solution to libv8 questions suggest, I tried
gem install libv8 -v '3.11.8.17' -- --with-system-v8
it succeeds too but makes no difference to bundle install error.
Try following steps:
Remove current libv8 version
gem uninstall libv8
Re-install libv8
gem install libv8
Check new version number
gem list | grep libv
Update Gemfile to the installed version of libv8 obtained from (3) above
gem 'libv8', '3.11.8.3' #for example
Try bundling again
bundle install

Bundle install throwing error

I am getting the following error when I try to run bundle install
Bundler::GemspecError: Could not read gem at /usr/local/rvm/gems/ruby-1.9.3-p484#rails3tutorial/cache/turbolinks-2.1.0.gem. It may be corrupted.
An error occurred while installing turbolinks (2.1.0), and Bundler cannot continue.
Make sure that `gem install turbolinks -v '2.1.0'` succeeds before bundling.
Even if in install the above said gem and rub bundle install it throws a similar error and asks me to make sure an another gem is installed and this goes on and on.
I am using Rails 4.0.2 and ruby 1.9.3p484.
Maybe the file cache got corrupted. Try:
bundle install --no-cache
If this does not work, delete the cache directory and try again:
rm -rf /usr/local/rvm/gems/ruby-1.9.3-p484#rails3tutorial/cache
bundle install
I just had this problem with the bcrypt gem
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Bundler::GemspecError: Could not read gem at /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem. It may be
corrupted.
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
The /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem file was 0 bytes; removing this file or using the --no-cache option didn't help.
Using gem install bcrypt -v '3.1.7' did work, so I copied ~/.gem/ruby/2.1.0/cache/bcrypt-3.1.7.gem to /data/code/mdweb/vendor/bundle/ruby/2.1.0/cache/bcrypt-3.1.7.gem and that allowed me to continue. You could also fetch the .gem file from http://rubygems.org if you can't find it on your system.
I suspect there's some sort of connection issue with bundler (but not with gem for some reason); I suspect DNS since there's an unusual long wait before I get an error, but didn't investigate further.

How to put metadata in sqlite3-1.3.4-x86-mingw32.gem

I perform bundle install but it cannot continue because of sqlite3 it always returns to:
Gem::Package::FormatError: no metadata found in C:/RailsInstaller/Ruby1.9.3/lib/
ruby/gems/1.9.1/cache/sqlite3-1.3.4-x86-mingw32.gem
An error occured while installing sqlite3 (1.3.4), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.3.4' succeeds before bundling.
How will I resolve this issue?
simply run gem install sqlite3 -v '1.3.4' this should fix the issue. Its because the gem is not included it the list of dependencies so running the command will fix it up

aws-s3 gem install error- bittorrent.rb

Am running build install on an existing project and I get this error:
Installing aws-s3 (0.6.2)
Errno::EACCES: Permission-denied -
D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/aws-s3-0.6.2/lib/aws/s3/bittorrent.rb
An error occured while installing aws-s3 (0.6.2) and Bundler cannot
continue, make sure that gem install aws-s3 -v '0.6.2' succeeds before
bundling.
I get the same error if I just run "gem install aws-s3 -v '0.6.2'"
Doing this on Windows 7, and I am making sure to run the prompt as
administrator.
Any ideas how to get past this?
Try following:
In your Gemfile or wherever you have specified the gems list and replace source 'https' with this source 'http' otherwise it will keep on asking Make sure that gem install xxx -v 'xxx'' succeeds before bundling.
Do bundle install or rails new todo

Resources