$ bundle update
Fetching gem metadata from http://rubygems.org/..Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/fetcher.rb:168:in `load': marshal data too short (ArgumentError)
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/fetcher.rb:168:in `fetch_dependency_remote_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/fetcher.rb:125:in `fetch_remote_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/fetcher.rb:128:in `fetch_remote_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/fetcher.rb:73:in `specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/source.rb:234:in `block in remote_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/source.rb:232:in `each'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/source.rb:232:in `remote_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/source.rb:165:in `fetch_specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/source.rb:70:in `specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:191:in `block (2 levels) in index'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:188:in `each'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:188:in `block in index'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/index.rb:9:in `build'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:184:in `index'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:178:in `resolve'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:113:in `specs'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/definition.rb:108:in `resolve_remotely!'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/installer.rb:81:in `run'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/installer.rb:14:in `install'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/cli.rb:291:in `update'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in `run'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in `start'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/bin/bundle:14:in `block in <top (required)>'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /Users/macbook/.rvm/gems/[email protected]/gems/bundler-1.2.3/bin/bundle:14:in `<top (required)>'
from /Users/macbook/.rvm/gems/[email protected]/bin/bundle:19:in `load'
from /Users/macbook/.rvm/gems/[email protected]/bin/bundle:19:in `<main>'
from /Users/macbook/.rvm/gems/[email protected]/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/macbook/.rvm/gems/[email protected]/bin/ruby_noexec_wrapper:14:in `<main>'
9
A
Trả lời
8
Cố gắng thay đổi từ HTTP thành HTTPS trong Gemfile của bạn:
Thay đổi:
source 'http://rubygems.org'
Để:
source 'https://rubygems.org'
Acording bài viết này từ Hacker News, Rubygems.org was compromised. Thông tin khác: Marshal data too short error và https for rubygems.org in the Gemfile?
5
$ gem list
*** LOCAL GEMS ***
bundler (1.2.3)
....
$ sudo gem install bundler
Password:
Fetching: bundler-1.2.3.gem (100%)
Successfully installed bundler-1.2.3
1 gem installed
$ bundle update
Fetching gem metadata from http://rubygems.org/.........
Installing.....
.... .... .....
Your bundle is updated!
5
tôi đã có lỗi tương tự (dưới RVM). Nó đã biến mất sau:
rvm repair all
Hy vọng điều này sẽ hữu ích.
Các vấn đề liên quan
- 1. Composer cài đặt/cập nhật thất bại
- 2. ruby - bó cài đặt/cập nhật quá chậm
- 3. Cơ sở dữ liệu fetchrow_array thất bại dài cắt ngắn DBI thuộc tính
- 4. PhoneGap thất bại camera khi lấy dữ liệu
- 5. Thất bại/Thất bại Omniauth: Cách gỡ lỗi?
- 6. Cập nhật JPA dữ liệu Spring @Query không cập nhật?
- 7. Maven Build thất bại - thất bại trong việc tìm plugin
- 8. Tại sao mod_wsgi không thể ghi dữ liệu? IOError: thất bại trong việc ghi dữ liệu
- 9. WCF REST: WebHost thất bại trong quá trình yêu cầu
- 10. Ngay lập tức = "true" làm cho cập nhật = "thành phần" thành thất bại
- 11. d3 cập nhật dữ liệu và cập nhật đồ thị
- 12. Thất bại thảm họa WCF
- 13. Tại sao C# ProcessStartInfoRedirectStandardOutput gây xcopy quá trình thất bại
- 14. Cập nhật SQL trong bộ dữ liệu
- 15. Không thể mở cơ sở dữ liệu được yêu cầu bởi thông tin đăng nhập. Đăng nhập thất bại. Đăng nhập thất bại cho người dùng
- 16. C# HttpWebRequest POST'ing thất bại
- 17. "dữ liệu soái Bad" Django máy chủ phát triển lỗi
- 18. Cập nhật JSF Ajax khiến commandLink thất bại tại lần nhấp đầu tiên
- 19. Mysql rollback giao dịch trên thất bại trong bản cập nhật
- 20. Không thể xóa hoặc cập nhật hàng mẹ: một ràng buộc khoá ngoại thất bại
- 21. Ant thất bại trong việc xây dựng apk ký sau khi cập nhật lên v20 android
- 22. Lion OS - cập nhật brew lợi nhuận "Thất bại trong khi thực hiện ..."
- 23. brew cập nhật thất bại trong khi thực hiện git checkout
- 24. Thất bại khi xây dựng maven-antrun-plugin thất bại
- 25. dữ liệu lỗi cắt ngắn - Dữ liệu quá dài cho cột
- 26. Cập nhật dữ liệu VBO với glBufferSubData()
- 27. Cập nhật dữ liệu trong Arrayadapter
- 28. Cập nhật bộ dữ liệu h5py
- 29. ActiveRecord không cập nhật dữ liệu
- 30. Cập nhật dữ liệu trong Slick Grid
Xin chào, tôi có thể tìm thấy gemfile ở đâu? Tôi không phải là Chuyên gia Linux và tôi đã tìm kiếm ở mọi nơi. Cám ơn. –
@Paul Fournel, hãy xem thư mục gốc ứng dụng của bạn. Đó là cùng một nơi mà bạn chạy lệnh "rails s". Trong trường hợp của tôi, nó là/home/kosh/projects/rails_app1/Gemfile. –