[ANN] Erubis 2.6.1 released - Rails 2.1 support

R

R. Elliott Mason

This doesn't install for me, at least on Windows.

ERROR: While executing gem ... (Errno::EINVAL)
Invalid argument -
c:/ruby/lib/ruby/gems/1.8/gems/erubis-2.6.1/lib/erubis/co
nverter.rb:

There's this (bogus?) file called "converter.rb:" (colon at the end)
that ruins everything prematurely. It's a 0-byte file and I believe
it's unneeded and doesn't belong.

This is causing me a lot more grief than expected. A lot of other gems
I am trying to install (merb, for example) depend on erubis and despite
the fact that I have erubis 2.6.0 installed, every gem keeps keeps
trying to install 2.6.1. If I --ignore-dependencies that causes crucial
parts of the gem(s) to not get installed. I tried fixing it myself by
removing convert.rb: but for some reason that ruins the gem and then I
can't install it at all. Any help would be appreciated.

(Is there a way to install a gem while ignoring only a specific
dependency?)
 
M

Mike Hodgson

This doesn't install for me, at least on Windows.

ERROR:  While executing gem ... (Errno::EINVAL)
    Invalid argument -
c:/ruby/lib/ruby/gems/1.8/gems/erubis-2.6.1/lib/erubis/co
nverter.rb:

There's this (bogus?) file called "converter.rb:" (colon at the end)
that ruins everything prematurely.  It's a 0-byte file and I believe
it's unneeded and doesn't belong.

Hello,

I'm receiving this exact same error on Windows, except there is no
"converter.rb:" (with the colon) being created in my case.

Regards,
Mike Hodgson
 
R

R. Elliott Mason

It doesn't get created for me either. It's a file within the gem. If
you download the gem file from the website, rename it .zip and crawl
through it as an archive you'll find converter.rb: within the gem
itself. I think the colon at the end prevents it from being copied when
you try to install. At least on Windows, you can't have colons in
filenames, which is maybe why the gem can't be installed.
 
L

Lee Jeffery

It doesn't get created for me either.  It's a file within the gem.  If
you download the gem file from the website, rename it .zip and crawl
through it as an archive you'll find converter.rb: within the gem
itself.  I think the colon at the end prevents it from being copied when
you try to install.  At least on Windows, you can't have colons in
filenames, which is maybe why the gem can't be installed.

Same problem here, but you can install it if you download the .tar.bz2
from RubyForge and package it yourself.
http://rubyforge.org/frs/download.php/37947/erubis-2.6.1.tar.bz2

Just extract it somewhere, then change into the directory and do the
following:
gem build erubis.gemspec
gem install --local erubis-2.6.1.gem
 
R

R. Elliott Mason

Yeah I was JUST about to post that here. I didn't realize I could do
that until a few minutes ago. Got it installed now.
 
M

makoto kuwata

R. Elliott Mason said:
It doesn't get created for me either.  It's a file within the gem.  If
you download the gem file from the website, rename it .zip and crawl
through it as an archive you'll find converter.rb: within the gem
itself.  I think the colon at the end prevents it from being copied when
you try to install.  At least on Windows, you can't have colons in
filenames, which is maybe why the gem can't be installed.

I have released Erubis 2.6.2 which fixed the above problem.
(And Erubis now supports Ruby 1.9.)
Thank you for our report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top