Installation error: RedCloth conflict?

2 views
Skip to first unread message

east

unread,
Nov 21, 2009, 1:12:57 AM11/21/09
to tog_users
I'm running with Rails 2.3.4 and 1.8.7 ruby on Ubuntu. When I run the
template via (for either edge or current):

rails hello_tog -m http://tr.im/tog_edge -d mysql

I get the following error for a bunch of stuff:

generating comment
/home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/
gem_dependency.rb:101:in `specification': can't activate , already
activated RedCloth-4.2.2 (Gem::Exception)
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
locator.rb:81:in `plugins'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`inject'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
locator.rb:81:in `each'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
locator.rb:81:in `inject'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
locator.rb:81:in `plugins'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:109:in `locate_plugins'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:108:in `map'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:108:in `locate_plugins'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:32:in `all_plugins'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:22:in `plugins'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:53:in `add_plugin_load_paths'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
294:in `add_plugin_load_paths'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
136:in `process'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `send'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `run'
from /home/vmplanet/hnl/hello_tog/config/environment.rb:9
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /home/vmplanet/.gem/ruby/1.8/gems/rails-2.3.4/lib/commands/
generate.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from script/generate:3
* acts_as_commentable installed... generated

Has anyone seen this? Any ideas as to how to work around this? I'm
still learning all this stuff and am a bit at a loss.

Thanks,
evan

Alberto Molpeceres

unread,
Nov 22, 2009, 1:47:57 PM11/22/09
to tog_...@googlegroups.com
Hi,

Well, you can specify which gems your app require in your
config/environment.rb file. Right now, tog is requiering RedCloth
4.2.0 with this line:

config.gem 'RedCloth', :lib => 'redcloth', :version => '4.2.0'

But your already have 4.2.2, so this is used by default. I would chage
the template to required any 4.2.* version, but till then you can:
change your config/environment to:

- install redclooth

config.gem 'RedCloth', :lib => 'redcloth', :version => '>= 4.2.0'

or just:

config.gem 'RedCloth', :lib => 'redcloth'


Not sure if it would work just installing the 4.2.0 version of RedCloth with:

(sudo) gem install -v=4.2.0 RedCloth

since seems that somethings is requiring the gem before initializing rails.

Hope it helps.

al.
--
Alberto Molpeceres.
Linking Paths.

Simple registration for your events. http://www.stagehq.com
> --
>
> You received this message because you are subscribed to the Google Groups "tog_users" group.
> To post to this group, send email to tog_...@googlegroups.com.
> To unsubscribe from this group, send email to tog_users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tog_users?hl=.
>
>
>
Reply all
Reply to author
Forward
0 new messages