On Mon, May 10, 2010 at 11:01 AM, R. Kumar [email protected]
wrote:
Repushing of gem versions is not allowed.
Successfully registered gem: rbcurse (1.1.3)
botp, please try it and let me know. Thanks a lot.
Posted via http://www.ruby-forum.com/.
Hi, it seems to be working on 1.9.1, but I’m having difficulty on 1.8.7.
I think the problem is that 1.8.7 is installed in
/Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3 which doesn’t have write
access to
view.log
The reason 1.9.1 works is because I use RVM, which places it in
~/.rvm/gems/ruby-1.9.1-p378/gems/rbcurse-1.1.3 since it’s in a subdir
of my
home dir, I think it has write access (sorry if this is way off, Unix
isn’t
my strong point)
Other differences are that when installing for 1.9.1, I had to do “gem
install --local ncurses-0.9.1.gem”, but I was able to get it to work
correctly with “sudo gem install ncurses” for 1.8.7
Here was my 1.8.7 session:
Last login: Sun May 9 11:36:45 on ttys001
Now using system ruby.
11:32 AM ~
â˜sudo gem install ncurses
Password:
Building native extensions. This could take a while…
Successfully installed ncurses-0.9.1
1 gem installed
Installing ri documentation for ncurses-0.9.1…
Installing RDoc documentation for ncurses-0.9.1…
11:32 AM ~
â˜sudo gem install rbcurse
Successfully installed rbcurse-1.1.3
1 gem installed
Installing ri documentation for rbcurse-1.1.3…
Installing RDoc documentation for rbcurse-1.1.3…
11:33 AM ~
â˜cd rvm gemdir
11:34 AM /Library/Ruby/Gems/1.8
â˜cd gems
11:34 AM /Library/Ruby/Gems/1.8/gems
â˜cd rbcurse-1.1.3/
11:34 AM /Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3
â˜cd examples/
11:34 AM /Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3/examples
â˜ruby test2.rb
#<Errno::EACCES: Permission denied - view.log>
“/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:525:in
initialize'\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:525:in
open’\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:525:in
create_logfile'\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:520:in
open_logfile’\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:487:in
initialize'\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:263:in
new’\n/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/logger.rb:263:in
initialize'\ntest2.rb:26:in
new’\ntest2.rb:26”
test2.rb:495: undefined method `debug’ for nil:NilClass (NoMethodError)
11:35 AM /Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3/examples
â˜cd ~
11:36 AM ~
â˜cd deleteme
11:36 AM ~/deleteme
â˜ruby /Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3/examples/test2.rb
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- qdfilechooser (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require’
from /Library/Ruby/Gems/1.8/gems/rbcurse-1.1.3/examples/test2.rb:16
11:36 AM ~/deleteme
â˜ruby -v
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
Hope that helps
-Josh