#18 ✓resolved
Kip Cole

Gem install conflict with config.gem?

Reported by Kip Cole | July 23rd, 2008 @ 01:51 AM | in 4.0.1

gem name is RedCloth but library name is redcloth.rb. With Rails 2.1 gem dependencies (on a case sensitive file system)

config.gem 'RedCloth' will generate the following:

kip@server [/u/apps/hermes/current]$ script/console

Loading development environment (Rails 2.1.0)

no such file to load -- RedCloth

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'

.... stack trace

These gems that this application depends on are missing:

  • RedCloth

Run "rake gems:install" to install them.

config.gem 'redcloth' with generate the following:

These gems that this application depends on are missing:

  • redcloth

Run "rake gems:install" to install them.

In irb, require with a specific path works:

kip@server [/u/apps/hermes/current]$ irb

irb(main):001:0> require '/usr/local/lib/ruby/gems/1.8/gems/RedCloth-4.0.0/lib/redcloth'

=> true

Symlinking RedCloth.rb to redcloth.rb seems to work, as long as the config is

config.gem 'RedCloth'

kip@server [/usr/local/lib/ruby/gems/1.8/gems/RedCloth-4.0.0/lib]$ sudo ln -s redcloth.rb RedCloth.rb

kip@server [/usr/local/lib/ruby/gems/1.8/gems/RedCloth-4.0.0/lib]$ ls -al

total 264

drwxr-xr-x 3 root root 4096 Jul 23 05:46 .

drwxr-xr-x 7 root root 4096 Jul 23 05:14 ..

lrwxrwxrwx 1 root root 11 Jul 23 05:46 RedCloth.rb -> redcloth.rb

drwxr-xr-x 3 root root 4096 Jul 23 05:14 redcloth

-rw-r--r-- 1 root root 558 Jul 23 05:14 redcloth.rb

-rwxr-xr-x 1 root root 247115 Jul 23 05:14 redcloth_scan.so

kip@server [/u/apps/hermes/current]$ script/console

Loading development environment (Rails 2.1.0)

>>

Suggested solution:

Symlink RedCloth.rb -> redcloth.rb

--Kip

Comments and changes to this ticket

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

People watching this ticket

Referenced by

Pages