
RedCloth can't work with Ruby1.8.6.287 / fcgid ?
Reported by Juice | September 6th, 2008 @ 08:12 PM
When I start up my Rails application , I got the error
You're running:
ruby 1.8.6.287 at /usr/bin/ruby
rubygems 1.2.0 at /usr/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems.
no such file to load -- redcloth_scan
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' /home2/zhangji1/prog/vendor/gems/RedCloth-4.0.3/lib/redcloth.rb:10
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' ./../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:61:in `load' ./../config/../vendor/rails/railties/lib/initializer.rb:250:in `load_gems'
./../config/../vendor/rails/railties/lib/initializer.rb:250:in `each'
./../config/../vendor/rails/railties/lib/initializer.rb:250:in `load_gems'
./../config/../vendor/rails/railties/lib/initializer.rb:141:in `process'
./../config/../vendor/rails/railties/lib/initializer.rb:97:in `send'
./../config/../vendor/rails/railties/lib/initializer.rb:97:in `run' ./../config/environment.rb:14 dispatch.fcgi:21:in `require' dispatch.fcgi:21 no such file to load -- redcloth_scan
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' /home2/zhangji1/prog/vendor/gems/RedCloth-4.0.3/lib/redcloth.rb:10
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/home2/zhangji1/prog/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' ./../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:61:in `load'
./../config/../vendor/rails/railties/lib/initializer.rb:250:in `load_gems'
./../config/../vendor/rails/railties/lib/initializer.rb:250:in `each'
./../config/../vendor/rails/railties/lib/initializer.rb:250:in `load_gems'
./../config/../vendor/rails/railties/lib/initializer.rb:146:in `process'
./../config/../vendor/rails/railties/lib/initializer.rb:97:in `send'
./../config/../vendor/rails/railties/lib/initializer.rb:97:in `run' ./../config/environment.rb:14 dispatch.fcgi:21:in `require' dispatch.fcgi:21 [Sat Sep 06 18:01:41 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Sat Sep 06 18:01:41 2008] [error] [client 218.58.59.73] Premature end of script headers: dispatch.fcgi, referer: http://www.zhangjinzhu.com/articles/new [Sat Sep 06 18:01:43 2008] [notice] mod_fcgid: process /home2/zhangji1/public_html/dispatch.fcgi(18784) exit(communication error), terminated by calling exit(), return code: 1
when I remove RedCloth,everything is OK, What's wrong?
Comments and changes to this ticket
-
Juice September 6th, 2008 @ 08:53 PM
This will occur when I add this to config/environment.rb
config.gem "RedCloth", :lib => 'redcloth'
If remove it,and freeze RedCloth-4.0.3 in vendor/gems ,everything will be OK.
Ruby: 1.8.6.287 Rails: 2.1.1
-
Jason Garber September 19th, 2008 @ 03:12 PM
- Tag changed from ruby to ruby
The latest version of RedCloth should be able to run with just
config.gem "RedCloth"
frozen or not. Do you get the error when you leave off the :lib => 'redcloth' like that? Do you get the error if it's not frozen?
-
Juice September 19th, 2008 @ 07:09 PM
yes,I get the error even when I leave off the :lib => 'redcloth', if hav't frozen the gem.
-
Jason Garber September 23rd, 2008 @ 02:10 PM
- State changed from new to open
I've installed Ruby 1.8.6.287, Rake 1.2.0, Rails 2.1.1, and RedCloth 4.0.3 on my Ubuntu VM and I'm unable to duplicate your problem. Would you please provide more information on your platform and environment? Steps to duplicate would be helpful. Thanks!
-
Juice September 23rd, 2008 @ 08:54 PM
Sorry, I can't duplicate the problem on my own machine right now. I don't know what's wrong.
But on HostMonster's shared server I can easily duplicate the problem,just uncomment config.gem "RedCloth". the environment is
uname -a
Linux host279.hostmonster.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64 x86_64 x86_64 GNU/Linux
ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
gem -v
1.2.0
rails -v
Rails 2.1.1
gcc -v Reading specs from /root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)
May be this is not RedCloth's bug. I'll try to understand it,and then report back.
-
Jason Garber October 1st, 2008 @ 04:42 PM
- State changed from open to hold
- Milestone cleared.
Waiting for wosmvp to dig in, so bumping from the milestone.
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