Unable to install Gems with Gems manager in Mac OS X and Ruby 1.9.1
Hi,
I am user of IntellijIdea with the Ruby plugin, cause we usually use jruby. I am trying right now ruby 1.9.1 to test the performance of some of our apps, and I am also trying RubyMine.
I have installed correctly ruby 1.9.1 and many gems we use from the command line. But when I use the RubyMine Gem Manager I cannot see the gems already installed nor install any new ones.
I am in Mac OS X 10.5.7, Ruby 1.9.1, gem 1.3.4.
Any ideas?
Thanks,
GA
Please sign in to leave a comment.
Hello Guillermo,
Can you see any errors in SDK configuration? Like rubygems cannot be found for SDK or something like this?
Please ensure that gem executable which can be found in the same folder with ruby19 is really rubygems for ruby1.9.
Regards,
Oleg
Hi,
thanks for the answer.
I cannot see any visible error messages. Is there any log I can check?
Ruby 1.9.1 is installed in /usr/local/bin, the includes in /usr/local/include and the libraries in /usr/local/lib. All the directories are owned by root/admin. The user that is calling RubyMine is an admin user.
Thanks,
GA
This are the locations and versions:
sh-3.2# which ruby
/usr/local/bin/ruby
sh-3.2# ruby -v
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0]
sh-3.2# which gem
/usr/local/bin/gem
sh-3.2# gem -v
1.3.4
Please attach idea.log file in ~/.RubyMine10/system/log.
Regards,
Oleg
There is no ~/.RubyMine10/system/log. There is one ~/Library/Application Support/RubyMine10, but there is no log there.
Also there is a RubyMine10 directory inside of ~/Library/Preferences, but I could not find anything neither.
For instance:
sh-3.2# gem list
*** LOCAL GEMS ***
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
capistrano (2.5.5)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
highline (1.5.1)
hpricot (0.8.1)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.11)
net-ssh-gateway (1.0.1)
pg (0.8.0)
rails (2.3.2)
rake (0.8.7)
rspec (1.2.7)
ruby-debug-base (0.10.3.1)
ruby-debug-ide (0.4.6)
sources (0.0.1)
And in Rubymine:
It does not find the pg gem. And the Gem Manager:
No gems are listed.
Wait a minute. I just reinstalled the sdk and the button attach gems appeared and the installed gems are there. But when I attach the gems, there are still not recognized by the editor. Any ideas?
I have a little bit of more info now.
The first line of code is: require 'rubygems'.
And it informs an error saying: More than one file is available for a given name.
Then the second line is: require 'pg' and it says No such a file to load. I guess that the second gem is not found because there is a problem loading "rubygems".
Do you know why there are two files found? There is only one rubygems.rb inside of the ruby1.9.1 gem structure.
Thanks,
RubyMine log on Mac OS X is located in ~/Library/Caches/RubyMine10/log, could you please attach it?
Log attached...
Attachment(s):
idea.log
Is problem actual only for ruby-pg gem or not?
I've just tried it and yes, it is only with this gem. Strange...
I have initiated another thread about the code completion problem with this gem.
It is this one:
http://www.jetbrains.net/devnet/thread/282553?tstart=0
Thanks,
Hello Guillermo,
I think this problem is caused by the structure of pg gem. It seems that it doesn't have source code avaiable and thus rubymine cannot process require 'pg' call correctly.
We plan to add API to improve RubyMine code comprehension in such cases.
Regards,
Oleg