paperclip as gem dependency not working

26 views
Skip to first unread message

mtin79

unread,
Jul 8, 2009, 8:35:04 AM7/8/09
to Paperclip Plugin
hey out there,
just wanted to instsall the thoughtbot-paperclip gem and get i running
with rails. but i get errors when trying to start the server:


my installation process was as follows:

1. put this line in environment,rb (Rails::Initializer.run do |
config|):
config.gem "thoughtbot-paperclip"

2. run "sudo rake gems:install"

everthings fine so far but afterwards i get allways this message after
i try to run migrations or start the server :

................................................................................................................................................

macbook-pro:eden mtin79$ ruby script/server
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
no such file to load -- thoughtbot-paperclip
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/rails/
gem_dependency.rb:179:in `load'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`load_gems'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`each'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`load_gems'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:162:in
`process'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
`send'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
`run'
/Users/mtin79/Documents/Projects/eden/webapp/eden/config/
environment.rb:9
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
no such file to load -- thoughtbot-paperclip
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/rails/
gem_dependency.rb:179:in `load'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`load_gems'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`each'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in
`load_gems'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:167:in
`process'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
`send'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
`run'
/Users/mtin79/Documents/Projects/eden/webapp/eden/config/
environment.rb:9
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/Users/mtin79/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
/Users/mtin79/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
Missing these required gems:
thoughtbot-paperclip

You're running:
ruby 1.8.6.287 at /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/bin/ruby
rubygems 1.3.4 at /Users/mtin79/.gem/ruby/1.8, /Library/Ruby/Gems/
1.8, /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8

Run `rake gems:install` to install the missing gems.
martin-schuberts-macbook-pro:eden mtin79$


................................................................................................................................................

when i list the gems i can see the thoughtbot-paperclip is installed.

any ideas?

thanks for you help.



Jonathan Yurek

unread,
Jul 8, 2009, 9:29:14 AM7/8/09
to papercli...@googlegroups.com
Your gem config should look like this:

config.gem 'thoughtbot-paperclip',
:lib => 'paperclip',
:source => 'http://gems.github.com',
:version => '>= 2.2.9'

Because the gem's name is "paperclip", not "thoughtbot-paperclip".
This is the case for all github-sourced gems you're using.

The version line at the end is optional.

Hope that helps!
--
Jonathan Yurek, Founder and CTO
thoughtbot, inc.
organic brains. digital solutions.

617.482.1300 x114
http://www.thoughtbot.com/

Kennon Ballou

unread,
Jul 8, 2009, 9:30:44 AM7/8/09
to papercli...@googlegroups.com
For github gems, you need to specify a :lib parameter, since the actual
gem name does not include the user.

If you're using the gem from github, use this:

config.gem "thoughtbot-paperclip", :lib => "paperclip"

| Kennon Ballou
| Angry Turnip, Inc.

mtin79

unread,
Jul 8, 2009, 1:20:56 PM7/8/09
to Paperclip Plugin
thanks a lot everybody!!!!!!!!!
didn`t know the naming conventions so far!


On 8 Jul., 15:30, Kennon Ballou <ken...@angryturnip.com> wrote:
> For github gems, you need to specify a :lib parameter, since the actual
> gem name does not include the user.
>
> If you're using the gem from github, use this:
>
> config.gem "thoughtbot-paperclip", :lib => "paperclip"
>
> | Kennon Ballou
> | Angry Turnip, Inc.
>
>
>
> mtin79 wrote:
> > hey out there,
> > just wanted to instsall the thoughtbot-paperclip gem and get i running
> > with rails. but i get errors when trying to start the server:
>
> > my installation process was as follows:
>
> > 1. put this line in environment,rb (Rails::Initializer.run do |
> > config|):
> >   config.gem "thoughtbot-paperclip"
>
> > 2. run "sudo rake gems:install"
>
> > everthings fine so far but afterwards i get allways this message after
> > i try to run migrations or start the server :
>
> > ........................................................................... .....................................................................
>
> > macbook-pro:eden mtin79$ ruby script/server
> > => Booting Mongrel
> > => Rails 2.3.2 application starting onhttp://0.0.0.0:3000
Reply all
Reply to author
Forward
0 new messages