MacOS compile R error: dyld: Symbol not found: _libiconv_open

First, compile libiconv from source and install it in an alternate location. I installed it on /usr/local (be sure to leave system’s libiconv alone).

go to to download last version of libiconv

cd libiconv-1.14
./configure --prefix=/usr/local
sudo make install

cd ../R-3.2.0
make clean
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
make install

Leave a Reply




%d 博主赞过: