metalaureate
metalaureate

Reputation: 7732

R CMD Rserve: not found on Mac OS X

Anyone know running the command line for Rserve on Mac OS X

R CMD Rserve --no-save

generates a

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

(works fine on Linux)

however, starting it from an R console, as in

library(Rserve)
Rserve();

works fine. But I really want to start it from the command line on Mac OS X.

Upvotes: 3

Views: 2898

Answers (3)

Justin Tanner
Justin Tanner

Reputation: 14352

One solution is to symlink Rserve like this:

ln -s /Library/Frameworks/R.framework/Resources/library/Rserve/libs/Rserve /Library/Frameworks/R.framework/Resources/bin/Rserve

Upvotes: 0

Wombat
Wombat

Reputation: 138

I have the same issue on Mac OS X 10.8.5 running Rserve 1.7-3 binaries, and R 2.15.0.

I have a workaround by issuing

> export REXEC=/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rserve/libs/x86_64
> cd $REXEC
> export R_HOME=/Library/Frameworks/R.framework/Resources
> ./Rserve

But > R CMD Rserve is broken for me.

Upvotes: 1

Chris Hinshaw
Chris Hinshaw

Reputation: 7255

This is working for me with R 2.15.2 and Rserve "1.7-0". I am pretty sure it is because don't have the library loaded when R is starting. You can probably add library("Rserve") to your .Rprofile and it should work since it will load the library when R is started. The namespace the Rserve and run.Rserve exported.

chinshaw$ cat NAMESPACE 
useDynLib(Rserve)
export(Rserve, self.ctrlEval, self.ctrlSource, self.oobSend, self.oobMessage, run.Rserve)

Upvotes: 2

Related Questions