
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
-
eagleas July 23rd, 2008 @ 04:08 AM
config.gem 'RedCloth', :lib => 'redcloth', :version => '>= 3.315'
Solution?
-
Jason Garber July 23rd, 2008 @ 08:13 AM
Yes, that's what Ryan Bates did.
Not sure if the version should be "4.0" like he has it or "4.0.0". I'm researching a bit since I'm out of touch with Rails and then I'll update the Rails wiki page.
-
Jason Garber July 23rd, 2008 @ 08:16 AM
- State changed from new to open
Additionally, maybe we should just have a dummy RedCloth.rb file that points to redcloth.rb.
-
eagleas July 23rd, 2008 @ 08:26 AM
If full backward compatibility already broken, may be convert to lowercase gemname? (RedCloth -> redcloth)
-
Jason Garber July 24th, 2008 @ 09:55 AM
- Milestone set to 4.0.1
-
Jason Garber July 24th, 2008 @ 02:26 PM
- State changed from open to resolved
(from [bb00efb8a53fefd68a38755c715eb2cd9687457f]) Created alias RedCloth.rb so Rails 2.1 gem dependency works on case-sensitive operating systems. [#18 state:resolved]
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.
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
People watching this ticket
Referenced by
-
4 Segfault with links #18 0x00007f6f38e9cb45 in ruby_exec () from /usr/lib/lib...