Re: Is it possible to run rake on the latest binary release of IronRuby?


#1

The next time I push, that should be fixed. Tomas just implemented
Method#to_proc last week.

JD

…there is no try
Sent from my phone. Please excuse typos and txtspk.


#2

Hi Jim

Cool! I’ll be waiting for that one then :slight_smile: Any idea when you’ll push
it into the trunk? Also do you know if there is a guide for building
IronRuby from scratch so that I can build it and get the fix?

Thanks

Patrick


#3

Hi Jim

Thanks for that. I grabbed the sources from GitHub. For now I just
grabbed a zip file as I just want to play around with IronRuby.

I followed the instructions on the website and managed to build the
solution (using VS2008) just fine. No errors / warnings etc. I then
copied all the binaries into another folder. I also copied the cmd
files from the 0.3 release into that folder. I then tried to run irake
but got another error:

C:\languages\ironruby\bin>irake
:0:in `require’: no such file to load – rubygems (LoadError)
from C:/languages/ironruby/bin/irake:9

And when I try to run igem to install rake I get:

C:\languages\ironruby\bin>igem install rake
:0:in `require’: no such file to load – rubygems (LoadError)
from C:/languages/ironruby/bin/igem:8

So any idea where I went wrong? I think I did all the steps in the
right order but given that it’s not working I guess I didn’t entirely
get it right :frowning:

Thanks heaps for all your help

Patrick


#4

Pushed it a little while ago. To build, follow the instructions here:
http://wiki.github.com/ironruby/ironruby/getting-the-sources to get
sources, then here: http://wiki.github.com/ironruby/ironruby/building to
build. If you want to contribute back to the project, you can follow the
instructions here: http://wiki.github.com/ironruby/ironruby/contributing

Hope that helps, feel free to ask if you need help.

JD

…there is no try


#5

if you extract the 0.3 release and copy the compiled binaries without
the
config file over it should be fine.
Alternatively you can change the content of ir.exe.config to match your
config.
IronRuby needs to know the paths in which it can find stuff like
rubygems.rb

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)

Bernard
Baruchhttp://www.brainyquote.com/quotes/authors/b/bernard_baruch.html

  • “Vote for the man who promises least; he’ll be the least
    disappointing.”

On Mon, May 11, 2009 at 12:03 AM, Patrick van der Velde <


#6

Hi Ivan

Obviously that worked :slight_smile: Thanks heaps!

Patrick


#7

An implementation of Method#to_proc already exists in
Merlin/Main/Languages/Ruby/Libs/hacks.rb, so if Libs is on your path you
can just “require ‘hacks’” to make rake work.