[MacRuby-devel] macirb or not working with awesome_print

Joshua Ballanco joshua.ballanco at apple.com
Tue Oct 5 23:38:18 PDT 2010


Hi Brad,

What's happening here is that the 'gem' command that ships with MacRuby is named 'macgem'. However, 'macirb' still looks at the same .irbrc file that the system 'irb' command does. So, if you've put in a require for awesome_print into your .irbrc, then 'macirb' will look for it but not find it.

Try running 'macgem install awesome_print' instead and let us know how it goes.

Cheers,

Josh


On Oct 5, 2010, at 10:29 PM, Brad Hutchins wrote:

> "DietRB" or "macirb" don't seem to be working after I install "gem awesome_print"
> 
> I have to "gem uninstall awesome_print" to get it to work.  
> 
> I am guessing DietRB may be the name of the IRB but it is still launches with "macirb"
> 
> 
> 
> localhost:Homebrew Brad$ rvm macruby
> 
> 
> localhost:Homebrew Brad$ macruby -v
> MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64]
> localhost:Homebrew Brad$ DietRB
> -bash: DietRB: command not found
> 
> 
> localhost:Homebrew Brad$ macirb
> ap gem not found.  Try typing 'gem install awesome_print' to get super-fancy output.
> irb(main):001:0> exit
> 
> localhost:Homebrew Brad$ gem install awesome_print
> unknown: warning: ignoring alias
> Successfully installed awesome_print-0.2.1
> 1 gem installed
> localhost:Homebrew Brad$ macirb
> /Users/Brad/.irbrc:1:in `<main>': uninitialized constant IRB::Irb (NameError)
> 	from /usr/local/bin/macirb:13:in `block'
> 	from /usr/local/bin/macirb:9:in `block'
> 	from /usr/local/bin/macirb:3:in `<main>'
> 
> 	
> localhost:Homebrew Brad$ DietRB
> -bash: DietRB: command not found
> 
> 
> localhost:Homebrew Brad$ rvm list
> 
> rvm rubies
> 
>    jruby-1.5.2 [ x86_64-java ]
> => macruby-0.7 [ x86_64 ]
>    rbx-1.0.1-20100603 [ x86_64 ]
>    ruby-1.8.7-p302 [ x86_64 ]
>    ruby-1.9.2-p0 [ x86_64 ]
> 
> 
> localhost:Homebrew Brad$ gem uninstall awesome_print
> Successfully uninstalled awesome_print-0.2.1
> localhost:Homebrew Brad$ macirb
> ap gem not found.  Try typing 'gem install awesome_print' to get super-fancy output.
> irb(main):001:0> 
>  
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20101005/721c5217/attachment.html>


More information about the MacRuby-devel mailing list