Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during install #25

Closed
soniah opened this issue Aug 1, 2011 · 2 comments
Closed

Errors during install #25

soniah opened this issue Aug 1, 2011 · 2 comments

Comments

@soniah
Copy link

soniah commented Aug 1, 2011

I got some errors during install:

% irb -r 'rubygems' -r 'rubygems'
ruby-1.9.2-p180 :001 > Ginatra::Config.setup!
NameError: uninitialized constant Object::Ginatra
from (irb):1
from /home/sonia/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `

'

Would you be able to include a sample ~/.ginatra/config.yml in the repo, to help get around these problems?

My full config:

% rvm info

ruby-1.9.2-p180:

system:
uname: "Linux zapote 2.6.38-10-generic-pae #46-Ubuntu SMP Tue Jun 28 16:54:49 UTC 2011 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.2.8(1)-release (i686-pc-linux-gnu)"
zsh: "/usr/bin/zsh => zsh 4.3.11 (i686-pc-linux-gnu)"

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

ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"

homes:
gem: "/home/sonia/.rvm/gems/ruby-1.9.2-p180"
ruby: "/home/sonia/.rvm/rubies/ruby-1.9.2-p180"

binaries:
ruby: "/home/sonia/.rvm/bin/ruby"
irb: "/home/sonia/.rvm/bin/irb"
gem: "/home/sonia/.rvm/bin/gem"
rake: "/home/sonia/.rvm/bin/rake"

environment:
PATH: "/home/sonia/.rvm/bin:/home/sonia/.rvm/gems/ruby-1.9.2-p180/bin:/home/sonia/.rvm/gems/ruby-1.9.2-p180@global/bin:/home/sonia/.rvm/rubies/ruby-1.9.2-p180/bin:/home/sonia/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/usr/lib/jvm/java-6-sun/jre/bin"
GEM_HOME: "/home/sonia/.rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/home/sonia/.rvm/gems/ruby-1.9.2-p180:/home/sonia/.rvm/gems/ruby-1.9.2-p180@global"
MY_RUBY_HOME: "/home/sonia/.rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/home/sonia/.rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: ""

% rvm gem list -l

*** LOCAL GEMS ***

rake (0.8.7)

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
activesupport (3.0.9)
arel (2.0.10)
builder (3.0.0, 2.1.2)
bundler (1.0.15)
diff-lcs (1.1.2)
erubis (2.7.0, 2.6.6)
ginatra (2.3.0)
grit (2.4.1)
i18n (0.5.0)
mail (2.2.19)
mechanize (2.0.1)
mime-types (1.16)
net-http-digest_auth (1.1.1)
net-http-persistent (1.8)
nokogiri (1.5.0)
polyglot (0.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.8)
sinatra (1.2.6)
sqlite3 (1.3.3)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.9)
tzinfo (0.3.29)
vegas (0.1.8)
webrobots (0.0.10)

@lenary
Copy link
Contributor

lenary commented Aug 1, 2011

Thanks for all the debugging info.

your real issue is that you should run irb -r 'rubygems' -r 'ginatra' rather than requiring rubygems twice.

I'll update the readme, sorry

@lenary
Copy link
Contributor

lenary commented Sep 7, 2011

version 3.0.1 ( which now re
quires 1.9.2) includes a setup script if you're still having trouble.

@lenary lenary closed this as completed Nov 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants