[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problems installing rubyzip gem on Debian...can someone help?

subimage

7/18/2006 11:59:00 AM

I haven't had issues with it before, but now I am...I go to install
rubyzip via gems and I'm getting this on a fresh Debian box:

-> sudo gem install rubyzip
Attempting local installation of 'rubyzip'
Local gem file not found: rubyzip*.gem
Attempting remote installation of 'rubyzip'
ERROR: While executing gem ... (ArgumentError)
parse error on line 0, col 31: `!ruby/object:Gem::Specification '

Anyone know what's going wrong?

9 Answers

Trans

7/18/2006 3:20:00 PM

0


subimage wrote:
> I haven't had issues with it before, but now I am...I go to install
> rubyzip via gems and I'm getting this on a fresh Debian box:
>
> -> sudo gem install rubyzip
> Attempting local installation of 'rubyzip'
> Local gem file not found: rubyzip*.gem
> Attempting remote installation of 'rubyzip'
> ERROR: While executing gem ... (ArgumentError)
> parse error on line 0, col 31: `!ruby/object:Gem::Specification '
>
> Anyone know what's going wrong?

col 31 is at the end of that line. What's that blank space there?

BTW. Is rubyzip a pure Ruby lib or does it use a backend of some sort?

T.


Daniel Harple

7/18/2006 3:35:00 PM

0

On Jul 18, 2006, at 8:00 AM, subimage wrote:

> I haven't had issues with it before, but now I am...I go to install
> rubyzip via gems and I'm getting this on a fresh Debian box:
>
> -> sudo gem install rubyzip
> Attempting local installation of 'rubyzip'
> Local gem file not found: rubyzip*.gem
> Attempting remote installation of 'rubyzip'
> ERROR: While executing gem ... (ArgumentError)
> parse error on line 0, col 31: `!ruby/object:Gem::Specification '
>
> Anyone know what's going wrong?

Maybe you ran into this problem: http://onestepback.org/...
Tech/Ruby/DeleteYourCache.red

-- Daniel

subimage

7/18/2006 7:20:00 PM

0

Thanks I tried that, but it's still giving me the same damn error.

Daniel Harple wrote:
> On Jul 18, 2006, at 8:00 AM, subimage wrote:
>
> > I haven't had issues with it before, but now I am...I go to install
> > rubyzip via gems and I'm getting this on a fresh Debian box:
> >
> > -> sudo gem install rubyzip
> > Attempting local installation of 'rubyzip'
> > Local gem file not found: rubyzip*.gem
> > Attempting remote installation of 'rubyzip'
> > ERROR: While executing gem ... (ArgumentError)
> > parse error on line 0, col 31: `!ruby/object:Gem::Specification '
> >
> > Anyone know what's going wrong?
>
> Maybe you ran into this problem: http://onestepback.org/...
> Tech/Ruby/DeleteYourCache.red
>
> -- Daniel

Dan Bernier

7/26/2006 1:05:00 AM

0

subimage, any luck with this? I'm getting the same thing, on a WinXP
box. I tried clearing the cache, too, and still no luck...

subimage wrote:
> Thanks I tried that, but it's still giving me the same damn error.
>
> Daniel Harple wrote:
> > On Jul 18, 2006, at 8:00 AM, subimage wrote:
> >
> > > I haven't had issues with it before, but now I am...I go to install
> > > rubyzip via gems and I'm getting this on a fresh Debian box:
> > >
> > > -> sudo gem install rubyzip
> > > Attempting local installation of 'rubyzip'
> > > Local gem file not found: rubyzip*.gem
> > > Attempting remote installation of 'rubyzip'
> > > ERROR: While executing gem ... (ArgumentError)
> > > parse error on line 0, col 31: `!ruby/object:Gem::Specification '
> > >
> > > Anyone know what's going wrong?
> >
> > Maybe you ran into this problem: http://onestepback.org/...
> > Tech/Ruby/DeleteYourCache.red
> >
> > -- Daniel

stu

7/26/2006 1:13:00 AM

0


subimage wrote:
> I haven't had issues with it before, but now I am...I go to install
> rubyzip via gems and I'm getting this on a fresh Debian box:
>
> -> sudo gem install rubyzip
> Attempting local installation of 'rubyzip'
> Local gem file not found: rubyzip*.gem
> Attempting remote installation of 'rubyzip'
> ERROR: While executing gem ... (ArgumentError)
> parse error on line 0, col 31: `!ruby/object:Gem::Specification '
>
> Anyone know what's going wrong?

i ran into this with ruby 1.8.2 but 1.8.4 worked fine installing it!
(tested with rubygems 8.whatever-last-versio and 9.0) under 1.8.2.
as soon as i put 1.8.4 on, the gem installed no problems.

-stu

subimage

7/27/2006 3:43:00 AM

0

I never did get it working, and I'm kind of locked into 1.8.2 as I'm
using it on all my Debian production servers :/

Anyone know a good way to upgrade to 1.8.4 when installed from apt-get?

stu wrote:
> subimage wrote:
> > I haven't had issues with it before, but now I am...I go to install
> > rubyzip via gems and I'm getting this on a fresh Debian box:
> >
> > -> sudo gem install rubyzip
> > Attempting local installation of 'rubyzip'
> > Local gem file not found: rubyzip*.gem
> > Attempting remote installation of 'rubyzip'
> > ERROR: While executing gem ... (ArgumentError)
> > parse error on line 0, col 31: `!ruby/object:Gem::Specification '
> >
> > Anyone know what's going wrong?
>
> i ran into this with ruby 1.8.2 but 1.8.4 worked fine installing it!
> (tested with rubygems 8.whatever-last-versio and 9.0) under 1.8.2.
> as soon as i put 1.8.4 on, the gem installed no problems.
>
> -stu

jmg3000

7/27/2006 2:32:00 PM

0

On 7/26/06, subimage <subimage@gmail.com> wrote:
> I never did get it working, and I'm kind of locked into 1.8.2 as I'm
> using it on all my Debian production servers :/
>
> Anyone know a good way to upgrade to 1.8.4 when installed from apt-get?

Well, you might just install 1.8.4 into someplace like
/opt/ruby-1.8.4, and then use the equivs package to convince apt that
you indeed do have Ruby installed and don't need the default Ruby
available via apt-get.

Or you might just 'apt-get remove' everything Ruby on your system and
then manually install Ruby from source. Add RubyGems, and then 'gem
install' the rest of the stuff you need. Although this is a manual
process, it's pretty quick, so may be an option for you if you don't
have too many servers to worry about.

---John

Thomas Sondergaard

7/29/2006 3:46:00 PM

0

stu wrote:
>
> i ran into this with ruby 1.8.2 but 1.8.4 worked fine installing it!
> (tested with rubygems 8.whatever-last-versio and 9.0) under 1.8.2.
> as soon as i put 1.8.4 on, the gem installed no problems.
>
> -stu
>

Odd. I just tried installing the gem myself (I'm the author) on an older
1.8.2 system and got the same error. I have no clue what the problem is,
but now I've rebuild the gem on the 1.8.2 system and uploaded it to
sourceforge.

Sorry about the inconvenience

Thomas

Thomas Sondergaard

7/29/2006 3:51:00 PM

0

Thomas Sondergaard wrote:
> ... and uploaded it to sourceforge.

and rubyforge so you should be able to get it with gem install rubyzip.

Cheers,

Thomas