[R] installing biOps on MacOSX fails

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Mar 4 13:34:43 CET 2013


See the recent discussion on R-sig-mac (the place to ask questions about 
OS X).

On 04/03/2013 11:00, ishi soichi wrote:
> version.string R version 2.15.2 (2012-10-26)
>
> I am trying to install biOps on MacOS X 10.8.2
>
> First, I have tiff, fftw-3, jpeg
>
> and set paths like
>
> cd /usr/include
> sudo ln -s /usr/local/include/fftw3.h
> for x in /usr/local/include/j*.h; do sudo ln -s $x; done
> for x in /usr/local/include/tiff*.h; do sudo ln -s $x; done
> cd /usr/lib
> for x in /usr/local/lib/libfftw3.*; do sudo ln -s $x; done
> for x in /usr/local/lib/libjpeg.*; do sudo ln -s $x; done
> for x in /usr/local/lib/libtiff.*; do sudo ln -s $x; done
>
> then run,
>
> install.packages("biOps", repos="http://cran.md.tsukuba.ac.jp/", type="source")
>
>
> but it gives errors like the following.
> Can you tell me why ?  it looks like R cannot find the libraries..

R does nothing: it is the linker which cannot find the libraries. See 
the discussion on R-sig-mac ....

>
> ** R
> ** data
> ** inst
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>    unable to load shared object
> '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/biOps/libs/i386/biOps.so':
>
> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/biOps/libs/i386/biOps.so,
> 6): Symbol not found: _TIFFClose
>    Referenced from:
> /Library/Frameworks/R.framework/Versions/2.15/Resources/library/biOps/libs/i386/biOps.so
>    Expected in: flat namespace
>   in
> /Library/Frameworks/R.framework/Versions/2.15/Resources/library/biOps/libs/i386/biOps.so
> Error: loading failed
> Execution halted
> ERROR: loading failed
> * removing
> '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/biOps'
>
> The downloaded source packages are in
> '/private/var/folders/hk/1clspzcd49d173p3pvpk1f3w0000gn/T/RtmpFpgBgP/downloaded_packages'
> Warning message:
> In install.packages("biOps", repos = "http://cran.md.tsukuba.ac.jp/",  :
>    installation of package 'biOps' had non-zero exit status
>> library(biOps)
> Error in library(biOps) : there is no package called 'biOps'
>>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list