RServe on OSX Snow Leopard

I always seem to have some difficulty getting the Rserve component of the R stats library up and running on OSX.  Installing it via install.packages(“rserve”) from within R  appears to work but when running R CMD Rserve I usually get some sort of error like:

/Library/Frameworks/R.framework/Resources/bin/Rcmd: line 62: exec: Rserve: not found

Compiling from source using the download from http://rosuda.org/Rserve/ never seems to work with all sorts of C related horror.

However, the Rserve component actually was installed but it looks like the paths/links were not quite right.  Typing this:

R CMD /Library/Frameworks/R.framework/Resources/library/Rserve/libs/x86_64/Rserve.so

Got everything up and running. Doing this:

cp /Library/Frameworks/R.framework/Resources/library/Rserve/libs/x86_64/Rserve-bin.so /Library/Frameworks/R.framework/Resources/bin/Rserve

fixes it a bit more permanently

4 thoughts on “RServe on OSX Snow Leopard”

  1. Nice to see I’m not alone. I gave up and wrote my own script that does:

    R CMD /Library/Frameworks/R.framework/Resources/library/Rserve/libs/i386/Rserve-bin.so

  2. Nice article. Yes, it was nice to know that I was not alone and the solution worked! I was not sure why it kept saying, Rserve was not found.

  3. I just created a symbolic link (shortcut) and it solves the issue as well.
    ln -s /Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rserve/libs/Rserve /Library/Frameworks/R.framework/Resources/bin/Rserve

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>