捆绑安装时出现Rails 4.0.2 spree_i18n错误

戈贝尔特里

昨天,当我尝试捆绑安装spree_i18n(2-1稳定)时,发生了意外中断。现在,我再次尝试,但出现此错误:

Fetching git://github.com/spree/spree_i18n.git
remote: Reusing existing pack: 5457, done.
remote: Counting objects: 1, done.
remote: Total 5458 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (5458/5458), 5.43 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (2586/2586), done.
fatal: index file smaller than expected
Retrying git fetch --force --quiet --tags "/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c"` in directory /usr/local/rvm/gems/ruby-2.1.0/bundler/gems/spree_i18n-a2c64740cdc7 has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c'
fatal: index file smaller than expected
Retrying git fetch --force --quiet --tags "/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c"` in directory /usr/local/rvm/gems/ruby-2.1.0/bundler/gems/spree_i18n-a2c64740cdc7 has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c'
fatal: index file smaller than expected
Git error: command `git fetch --force --quiet --tags
"/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c"` in directory
/usr/local/rvm/gems/ruby-2.1.0/bundler/gems/spree_i18n-a2c64740cdc7 has failed.
If this error persists you could try removing the cache directory
'/usr/local/rvm/gems/ruby-2.1.0/cache/bundler/git/spree_i18n-9ca2061df39e8ec5a8680e02b37a93a3750bd57c'

我尝试删除错误中指定的目录,但结果相同。

我的Gemfile看起来像这样:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
#gem 'jquery-rails'
gem 'jquery-rails', '~> 3.0.0'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

# Spree
gem 'spree', github: 'spree/spree', branch: '2-1-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable'
gem 'spree_paypal_express', :github => "radar/better_spree_paypal_express", :branch => "2-1-stable"
gem 'spree_fancy', :github => "spree/spree_fancy", :branch => "2-1-stable"
gem 'spree_reviews', github: 'spree/spree_reviews', branch: '2-1-stable'
gem 'spree_wishlist', :git => 'git://github.com/spree/spree_wishlist.git', :branch => "2-1-stable"
gem 'spree_email_to_friend', :git => 'git://github.com/spree/spree_email_to_friend.git', :branch => "2-1-stable"
gem 'deface', github: 'spree/deface'
gem 'spree_i18n', github: 'spree/spree_i18n', branch: '2-1-stable'

知道如何解决这个问题吗?

戈贝尔特里

好的,我解决了这个问题。如果有人遇到相同的问题,我写此替代方法只是为了提供信息。

我在我的红宝石版本的bundler下进入目录gems,发现为spree_i18n创建了4个不同的目录。我只是更改了所有这些文件的名称,然后从我的应用目录中再次尝试捆绑安装。现在,一切正常,并将模块添加到捆绑包中。

guillermo@willylaptop:/usr/local/rvm/gems/ruby-2.1.0/bundler/gems$ ll
total 88
drwxrwsr-x 22 guillermo rvm 4096 Feb  6 14:08 ./
drwxrwsr-x  3 guillermo rvm 4096 Jan 27 18:42 ../
drwxrwxr-x  9 guillermo rvm 4096 Feb  8 17:06 better_spree_paypal_express-f385bbe229c9/
drwxrwxr-x  7 guillermo rvm 4096 Feb  8 17:06 deface-607524622705/
drwxrwxr-x  9 guillermo rvm 4096 Feb  8 17:06 spree_auth_devise-f6f91480655b/
drwxrwxr-x 10 guillermo rvm 4096 Feb  8 17:06 spree-b328e2487bfc/
drwxrwxr-x  8 guillermo rvm 4096 Feb  8 17:06 spree_email_to_friend-f6483b4d8dba/
drwxrwxr-x 10 guillermo rvm 4096 Feb  8 17:06 spree_fancy-d6b6cf03b1f6/
drwxrwxr-x 10 guillermo rvm 4096 Jan 30 14:41 spree-ffda7917903a/
drwxrwxr-x  9 guillermo rvm 4096 Jan 30 14:41 spree_gateway-04c51e6bd24e/
drwxrwxr-x  9 guillermo rvm 4096 Jan 31 09:48 spree_gateway-ab4dcb885418/
drwxrwxr-x 10 guillermo rvm 4096 Jan 30 14:09 spree_i18n-2398a7064abe/
drwxrwxr-x 10 guillermo rvm 4096 Jan 31 09:48 spree_i18n-7b1061b06199/
drwxrwxr-x 10 guillermo rvm 4096 Feb  6 14:08 spree_i18n-a2c64740cdc7/
drwxrwxr-x 10 guillermo rvm 4096 Jan 27 20:01 spree_i18n-a5ab8c91b4dd/
drwxrwxr-x  9 guillermo rvm 4096 Jan 29 14:48 spree-product-assembly-30c8ea090e4a/
drwxrwxr-x  9 guillermo rvm 4096 Jan 31 09:48 spree-product-assembly-586ba3923b64/
drwxrwxr-x  9 guillermo rvm 4096 Jan 29 13:27 spree-product-assembly-85cecdfc828d/
drwxrwxr-x 10 guillermo rvm 4096 Feb  8 17:06 spree_reviews-30c7518d65e4/
drwxrwxr-x  8 guillermo rvm 4096 Jan 31 09:48 spree_static_content-5966c16c9ef1/
drwxrwxr-x  8 guillermo rvm 4096 Jan 30 14:05 spree_static_content-6ac885b6f8c2/
drwxrwxr-x  8 guillermo rvm 4096 Feb  8 17:06 spree_wishlist-56f1f230b0bc/
guillermo@willylaptop:/usr/local/rvm/gems/ruby-2.1.0/bundler/gems$ mv spree_i18n-2398a7064abe/ spree_i18n-2398a7064abe.bck
guillermo@willylaptop:/usr/local/rvm/gems/ruby-2.1.0/bundler/gems$ mv spree_i18n-7b1061b06199/ spree_i18n-7b1061b06199.bck
guillermo@willylaptop:/usr/local/rvm/gems/ruby-2.1.0/bundler/gems$ mv spree_i18n-a2c64740cdc7/ spree_i18n-a2c64740cdc7.bck
guillermo@willylaptop:/usr/local/rvm/gems/ruby-2.1.0/bundler/gems$ mv spree_i18n-a5ab8c91b4dd/ spree_i18n-a5ab8c91b4dd-bck

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

EXT4-fs (sda2):写入超级块时出现 I/0 错误

来自分类Dev

fsck:对/ dev / md0执行fsck.ext4时出现错误2(无此类文件或目录)

来自分类Dev

尝试进行双引导安装:在SCSI2的分区#1(0、0、0)中对类型为ext4的文件系统进行测试,发现未更正的错误

来自分类Dev

尝试进行双引导安装:在SCSI2的分区#1(0、0、0)中对类型为ext4的文件系统进行测试,发现未更正的错误

来自分类Dev

在OSGi中安装捆绑软件时出现激活错误

来自分类Dev

为什么不使用“ sudo”捆绑安装时出现错误?

来自分类Dev

当我运行捆绑安装时,bcrypt gem出现错误

来自分类Dev

安装magento2时出现错误

来自分类Dev

安装magento2时出现错误

来自分类Dev

加载共享库时如何解决错误:安装BOINC时出现libwx_gtk2u_html-2.8.so.0?

来自分类Dev

“ conn 0x7f7d6c001610错误:i = -2 errno = 11状态= 4 rc = 3 br = 721”出现在nxweb日志中

来自分类Dev

我安装了Kali linux,并使用EasyBcd配置了Grub2。当我尝试启动进入Kali ay时,出现错误0xc0000225

来自分类Dev

在Windows Server 2012 R2上安装Microsoft Visual C ++ 2015可重新分发时出现错误0x80240017

来自分类Dev

Spree_i18n前端自定义语言环境

来自分类Dev

i18n rails 4生产错误。不发展

来自分类Dev

创建捆绑软件时出现Symfony2权限被拒绝错误

来自分类Dev

创建用户提交表单时,Ruby on Rails 4中的参数数量错误(0为1)

来自分类Dev

安装psycopg2时出现致命错误

来自分类Dev

安装Scratch 2时出现Adobe Air错误

来自分类Dev

在带有RVM的Linux Mint上运行“捆绑安装”时,出现许多临时的UnknownHost错误

来自分类Dev

捆绑安装时令人讨厌的“获取时出现网络错误”

来自分类Dev

错误:尝试安装捆绑软件时出现“设备上没有剩余空间”

来自分类Dev

错误:尝试安装捆绑软件时出现“设备上没有剩余空间”

来自分类Dev

在带有RVM的Linux Mint上运行“捆绑安装”时,出现许多临时的UnknownHost错误

来自分类Dev

无法转换为颜色:在片段中扩大布局时会出现type = 0x2错误,但仅限于Samsung Galaxy和Note 4

来自分类Dev

无法转换为颜色:在片段中扩大布局时会出现type = 0x2错误,但仅限于Samsung Galaxy和Note 4

来自分类Dev

为什么 int arr[]={0,3,2,4,5,6,7}; 给出错误和 int arr[7]={0,3,2,4,5,6,7}; 不是

来自分类Dev

u-boot bootdelay = 2,当启动ext4时,bootdelay = 0,当启动fat时,

来自分类Dev

错误:Conf apache2-doc不存在!安装libpng12-0时

Related 相关文章

  1. 1

    EXT4-fs (sda2):写入超级块时出现 I/0 错误

  2. 2

    fsck:对/ dev / md0执行fsck.ext4时出现错误2(无此类文件或目录)

  3. 3

    尝试进行双引导安装:在SCSI2的分区#1(0、0、0)中对类型为ext4的文件系统进行测试,发现未更正的错误

  4. 4

    尝试进行双引导安装:在SCSI2的分区#1(0、0、0)中对类型为ext4的文件系统进行测试,发现未更正的错误

  5. 5

    在OSGi中安装捆绑软件时出现激活错误

  6. 6

    为什么不使用“ sudo”捆绑安装时出现错误?

  7. 7

    当我运行捆绑安装时,bcrypt gem出现错误

  8. 8

    安装magento2时出现错误

  9. 9

    安装magento2时出现错误

  10. 10

    加载共享库时如何解决错误:安装BOINC时出现libwx_gtk2u_html-2.8.so.0?

  11. 11

    “ conn 0x7f7d6c001610错误:i = -2 errno = 11状态= 4 rc = 3 br = 721”出现在nxweb日志中

  12. 12

    我安装了Kali linux,并使用EasyBcd配置了Grub2。当我尝试启动进入Kali ay时,出现错误0xc0000225

  13. 13

    在Windows Server 2012 R2上安装Microsoft Visual C ++ 2015可重新分发时出现错误0x80240017

  14. 14

    Spree_i18n前端自定义语言环境

  15. 15

    i18n rails 4生产错误。不发展

  16. 16

    创建捆绑软件时出现Symfony2权限被拒绝错误

  17. 17

    创建用户提交表单时,Ruby on Rails 4中的参数数量错误(0为1)

  18. 18

    安装psycopg2时出现致命错误

  19. 19

    安装Scratch 2时出现Adobe Air错误

  20. 20

    在带有RVM的Linux Mint上运行“捆绑安装”时,出现许多临时的UnknownHost错误

  21. 21

    捆绑安装时令人讨厌的“获取时出现网络错误”

  22. 22

    错误:尝试安装捆绑软件时出现“设备上没有剩余空间”

  23. 23

    错误:尝试安装捆绑软件时出现“设备上没有剩余空间”

  24. 24

    在带有RVM的Linux Mint上运行“捆绑安装”时,出现许多临时的UnknownHost错误

  25. 25

    无法转换为颜色:在片段中扩大布局时会出现type = 0x2错误,但仅限于Samsung Galaxy和Note 4

  26. 26

    无法转换为颜色:在片段中扩大布局时会出现type = 0x2错误,但仅限于Samsung Galaxy和Note 4

  27. 27

    为什么 int arr[]={0,3,2,4,5,6,7}; 给出错误和 int arr[7]={0,3,2,4,5,6,7}; 不是

  28. 28

    u-boot bootdelay = 2,当启动ext4时,bootdelay = 0,当启动fat时,

  29. 29

    错误:Conf apache2-doc不存在!安装libpng12-0时

热门标签

归档