 |
Forums |
Admin Discussion Forums: help Start New Thread
By: ben woodcroft
RE: Note on install error (and fix!) [ reply ] 2008-11-22 08:37
|
No worries Alex - completely understand.
Now that you've created a github for rsruby, I deleted mine and forked yours instead, to make things easier for you.
So some of the instructions below no longer work. Currently, to install RSRuby with R 2.8.0, do this:
$ gem sources -a http://gems.github.com (you only have to do this once)
$ sudo gem install wwood-rsruby -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/share/R/include/
If you merge my diff into your repo, Alex, then it will be
$ sudo gem install alexgutteridge-rsruby -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/share/R/include/
instead.
ben
|
By: Alex Gutteridge
RE: Note on install error (and fix!) [ reply ] 2008-11-11 13:37
|
Hi Ben,
Thanks for this. Sorry I've not been able to chime in earlier, but the day job has completely taken over in the last few weeks *sigh*.
I'm going to try and get something on github sorted out and then tackle the list of rsruby patches which have been building up.
AlexG
|
By: ben woodcroft
RE: Note on install error (and fix!) [ reply ] 2008-11-11 12:20
|
Actually, the gem won't work, because I haven't made a rsruby.gemspec file in the repo on github (yet). You'll have to download/git clone and then run
$ rake gem
to create the gem, and then something like
$ sudo gem install pkg/rsruby-0.5.1.gem -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/share/R/include/
ben
|
By: ben woodcroft
RE: Note on install error (and fix!) [ reply ] 2008-11-11 03:25
|
|
I believe there is a bug in the CRAN Ubuntu and debian packages such that Rdevices.h is not included in any packages, and therefore installation won't work using the newest versions, but does using the official Ubuntu repo version 2.7.1-2 at least.
|
By: ben woodcroft
Note on install error (and fix!) [ reply ] 2008-11-03 07:37
|
I just came across a problem installing that I've now managed to fix, and thought I might post it online since googling for it didn't help me.
Installing rsruby gave me this problem
$ sudo gem install rsruby -- --with-R-dir=/usr/lib/R/
--with-R-include=/usr/share/R/include/
Building native extensions. This could take a while...
ERROR: Error installing rsruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install rsruby -- --with-R-dir=/usr/lib/R/
--with-R-include=/usr/share/R/include/
checking for main() in -lR... yes
checking for R.h... yes
creating Makefile
make
cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -DHAVE_R_H
-I/usr/share/R/include/ -I/usr/lib/R//include -fPIC
-fno-strict-aliasing -g -g -O2 -fPIC -c rsruby.c
In file included from rsruby.c:32:
rsruby.h:41:22: error: Rdevices.h: No such file or directory
make: *** [rsruby.o] Error 1
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/rsruby-0.5 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rsruby-0.5/ext/gem_make.out
On Ubuntu Hardy, this was fixed by installing the r-base-core package, which has the Rdevices.h file. It was confusing to me that it wasn't in the r-core-dev package.
$ sudo apt-get install r-base-core
$ sudo gem install rsruby -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/share/R/include/Building native extensions. This could take a while...
Successfully installed rsruby-0.5
1 gem installed
Installing ri documentation for rsruby-0.5...
Installing RDoc documentation for rsruby-0.5...
ben
|
|
 |