#44 ✓resolved

cannot install

Reported by Zubin | August 24th, 2008 @ 02:22 AM | in 4.0.4

For some reason the gem is not available:

# gem install RedCloth
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR:  could not find RedCloth locally or in a repository

So, I attempted to install from source by installing git, then ragel:

# rake install
(in /root/src/redcloth)
Ragel 6.2 or greater is required to generate ext/redcloth_scan/redcloth_scan.c.

# ragel -v
Ragel State Machine Compiler version 5.23 July 2007
Copyright (c) 2001-2007 by Adrian Thurston

What a pain! I don't know how to upgrade ragel and it seems this is getting unnecessarily complex for installing such a popular gem. Any suggestions?

Comments and changes to this ticket

  • Paweł Gościcki

    Paweł Gościcki August 24th, 2008 @ 03:49 AM

    It might be related to the version of rubygems gem you are using. I've had similar problems (could not upgrade) before upgrading rubygems to v1.2.

  • Zubin

    Zubin August 24th, 2008 @ 05:20 PM

    Hi Pawel,

    Upgrading rubygems is failing too. If this is the problem then I guess it's not a RedCloth issue, but here's what's happening anyway:

    # gem update --system
    Updating RubyGems
    Bulk updating Gem source index for: http://gems.rubyforge.org/
    Nothing to update
    # gem install rubygems-update -v 1.1.1
    Bulk updating Gem source index for: http://gems.rubyforge.org/
    Updating metadata for 36 gems from http://code.whytheluckystiff.net/
    ERROR:  could not find rubygems-update locally or in a repository


  • Paweł Gościcki

    Paweł Gościcki August 24th, 2008 @ 06:10 PM

    Yup, it's the same error. You need to go to http://rubyforge.org/frs/?group_... and grab the newest rubygems-update gem:

    wget http://rubyforge.org/frs/download.php/38844/rubygems-update-1.2.0.gem
    gem install rubygems-update-1.2.0.gem
  • Paweł Gościcki

    Paweł Gościcki August 24th, 2008 @ 06:15 PM

    Btw, if you ask me, I think they've bothched something with the 1.2 upgrade...

  • Zubin

    Zubin August 25th, 2008 @ 06:05 AM

    Thank you Pawel, that did the trick!

    Cheers, Zubin

  • VirtualFunction

    VirtualFunction August 25th, 2008 @ 10:42 AM

    For those who are compiling (I'm assuming you don't need to now, but in case you do have to) ...

    Firstly, if yo are using Debian/Ubuntu (I assume so from your Ragel version). Then remove it using

    sudo apt-get remove ragel

    Next download a fresh copy of the source from the Ragel site. Untar it, and go to it's folder in terminal. It should install with the following:

    ./configure --prefix=/usr make sudo make install

    Ragel should be installed now. I think there is a uninstall make file target as well should you want to remove it afterwards. If you don't want it littering your /usr folders, you can do some symlink / export $PATH hackery (I did this once, it's not 100% perfect, but managed to get things to compile RedCloth)

  • Jason Garber

    Jason Garber August 25th, 2008 @ 10:48 AM

    • State changed from “new” to “resolved”

    And don't forget the .zip and .tgz files. They shouldn't require Ragel to build since they already contain the compiled C code.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins