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 https://www.gnu.org/software/libiconv/#downloading to download last version of libiconv

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

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

发表评论

电子邮件地址不会被公开。 必填项已用*标注