problem running generate plugin_migration

2 views
Skip to first unread message

saurabh

unread,
Jul 1, 2009, 5:51:44 PM7/1/09
to CommunityEngine
Hi All,

I am new to ROR and trying out CE but getting the followin error
please help.

I had already installed desert.



script/generate plugin_migration

C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:105:in `const_missing': uninitialized
constant Rails::Plugin::Desert (NameError)
from C:/Documents and Settings/sauragar/My Documents/Aptana Studio/ce-
sample-app/vendor/plugins/community_engine/init.rb:3:in
`evaluate_init_rb'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
rails/plugin.rb:146:in `evaluate_init_rb'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/
lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
rails/plugin.rb:142:in `evaluate_init_rb'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
rails/plugin.rb:48:in `load'
from C:/Documents and Settings/sauragar/My Documents/Aptana Studio/ce-
sample-app/config/../vendor/plugins/engines/lib/engines/plugin.rb:
44:in `load'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
rails/plugin/loader.rb:38:in `load_plugins'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
rails/plugin/loader.rb:37:in `each'
... 8 levels...
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
commands/generate.rb:1
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from C:/Documents and Settings/sauragar/My Documents/Aptana Studio/ce-
sample-app/script/generate:3
>

dekhaus

unread,
Jul 3, 2009, 6:57:38 PM7/3/09
to CommunityEngine
Hi All

I'm new to CE and trying to install/configure the sample app for the
first time.

I carefully followed the directions on this page ...

http://www.communityengine.org/documentation.html

and am now at the point in the install/configuration when I'm
instructed to run this command ...

script/generate plugin_migration

when I do - I get this error ...

> script/generate plugin_migration
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:105:in `const_missing': uninitialized
constant Rails::Plugin::Desert (NameError)
from /Users/dekhaus/projects/rails/ce-sample-app/vendor/plugins/
community_engine/init.rb:3:in `evaluate_init_rb'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:146:in `evaluate_init_rb'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:142:in `evaluate_init_rb'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:48:in `load'
from /Users/dekhaus/projects/rails/ce-sample-app/config/../vendor/
plugins/engines/lib/engines/plugin.rb:44:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/
loader.rb:38:in `load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/
loader.rb:37:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/
loader.rb:37:in `load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
348:in `load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
163:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
113:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:
113:in `run'
from /Users/dekhaus/projects/rails/ce-sample-app/config/
environment.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/
generate.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from script/generate:3


In case you're wondering - here's the list of gem's installed ...

> gem list

*** LOCAL GEMS ***

actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
aws-s3 (0.6.2)
builder (2.1.2)
desert (0.5.0)
haml (2.0.9)
hpricot (0.8.1)
htmlentities (4.0.0)
mime-types (1.16)
mysql (2.7)
rails (2.3.2)
rake (0.8.7)
rmagick (2.10.0)
sqlite3-ruby (1.2.4)
xml-simple (1.0.12)



I'm really hoping that someone can help me with this error as I'm
really hoping that CE is as good as it looks.

Thanks
Dave

Jim Ruther Nill

unread,
Jul 5, 2009, 9:37:36 PM7/5/09
to communi...@googlegroups.com
dont forget the

require 'desert'

line in your config/environment.rb file.
--
"We do not believe in ourselves until someone reveals that deep inside us is valuable, worth listening to, worthy of our trust, sacred to our touch." - E. E. Cummings

vual

unread,
Jul 6, 2009, 8:10:27 AM7/6/09
to CommunityEngine
Hey Jim,

Im not to sure what this require'desert' means , i have put the
require boot lines into the environment.rb,

Im getting this error when i try to pligun_migrate.

[code]
-bash-3.2$ script/generate plugin_migration
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': /home/aptana/homes/sc2chat/mysite/config/
environment.rb:49: syntax error, unexpected $end, expecting kEND
(SyntaxError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
commands/generate.rb:1
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from script/generate:3

[/code]


Any tips,
Thanks

Bruno Bornsztein

unread,
Jul 6, 2009, 10:49:14 AM7/6/09
to communi...@googlegroups.com
Hi there,
You're better off following the install directions in the README (http://github.com/bborn/communityengine/tree/master); the wiki is out of date (sorry!)
Bruno
Reply all
Reply to author
Forward
0 new messages