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

Dan Tenenbaum dtenenba at fhcrc.org
Thu Apr 11 00:42:37 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.
>
> 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?
>

PS, sessionInfo() is

R version 3.0.0 (2013-04-03)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] impute_1.34.0        BiocInstaller_1.10.0

loaded via a namespace (and not attached):
[1] tools_3.0.0

Dan


> Thanks,
> Dan
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list