thanks for your answer.
The problem in my case was that Mac was loading R (32-bit) version rather
than R64 (64-bit).
Since many libraries in this Mac are compiled for 64 architecture. So
naturally the installation did not work at all.

Please make use of my case for future reference.

soichi


2013/3/4 Prof Brian Ripley <ripley@stats.ox.ac.uk>

> 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/<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@r-project.org mailing list
>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>> PLEASE do read the posting guide http://www.R-project.org/**
>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> --
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~**ripley/<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
>
> ______________________________**________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
> PLEASE do read the posting guide http://www.R-project.org/**
> posting-guide.html <http://www.R-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

