[Rd] problems with iconv

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Dec 13 20:29:18 CET 2011

On 13/12/2011 17:12, RogerP wrote:
> I'm at wit's ends here and need some help.

Like reading the manual?

You need to ensure that GNU libiconv is actually used: you are obviously 
not finding it, and I suspect your error is in not setting the path to 
its header file.

There are explicit instructions for libiconv on Solaris in the manual 
which the INSTALL file asked you to read before trying to install R and 
to resolve any problems.

> I've downloaded and compiled iconv versions 1.13 and 1.14  -
> libiconv.so.2.5.0 and libiconv.so.2.5.1 and copied the iconv all over,
> replacing the native iconv on my Solaris machine.
> Still when I try to run the configure I get:
> checking iconv.h usability... yes
> checking iconv.h presence... yes
> checking for iconv.h... yes
> checking for iconv... yes
> checking whether iconv accepts "UTF-8", "latin1", "ASCII" and "UCS-*"...
> ac_fn_c_try_run  29941
> no
> configure: error: a suitable iconv is essential
> If I cheat and rig the configure file so that it continues even with the
> error, I get a nice version of R that runs several of the demos, but should
> I try to update the packages I get:
> * installing *source* package 'foreign' ...
> ** package 'foreign' successfully unpacked and MD5 sums checked
> Error in iconv(x, "latin1", "ASCII") :
>    unsupported conversion from 'latin1' to 'ASCII'
> So, what is wrong with iconv 1.14?  It should be latest and greatest.  What
> other iconv should I have used?  Where should I have put iconv?
> Thanks very much in advance and I promise to share the binaries with who
> ever wants them,
> roger
> --
> View this message in context: http://r.789695.n4.nabble.com/problems-with-iconv-tp4191177p4191177.html
> Sent from the R devel mailing list archive at Nabble.com.
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

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-devel mailing list