Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Patrik Sundberg
RE: RSRuby on windows [ reply ]  
2009-12-03 17:17
I'll try to put something together - I've skipped windows for the moment but will try to remember it next time I use a windows box.

It wasn't very hard really, just installing the devkit and uncommenting the one line that gives the compile error.

By: Akram Abou-Emara
RE: RSRuby on windows [ reply ]  
2009-12-03 02:36
I am trying to get RSruby to work under windows vista. Would you share your instructions?

Thanks,
Akram

By: Patrik Sundberg
RE: RSRuby on windows [ reply ]  
2009-11-06 12:52
I'll write up some instructions later on once I've tested things a bit more.

By: Alex Gutteridge
RE: RSRuby on windows [ reply ]  
2009-11-05 10:25
Hi Patrik,

Thanks for this info (sorry for not replying earlier). I don't really have time to actively maintain RSRuby at the moment, but I'm happy to test and apply any patches you can send. Also if you have a step-by-step guide to compiling under Windows I'd be glad to include it in the docs. I don't really use Windows myself, so this is hard to test for me.

AlexG

By: Patrik Sundberg
RE: RSRuby on windows [ reply ]  
2009-11-04 12:29
Just realized the rb_complex_new() function is a ruby 1.9 thing and I was compiling under 1.8.6/1.8.7. Makes sense (could be predicated on ruby version using #ifdef to deal with API difference).

By: Patrik Sundberg
RE: RSRuby on windows [ reply ]  
2009-11-04 11:38
Using the new mingw built ruby from rubyinstaller.org and the devkit (i.e. a toolchain for building C extensions) I've just built rsruby.

I needed to make one change. In Converter.c there is a call to rb_complex_new(). As far as I know Complex is a ruby class, not a C type, nowadays and I can't find that function anywhere. I just commented it out (making it fail for complex number conversion for the time being) and it built fine.

Just played around with it a little bit and seem to work alright. The one thing that seems broken is plotting graphs in interactive mode, produces some output but updates "sporadically" and window is unresponsive.

By: Alex Gutteridge
RE: RSRuby on windows [ reply ]  
2009-02-02 13:22
Sorry, but I'm afraid I just don't use Windows, so there's not much I can do on this. The code is all open, so it just needs someone to pick it up and spend the time on it.

By: Nick Straw
RE: RSRuby on windows [ reply ]  
2009-02-01 19:00
2 years on - any progress on this query? I tried the gem but it didn't work.

Nick

By: Jirapong Nanta
RE: RSRuby on windows [ reply ]  
2009-01-27 18:07
Hi,
I am trying to build it with RTool, but no luck yet.

If you want to try, You can find information at
<a href="http://faculty.chicagogsb.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf";>http://faculty.chicagogsb.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf</a>

<br/>

<a href="http://www.murdoch-sutherland.com/Rtools/";>http://www.murdoch-sutherland.com/Rtools/</a>

By: Fernando Santos
RE: RSRuby on windows [ reply ]  
2008-03-09 14:23
Thanks for your answer!

By: Alex Gutteridge
RE: RSRuby on windows [ reply ]  
2008-03-09 12:30
Getting a compiled win32 gem ready has stalled recently. I don't have access to any windows machine at the moment so there's not much I can do, though that may change in a month or two.

Simon Chiang did get it compiling using mingw (I think), but I'd have to check.

AlexG

By: Fernando Santos
RE: RSRuby on windows [ reply ]  
2008-03-08 23:33
Hi guys,

Does anyone have a news about Rsruby on Windows?

Thanks,

Fernando

By: Alex Gutteridge
RE: RSRuby on windows [ reply ]  
2007-04-05 00:20
Hi Giang,

As Paul suggests, you might need to compile R yourself to get a shared library on Windows. As mentioned below, I don't have access to a Windows machine for developing on so I really can't offer much help I'm afraid.

The R mailing list(s) and web site should be able to point you in the right direction. Failing that, I know that RPy (on which RSRuby is based), does run on Windows so the people on that list may be able to help you more. If you manage to get something working on Windows, do please let me know so I can add something helpful to the Readme.

Sorry for not being able to offer a more useful reply.

Alex Gutteridge

By: Paul Lynch
RE: RSRuby on windows [ reply ]  
2007-04-04 18:12
I haven't tried using RSRuby on Windows, but it sounds like you might have to compile it yourself (instead of using R's Windows installer) in order to be able to set the option for getting the shared library. For help with this, consider posting a message to the R-help email list (the R users list).

Also, just as a tip, when posting a question, it is better to start a new thread than reply to an existing thread (especially an old thread). If you reply to an old thread, people are less likely to see it. (For example, I think Dr. Gutteridge told me he has the RSRuby forum set up to send him emails about new threads. I don't know if he gets notified about new messages on existing threads.)
--Paul

By: Giang Nguyen
RE: RSRuby on windows [ reply ]  
2007-04-04 08:05
On Windows, when I installed R, it didn't ask me the option to get the shared library. R\library contains so many differents libray(but none .dll file was found). I set R_HOME like that but it didn't work. Who can help me? Thanks.

By: Paul Lynch
RE: RSRuby on windows [ reply ]  
2007-02-21 22:31
I barely know anything about Windows either, but I did have to do some programming on it last fall. The error message sounds like it is probably looking for a .dll file (a shared library on Windows) for R. You may have to supply some option when building R in order to get the R DLL created. (I had to add an option to get the shared library created when I built R on Linux.) Assuming you have the R.dll (or whatever it is named) then the next issue is how it will be found. There is probably some path setting for DLLs on Windows, but if so I don't know what it is. In my programming class, I usually copied the DLL I needed to the directory I was working in. So, you might try copying the R.dll to your current directory, or to the directory with the Ruby executable (irb?) or perhaps copy it to the directory containing the Windows OS DLLs. There must be a more elegant approach; perhaps someone else might know.

By: Alex Gutteridge
RE: RSRuby on windows [ reply ]  
2007-02-21 00:47
Hi Nick,

I'm afraid I don't have access to a Windows machine to help you with this and my knowledge of how R and shared libraries work under Windows is essentially non-existant.

I will try and hunt around for information, but I can't promise much I'm afriad.

If anyone has experience with this or compiling under Windows in general, any help would be appreciated.

Alex Gutteridge

By: Nick Straw
RSRuby on windows [ reply ]  
2007-01-23 21:31
Can someone help me get this working on windows? I get "ERROR: Cannot find the R library, aborting...".
I guess this might be a windows thing. Has anyone got it working on windows?

Thanks.

Nick