[R-SIG-Mac] DYLD_FALLBACK_LIBRARY_PATH not set in R.app

Dan Tenenbaum dtenenba at fhcrc.org
Thu Apr 11 03:05:25 CEST 2013


On Wed, Apr 10, 2013 at 3:38 PM, Dan Tenenbaum <dtenenba at fhcrc.org> wrote:
> Not sure if this is a bug or not, but there is different behavior
> between R.app and command-line R as regards
> DYLD_FALLBACK_LIBRARY_PATH.
>

It turns out that BioC was making packages incorrectly.

You can disregard this message.

Thanks,
Dan


> If I start R.app and try and load the BioC package 'impute':
>
> source('http://bioconductor.org/biocLite.R")
> biocLite("impute")
> library(impute)
>
> I get:
>
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object
> '/Library/Frameworks/R.framework.release/Versions/3.0/Resources/library/impute/libs/impute.so':
>   dlopen(/Library/Frameworks/R.framework.release/Versions/3.0/Resources/library/impute/libs/impute.so,
> 6): Library not loaded: /usr/local/lib/libgfortran.2.dylib
>   Referenced from:
> /Library/Frameworks/R.framework.release/Versions/3.0/Resources/library/impute/libs/impute.so
>   Reason: image not found
> Error: package or namespace load failed for 'impute'
>
> However, the package loads fine in command-line R.
>
> I found that if I start R.app like this:
>
>  export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/R.framework/Resources/lib
> open /Applications/R.app
>
> Then I can load the impute package.
>
> So can R.app set this variable when it starts? Or is there another
> solution I need to look at?
>
> Thanks,
> Dan



More information about the R-SIG-Mac mailing list