title: Error installing iconv on Ubuntu 11.10, using RVM
body: <p>I installed RVM, installed the suggested dependencies, but whenever I try to install iconv I get this error:</p>
  
  <pre><code>lpicado@lpicado-HP-EliteBook-8530w:~/app$ rvm pkg install iconv
  Fetching libiconv-1.13.1.tar.gz to /home/lpicado/.rvm/archives
  Extracting libiconv-1.13.1.tar.gz to /home/lpicado/.rvm/src
  Prepare libiconv in /home/lpicado/.rvm/src/libiconv-1.13.1.
  Error running 'autoreconf -is --force', please read /home/lpicado/.rvm/log/libiconv/autoreconf.log
  Configuring libiconv in /home/lpicado/.rvm/src/libiconv-1.13.1.
  Compiling libiconv in /home/lpicado/.rvm/src/libiconv-1.13.1.
  Error running 'make ', please read /home/lpicado/.rvm/log/libiconv/make.log
  </code></pre>
  
  <p>The <code>autoreconf.log</code> file says:</p>
  
  <pre><code>[2012-01-29 01:14:44] autoreconf -is --force
  configure.ac:100: warning: macro `AM_ICONV' not found in library
  configure.ac:101: warning: macro `AM_GNU_GETTEXT' not found in library
  configure.ac:149: warning: macro `AM_LANGINFO_CODESET' not found in library
  configure.ac:134: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
  ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
  ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
  configure.ac:134: the top level
  configure.ac:134: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
  ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
  ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
  configure.ac:134: the top level
  configure.ac:63: warning: macro `AM_LANGINFO_CODESET' not found in library
  libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
  libtoolize: linking file `build-aux/config.guess'
  libtoolize: linking file `build-aux/config.sub'
  libtoolize: linking file `build-aux/install-sh'
  libtoolize: linking file `build-aux/ltmain.sh'
  libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
  libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
  libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
  configure.ac:63: warning: macro `AM_LANGINFO_CODESET' not found in library
  configure.ac:63: error: possibly undefined macro: AM_LANGINFO_CODESET
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
  autoreconf: /usr/bin/autoconf failed with exit status: 1
  </code></pre>
  
  <p>The <code>make.log</code> file says:</p>
  
  <pre><code>[2012-01-29 01:14:44] autoreconf -is --force
  configure.ac:100: warning: macro `AM_ICONV' not found in library
  configure.ac:101: warning: macro `AM_GNU_GETTEXT' not found in library
  configure.ac:149: warning: macro `AM_LANGINFO_CODESET' not found in library
  configure.ac:134: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
  ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
  ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
  configure.ac:134: the top level
  configure.ac:134: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
  ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
  ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
  configure.ac:134: the top level
  configure.ac:63: warning: macro `AM_LANGINFO_CODESET' not found in library
  libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
  libtoolize: linking file `build-aux/config.guess'
  libtoolize: linking file `build-aux/config.sub'
  libtoolize: linking file `build-aux/install-sh'
  libtoolize: linking file `build-aux/ltmain.sh'
  libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
  libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
  libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
  configure.ac:63: warning: macro `AM_LANGINFO_CODESET' not found in library
  configure.ac:63: error: possibly undefined macro: AM_LANGINFO_CODESET
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
  autoreconf: /usr/bin/autoconf failed with exit status: 1
  </code></pre>
  
  <p>My Ruby version is:</p>
  
  <pre><code>lpicado@lpicado-HP-EliteBook-8530w:~/app$ ruby -v
  ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  </code></pre>
  
  <p>Rails:</p>
  
  <pre><code>lpicado@lpicado-HP-EliteBook-8530w:~/app$ rails -v
  Rails 3.2.1
  </code></pre>
  
  <p>Rubygems:</p>
  
  <pre><code>lpicado@lpicado-HP-EliteBook-8530w:~/app$ gem -v
  1.7.2
  </code></pre>
  
  <p>I tried using <a href="http://beginrescueend.com/packages/iconv/" rel="nofollow"><code>rvm pkg install iconv</code></a> but it didn't make a difference.</p>