I’m using Mac OSX 10.6.3
with jruby 1.5.0 (ruby 1.8.7 patchlevel 249)
jirb work, jgem work
When
jruby -S gem install rails
Successfully installed rails-2.3.8
1 gem installed
Installing ri documentation for rails-2.3.8…
Installing RDoc documentation for rails-2.3.8…
apples-i7:Temp cyberjom$ jruby -S rails
/Users/cyberjom/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error’: Could not find RubyGem rails (>= 0)
(Gem::LoadError)
from
/Users/cyberjom/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems.rb:211:in
activate' from /Users/cyberjom/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in
gem’
from /opt/local/bin/rails:18
Look like jruby can’t find rails. Any suggestion please ?
Pinti A.
On Tue, Jun 22, 2010 at 10:04 AM, Pinit A.
[email protected] wrote:
apples-i7:Temp cyberjom$ jruby -S rails
/Users/cyberjom/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error’: Could not find RubyGem rails (>= 0)
(Gem::LoadError)
Look like jruby can’t find rails. Any suggestion please ?
What does which rails
show? Or jruby -S gem list --local
?
It looks to me to be an rvm problem; is there a mailing list for that?
–
Hassan S. ------------------------ [email protected]
twitter: @hassan
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Yep, those kind of errors are usually caused because GEM_PATH or
GEM_HOME
are set, and rvm does it for you.
Run jruby -S gem env to ensure everything is right.
On Tue, Jun 22, 2010 at 7:50 PM, Hassan S. <
Hassan S. wrote:
On Tue, Jun 22, 2010 at 10:04 AM, Pinit A.
[email protected] wrote:
apples-i7:Temp cyberjom$ jruby -S rails
/Users/cyberjom/.rvm/rubies/jruby-1.5.0/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error’: Could not find RubyGem rails (>= 0)
(Gem::LoadError)
Look like jruby can’t find rails. Any suggestion please ?
What does which rails
show? Or jruby -S gem list --local
?
apples-i7:~ cyberjom$ which rails
/opt/local/bin/rails
apples-i7:~ cyberjom$ jruby -S gem list --local
*** LOCAL GEMS ***
action_profiler (1.0.0)
actionmailer (2.3.8)
actionpack (2.3.8, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.8, 1.15.6)
activerecord-jdbc-adapter (0.9.7)
activerecord-jdbcpostgresql-adapter (0.9.7)
activeresource (2.3.8)
activesupport (2.3.8, 1.4.4)
ar-extensions (0.9.2)
authlogic (2.1.5)
aws-s3 (0.6.2)
builder (2.1.2)
calendar_date_select (1.16.1)
capistrano (2.5.18)
chronic (0.2.3)
color (1.4.1)
columnize (0.3.1)
crack (0.1.7)
cucumber (0.7.3)
declarative_authorization (0.4.1)
delocalize (0.1.6)
diff-lcs (1.1.2)
dry_scaffold (0.3.8)
expanded_date (0.2.1)
fastercsv (1.5.3)
fb_adapter (0.5.9)
febeling-rubyzip (0.9.2)
formtastic (0.9.10)
gem_plugin (0.2.3)
gherkin (1.0.30)
gimite-google-spreadsheet-ruby (0.0.6)
haml (3.0.6)
haml_scaffold (1.1.0)
has_scope (0.4.2)
highline (1.5.2)
hoe (2.6.0)
hpricot (0.8.2)
inherited_resources (1.0.3)
jdbc-postgres (8.4.701)
jintastic (1.1.0)
jruby-jars (1.5.0)
jruby-launcher (1.0.1)
jruby-openssl (0.7)
jruby-rack (1.0.1)
json_pure (1.4.3)
mbleigh-subdomain-fu (0.5.3)
mime-types (1.16)
mini_exiftool (1.0.1)
mislav-will_paginate (2.3.11)
mocha (0.9.8)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
needle (1.3.0)
net-scp (1.0.2)
net-sftp (2.0.4)
net-ssh (2.0.22)
net-ssh-gateway (1.0.1)
nifty-generators (0.4.0)
nokogiri (1.4.2)
paginator (1.1.1)
pdf-writer (1.1.8)
plist (3.1.0)
postgres-pr (0.6.3)
pqa (1.6)
production_log_analyzer (1.5.1)
rack (1.1.0)
rack-test (0.5.4)
railroad (0.5.0)
rails (2.3.8)
rails_analyzer_tools (1.4.0)
rake (0.8.7)
rapt (0.2.2)
rdoc (2.5.8)
RedCloth (4.2.3)
responders (0.4.7)
roo (1.9.3)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-net-ldap (0.0.4)
ruby-ole (1.2.10.1)
rubyforge (2.0.4)
rubygems-update (1.3.7)
rubyzip (0.9.4)
savon (0.7.8)
shoulda (2.10.3)
spreadsheet (0.6.4.1)
SyslogLogger (1.4.0)
term-ansicolor (1.0.5)
transaction-simple (1.4.0)
trollop (1.16.2)
ultrasphinx (1.11)
validation_reflection (0.3.6)
viewtastic (0.1.2)
warbler (1.1.0)
weakling (0.0.3)
webrat (0.7.1)
will_paginate (2.3.14)
xml-simple (1.0.12)
xmpp4r (0.5)
ya2yaml (0.29.2)
ym4r (0.6.1)
Thank you very much
On Wed, Jun 23, 2010 at 4:45 AM, Pinit A.
[email protected] wrote:
It’s look like there is not GEM_PATH and GEM_HOME in my environment.
I think my rvm did not set them.
But take a closer look at the output you’ve provided:
- GEM PATHS:
- /Users/cyberjom/.rvm/gems/jruby-1.5.0
- /Users/cyberjom/.rvm/gems/jruby-1.5.0@global
So, rvm does this.
Thanks,
–Vladimir
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
David C. wrote:
Yep, those kind of errors are usually caused because GEM_PATH or
GEM_HOME
It’s look like there is not GEM_PATH and GEM_HOME in my environment.
I think my rvm did not set them.
are set, and rvm does it for you.
Run jruby -S gem env to ensure everything is right.
On Tue, Jun 22, 2010 at 7:50 PM, Hassan S. <
jruby -S gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2010-05-12 patchlevel 249) [java]
- INSTALLATION DIRECTORY: /Users/cyberjom/.rvm/gems/jruby-1.5.0
- RUBY EXECUTABLE: /Users/cyberjom/.rvm/rubies/jruby-1.5.0/bin/jruby
- EXECUTABLE DIRECTORY: /Users/cyberjom/.rvm/gems/jruby-1.5.0/bin
- RUBYGEMS PLATFORMS:
- GEM PATHS:
- /Users/cyberjom/.rvm/gems/jruby-1.5.0
- /Users/cyberjom/.rvm/gems/jruby-1.5.0@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => [“http://gems.rubyforge.org/”,
“http://gems.github.com”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”, “http://gems.github.com”,
“http://gems.rubyonrails.org”]
- “install” => “–env-shebang”
- “update” => “–env-shebang”
- REMOTE SOURCES:
On Jun 23, 2010, at 9:28 AM, Pinit A. wrote:
Oh. I see. Thank. But why jruby can’t see it ?
I have navigate to those GEM PATHS and can see those gem files ?
Any suggestion please. I will try install everything again…
Sincerely,
Pinit A.
Try cutting off the middle man, rvm. Also, see what ‘which jruby’
returns. If it’s not running from your rvm install, it won’t see gems
installed inside ~/.rvm.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Oh. I see. Thank. But why jruby can’t see it ?
I have navigate to those GEM PATHS and can see those gem files ?
Any suggestion please. I will try install everything again…
Sincerely,
Pinit A.
Vladimir S. wrote:
On Wed, Jun 23, 2010 at 4:45 AM, Pinit A.
[email protected] wrote:
It’s look like there is not GEM_PATH and GEM_HOME in my environment.
I think my rvm did not set them.
But take a closer look at the output you’ve provided:
�- GEM PATHS:
� � - /Users/cyberjom/.rvm/gems/jruby-1.5.0
� � - /Users/cyberjom/.rvm/gems/jruby-1.5.0@global
So, rvm does this.
Thanks,
–Vladimir
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I suppose the problem is that gem is not well configured, look at these
variables:
- RUBY EXECUTABLE: /Users/cyberjom/.rvm/rubies/jruby-1.5.0/bin/jruby
WHERE THE JRUBY EXECUTABLE IS
- EXECUTABLE DIRECTORY: /Users/cyberjom/.rvm/gems/jruby-1.5.0/bin
WHERE THE EXECUTABLE ARE
So, when rails is installed via “jruby -S gem install rails” the rails
executable is placed into the EXECUTABLE_DIRECTORY path, but when you
call
“jruby -S rails” jruby is probably searching into its own executable
directory, I mean “/Users/cyberjom/.rvm/rubies/jruby-1.5.0/bin”.
Could you point this into the rvm mail list? perhaps they have a better
answer.
Yeh… Thank you very much. After weeks , finally with all your
suggestion.
I tried reinstall latest version of RVM and now it’s work.
I can start a simple rails project with jruby 1.5.1
May be because of mis-config rvm…
I will try warbler , postgrese jdbc and oracle jdbc tomorrow.
Thank every one.
Pinit A.
David C. wrote:
I suppose the problem is that gem is not well configured, look at these
variables:
- RUBY EXECUTABLE: /Users/cyberjom/.rvm/rubies/jruby-1.5.0/bin/jruby
WHERE THE JRUBY EXECUTABLE IS
- EXECUTABLE DIRECTORY: /Users/cyberjom/.rvm/gems/jruby-1.5.0/bin
WHERE THE EXECUTABLE ARE
So, when rails is installed via “jruby -S gem install rails” the rails
executable is placed into the EXECUTABLE_DIRECTORY path, but when you
call
“jruby -S rails” jruby is probably searching into its own executable
directory, I mean “/Users/cyberjom/.rvm/rubies/jruby-1.5.0/bin”.
Could you point this into the rvm mail list? perhaps they have a better
answer.