Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

already activated: activesupport #25

Open
cmeiklejohn opened this issue Jul 19, 2011 · 11 comments
Open

already activated: activesupport #25

cmeiklejohn opened this issue Jul 19, 2011 · 11 comments

Comments

@cmeiklejohn
Copy link
Contributor

When running:

enginex new_engine

I'm getting this:

`raise_if_conflicts': can't activate activesupport-3.0.3, already activated activesupport-3.0.9
@josevalim
Copy link
Owner

Can you please post the full backtrace? Smells like a rubygems bug.

@cmeiklejohn
Copy link
Contributor Author

Here it is:

/home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1600:in `raise_if_conflicts': can't activate activesupport-3.0.3, already activated activesupport-3.0.9 (Gem::LoadError)
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:737:in `activate'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:51:in `block in require'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in `each'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in `require'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/gems/enginex-0.8.1/lib/enginex.rb:2:in `<top (required)>'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/gems/enginex-0.8.1/bin/enginex:4:in `<top (required)>'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/bin/enginex:19:in `load'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/bin/enginex:19:in `<main>'

@contentfree
Copy link

I'm having the same issue. Versions:

ruby: 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
gem: 1.8.6
rvm: 1.6.31
enginex: 0.8.1

The "already activated" error only seems to show up in a project directory controlled by an .rvmrc. I'm not sure of the interaction there.

Regardless, it is a problem that seems worthwhile to solve since RVM usage is only increasing.

@contentfree
Copy link

@cmeiklejohn: The temporary workaround is to edit the local enginex gemspec. Should be at .rvm/gems/<gemset>/specifications/enginex-0.8.1.gemspec – If you change the gemspec to use ~> 3.0.9 then it'll work for now.

@cmeiklejohn
Copy link
Contributor Author

Thanks. Yeah, I changed the gemspec as well.

@josevalim
Copy link
Owner

This is very weird. What is worse is that it can only be reproduced if you are have a .rvmrc file?

@contentfree
Copy link

I can't prove that, but I went through various projects testing the command and that was a common feature of those that failed. However... today's a new day... and I'm no longer getting the failure (?!)

@reasonbock
Copy link

i have this same issue, and i am not using rvm

@reasonbock
Copy link

ruby: 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
gem: 1.85
rvm: not installed
enginex: 0.8.1

@josevalim
Copy link
Owner

So it seems everyone is using at least rubygems 1.8.5?

@cmeiklejohn
Copy link
Contributor Author

Sure seems that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants