Installation issues

66 views
Skip to first unread message

TimBooher

unread,
Apr 30, 2011, 10:27:03 PM4/30/11
to EngineY
I can't get the install to work. I have created a rvm gemset which is:


ruby-1.8.7-p334@enginey:

system:
uname: "Darwin bonhoffer 10.7.0 Darwin Kernel Version
10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/
RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release
(x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"

rvm:
version: "rvm 1.6.2 by Wayne E. Seguin
(waynee...@gmail.com) [https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2011-02-18"
platform: "i686-darwin10.7.0"
patchlevel: "2011-02-18 patchlevel 334"
full_version: "ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-
darwin10.7.0]"

homes:
gem: "/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey"
ruby: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334"

binaries:
ruby: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334/bin/ruby"
irb: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334/bin/irb"
gem: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334/bin/gem"
rake: "/Users/Tim/.rvm/gems/ruby-1.8.7-p334@global/bin/
rake"

environment:
PATH: "/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey/bin:/
Users/Tim/.rvm/gems/ruby-1.8.7-p334@global/bin:/Users/Tim/.rvm/rubies/
ruby-1.8.7-p334/bin:/Users/Tim/.rvm/bin:/usr/local/bin:/usr/local/
sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/
bin:/usr/local/ImageMagick/bin:/usr/texbin:/usr/X11/bin"
GEM_HOME: "/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey"
GEM_PATH: "/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey:/Users/
Tim/.rvm/gems/ruby-1.8.7-p334@global"
MY_RUBY_HOME: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334"
IRBRC: "/Users/Tim/.rvm/rubies/ruby-1.8.7-p334/.irbrc"
RUBYOPT: ""
gemset: "enginey"

With the following gems:


abstract (1.0.0)
actionmailer (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
actionpack (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
activemodel (3.0.7, 3.0.6)
activerecord (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
activeresource (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
activesupport (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
arel (2.1.0, 2.0.9)
attr_required (0.0.3)
aws-s3 (0.6.2)
builder (3.0.0, 2.1.2)
bundler (1.0.12)
capistrano (2.5.21)
closure-compiler (1.1.1)
disguise (3.0.2)
erubis (2.7.0, 2.6.6)
fb_graph (1.7.1)
formtastic (1.2.3)
highline (1.6.1)
i18n (0.5.0)
jammit (0.6.0)
json (1.5.1)
kgio (2.3.3)
linecache (0.43)
mail (2.2.19)
mime-types (1.16)
mocha (0.9.12)
mysql (2.8.1)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
open4 (1.0.1)
Platform (0.4.0)
polyglot (0.3.1)
POpen4 (0.1.4)
rack (1.2.2, 1.1.2, 1.0.1)
rack-mount (0.7.2, 0.6.14)
rack-oauth2 (0.6.6)
rack-test (0.5.7)
rails (3.0.7, 3.0.6, 2.3.8, 2.3.5, 2.2.2)
railties (3.0.7, 3.0.6)
rake (0.8.7)
rest-client (1.6.1)
restclient_with_cert (0.0.7)
ruby-debug-base (0.10.5.jb2)
ruby-debug-ide (0.4.17.beta3)
rubygems-update (1.7.2)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)
unicorn (3.6.2)
xml-simple (1.0.15)
yui-compressor (0.9.6)


If I try:


rake
(in /Users/Tim/Sites/fitwit2)
rake aborted!
no such file to load -- disguise/tasks
/Users/Tim/Sites/fitwit2/Rakefile:13

(the disguise gem _is_ loaded, v 3.0.2)

Also,

./script/console
Loading development environment (Rails 2.3.5)
NOTE: SourceIndex.new(hash) is deprecated; From /Users/Tim/.rvm/gems/
ruby-1.8.7-p334@enginey/gems/rails-2.3.5/lib/rails/
vendor_gem_source_index.rb:100:in `new'.
/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey/gems/rails-2.3.5/lib/
rails/gem_dependency.rb:119:in `requirement':NameError: undefined
local variable or method `version_requirements' for
#<Rails::GemDependency:0x1011fd658>
/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey/gems/rails-2.3.5/lib/
rails/backtrace_cleaner.rb:2:NameError: uninitialized constant
ActiveSupport::BacktraceCleaner
/Users/Tim/.rvm/gems/ruby-1.8.7-p334@enginey/gems/rails-2.3.5/lib/
console_with_helpers.rb:5:NameError: uninitialized constant
ApplicationController

Any thoughts appreciated,

tim

Gerő Zoltán

unread,
May 1, 2011, 6:18:18 PM5/1/11
to eng...@googlegroups.com
Hi Tim,
it's a gem version problem. Your app try to use Rails2-3-5 but it seems disguise requires Rails3+.
First check your Gemfile or in Rails 2 app it'll be in environment.rb like this:
gem 'gemname', version => 'number'

Here you will se the problem: it tries to load another gem or another version of it.

You will have another problem too: Rails3 requires Ruby 1.9.

I made this when I had to reinstall the whole process weekly.

I think try this:
Install Ruby 1.8 and 1.9
with the right version (!) of Ruby REinstall Rails
(1.8 + Rails2, 1.9 + Rails3)
install your gems (you may want to create gemsets)

You prefer using Rails3 because bundler takes out all of the pain from gem install, you simply run bundle install and it finds all required gems and install them. Don't waste your time with Rails2. 

Good luck,
Zoli


2011/5/1 TimBooher <tbbo...@gmail.com>
by-1.8.7-p334@enginey/gems/rails-2.3.5/lib/


2011/5/1 TimBooher <tbbo...@gmail.com>
by-1.8.7-p334@enginey/gems/rails-2.3.5/lib/

Reply all
Reply to author
Forward
0 new messages