Skip to content

Marshal data too short error when installing default gems #150

@javierav

Description

@javierav

Hi.

I'm receiving the following error message when installing default gems after install a new ruby version using asdf:

Running: gem install pry  ... FAIL: ERROR:  While executing gem ... (ArgumentError)
    marshal data too short

Steps to reproduce

Place pry in ~/.default-gems

$ cat ~/.default-gems
pry

Install ruby 2.6.5

$ asdf install ruby 2.6.5
Downloading ruby-build...

.....

Downloading ruby-2.6.5.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.bz2
Installing ruby-2.6.5...
ruby-build: using readline from homebrew
Installed ruby-2.6.5 to /Users/user/.asdf/installs/ruby/2.6.5

Running: gem install pry  ... FAIL: ERROR:  While executing gem ... (ArgumentError)
    marshal data too short
Successfully installed method_source-0.9.2
Successfully installed coderay-1.1.2
Successfully installed pry-0.12.2

If then list the installed gems, pry is listed:

$ gem list

*** LOCAL GEMS ***

.....

pry (0.12.2)

Any idea what might be happening? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions