About rb2js converter

Hi all,

I would like to use rb2js converter but when I enter the command:
$ ruby /Users/cyril/Downloads/Ruby2JS/test.rb

I’ve got this error:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- parse_tree (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:inrequire’
from ./rb2js.rb:2
from /Users/cyril/Downloads/Ruby2JS/test.rb:1:in `require’
from /Users/cyril/Downloads/Ruby2JS/test.rb:1

I work on Mac OS X 10.5 and I use ruby 1.8.6 (2007-09-24 patchlevel
111) [universal-darwin9.0].

Thanks you very much! :slight_smile:

Zang’

On Jan 5, 2008 8:02 PM, Zangief I. [email protected] wrote:

from /Users/cyril/Downloads/Ruby2JS/test.rb:1:in `require’
from /Users/cyril/Downloads/Ruby2JS/test.rb:1

sudo gem install ParseTree

you might need to run ruby with -rubygems switch, or require ‘rubygems’
before require ‘parsetree’

sudo gem install ParseTree

It’s perfect,
Thanks a lot.

Zangief I. wrote:

Hi all,

I would like to use rb2js converter but when I enter the command:
$ ruby /Users/cyril/Downloads/Ruby2JS/test.rb

Seems like a Ruby to Javascript converter.

You might want to try out RubyJS as well which you can find here:

http://www.ntecs.de/hg-projects/rubyjs/

Regards,

Michael

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs