TypeError: incompatible marshal file format (can't be read)

Zlatko Asenov zlatko.asenov at gmail.com
Sat Jun 9 13:30:21 UTC 2012


Hi,

I installed www/rubygem-rails but when I do 'rails new simple_cms -d
postgresql' I get the error:

TypeError: incompatible marshal file format (can't be read)
        format version 4.8 required; 46.252 given
An error occured while installing sprockets (2.1.3), and Bundler
cannot continue.
Make sure that `gem install sprockets -v '2.1.3'` succeeds before bundling.

I have the gem sprockets installed properly from ports. Also tried to
install it with `gem install sprockets -v '2.1.3'` command for just in
case. Install succeeds, but the error still stands and 'rails new
simple_cms -d postgresql' stops as before.

Executing 'rails new simple_cms -d postgresql --skip-sprockets'  ends
with the error above.

I use FreeBSD 9.0-RELEASE-p2 in VirtualBox.

Tried to remove the ~/.gem directory and got this:

%rm -fr ~/.gem*
rm: /home/zodias/.gem/specs/rubygems.org%443/quick/Marshal.4.8/sprockets-2.1.3.gemspec:
Operation not permitted
rm: /home/zodias/.gem/specs/rubygems.org%443/quick/Marshal.4.8:
Directory not empty
rm: /home/zodias/.gem/specs/rubygems.org%443/quick: Directory not empty
rm: /home/zodias/.gem/specs/rubygems.org%443: Directory not empty
rm: /home/zodias/.gem/specs: Directory not empty
rm: /home/zodias/.gem: Directory not empty
%

When I execute 'rm -fr /usr/home/zodias/.gem*' as a root the system reboots.

I can provide further information if needed.

Can you help?

Best regards,

Zlatko Asenov


More information about the freebsd-ruby mailing list