fslaborg / RProvider

Access R packages from F#
http://fslab.org/RProvider/
Other
235 stars 69 forks source link

We might need LD_LIBRARY_PATH #146

Closed tpetricek closed 9 years ago

tpetricek commented 9 years ago

Looks like we might actually need LD_LIBRARY_PATH when using R provider on Mac (see the guide from Evelina).

I got the following error when running Deedle tests:

12) Test Error : Deedle.RPlugin.Tests.Filling missing values preserves type of columns (and allows R interop) System.Exception : Initialization of R.NET failed ----> System.Exception : This 32-bit process failed to load the library /Library/Frameworks/R.framework/Resources/lib/libR.dylib.

The environment variable LD_LIBRARY_PATH is not set. For some Unix-like operating systems you may need to set it BEFORE launching the application. For instance to /usr/local/lib/R/lib:/usr/local/lib:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server. You can get the value as set by the R console application for your system, with the statement Sys.getenv('LD_LIBRARY_PATH'). For instance from your shell prompt: Rscript -e "Sys.getenv('LD_LIBRARY_PATH')" export LD_LIBRARY_PATH=/usr/the/paths/you/just/got/from/Rscript

at RProvider.Internal.RInit+engine@114.Invoke () [0x00000] in :0

tpetricek commented 9 years ago

Actually, no, this is probably caused by the fact that Deelde runs the tests using 32 bit mono...