tobsch / mediaelement_rails

An easy as hell mediaelementjs rails integration for asset pipeline enabled apps...
MIT License
106 stars 49 forks source link

Trouble installing gem #8

Closed itgod closed 10 years ago

itgod commented 12 years ago

$ gem install mediaelement_rails -v '0.3.2' Fetching: mediaelement_rails-0.3.2.gem (100%) ERROR: Error installing mediaelement_rails: invalid gem format for /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/cache/mediaelement_rails-0.3.2.gem

deleted /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/cache/mediaelement_rails-0.3.2.gem few times, same effect.

$ ruby --version ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]

$ gem --version 1.8.12

$ uname -a Darwin iRuslan 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

itgod commented 12 years ago

$ gem unpack mediaelement_rails-0.3.2.gem --debug Exception NameError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::UnpackCommand ExceptionGem::LoadError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247 - Could not find psych (>= 1.2.1, ~> 1.2) amongst [XMLCanonicalizer-1.0.1, abstract-1.0.0, actionmailer-3.2.0, actionmailer-3.1.3, actionmailer-3.1.1, actionmailer-3.0.7, actionpack-3.2.0, actionpack-3.1.3, actionpack-3.1.1, actionpack-3.0.7, active_utils-1.0.1, activemerchant-1.20.1, activemerchant-1.18.1, activemodel-3.2.0, activemodel-3.1.3, activemodel-3.1.1, activemodel-3.0.7, activerecord-3.2.0, activerecord-3.1.3, activerecord-3.1.1, activerecord-3.0.7, activeresource-3.2.0, activeresource-3.1.3, activeresource-3.1.1, activeresource-3.0.7, activesupport-3.2.0, activesupport-3.1.3, activesupport-3.1.1, activesupport-3.0.7, addressable-2.2.6, arel-3.0.2, arel-2.2.3, arel-2.2.1, arel-2.0.10, authorize-net-1.5.2, aws-s3-0.6.2, bcrypt-ruby-3.0.1, bcrypt-ruby-2.1.4, bigdecimal-1.1.0, braintree-2.13.2, braintree-2.12.0, bson-1.3.1, bson_ext-1.3.1, builder-3.0.0, builder-2.1.2, bundle-0.0.1, bundlException OptionParser::InvalidOption' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/optparse.rb:1542 - invalid option: no-ri ExceptionOptionParser::InvalidOption' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/optparse.rb:1356 - invalid option: --no-ri Exception OptionParser::InvalidOption' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/optparse.rb:1542 - invalid option: no-rdoc ExceptionOptionParser::InvalidOption' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/optparse.rb:1356 - invalid option: --no-rdoc Exception NoMethodError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:57 - undefined methodreadpartial' for #Gem::Package::TarReader::Entry:0x007fea94bd51b0 Exception ArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:71 - invalid value for Integer(): "0.3.2" ExceptionArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:72 - invalid value for Float(): "0.3.2" Exception ArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:71 - invalid value for Integer(): ">=" ExceptionArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:72 - invalid value for Float(): ">=" Exception ArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:71 - invalid value for Integer(): ".gitignore" ExceptionArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:72 - invalid value for Float(): ".gitignore" Exception ArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:71 - invalid value for Integer(): "1.8.9" ExceptionArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb:72 - invalid value for Float(): "1.8.9" Exception ArgumentError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader/entry.rb:67 - string contains null byte ExceptionGem::Package::TarInvalidError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader/entry.rb:73 - tar is corrupt, name contains null byte Exception IOError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45 - closed stream ExceptionGem::Package::FormatError' at /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50 - corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in mediaelement_rails-0.3.2.gem ERROR: While executing gem ... (Gem::Package::FormatError) corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in mediaelement_rails-0.3.2.gem /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:50:in rescue in from_file_by_path' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:44:infrom_file_by_path' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:249:in unpack' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/unpack_command.rb:73:inblock in execute' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/unpack_command.rb:47:in each' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/commands/unpack_command.rb:47:inexecute' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in invoke' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:inprocess_args' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in run' /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:inrun' /usr/local/bin/gem:21:in `

'

khaled commented 12 years ago

Having a similar problem. In my gemfile:

gem 'mediaelement_rails'

When I bundle install:

Gem::Package::FormatError: corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in /Users/kagrama/.rvm/gems/ruby-1.9.2-p290/cache/mediaelement_rails-0.3.2.gem An error occured while installing mediaelement_rails (0.3.2), and Bundler cannot continue. Make sure that gem install mediaelement_rails -v '0.3.2' succeeds before bundling

$ gem --version 1.8.10

$ bundle --version Bundler version 1.0.21

martron commented 12 years ago

+1 just ran into this issue corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in .../ruby/1.8/cache/mediaelement_rails-0.3.2.gem

gem --version 1.8.17

bundle --version Bundler version 1.0.15

gunn commented 12 years ago

Same trouble.

As a workaround for now:

gem "mediaelement_rails", git: "git://github.com/tobsch/mediaelement_rails.git"
rubysolo commented 12 years ago

+1

ruby 1.9.3p0, rubygems 1.8.17, bundler 1.1.0

urtubia commented 12 years ago

Same issue here

ruby-1.9.2-p290 rubygems 1.8.16 bundler 1.0.22

manitou2k commented 12 years ago

Same issue for me when pushing to Heroku:

ArgumentError: string contains null byte An error occurred while installing mediaelement_rails (0.3.2), and Bundler cannot continue. Make sure that gem install mediaelement_rails -v '0.3.2' succeeds before bundling.

Thanks @gunn for the work around,

fusion2004 commented 10 years ago

Were these issues resolved with the release of an earlier version? @manitou2k @urtubia @rubysolo @gunn @martron @khaled @rdoroshenko

fusion2004 commented 10 years ago

Closing this, I've been unable to reproduce and no responses to my ping above. If anyone has issues like these, please open a new issue.