使用 RVM 在 Ubuntu 11.10 上安装 iconv 时出错

发布于 2025-01-01 03:44:22 字数 5633 浏览 0 评论 0原文

我安装了 RVM,安装了建议的依赖项,但每当我尝试安装 iconv 时,都会收到此错误:

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

autoreconf.log 文件显示:

[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

The make.log 文件显示:

[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

My Ruby 版本是:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Rails:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ rails -v
Rails 3.2.1

Rubygems:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ gem -v
1.7.2

我尝试使用 rvm pkg install iconv但它没有什么区别。

I installed RVM, installed the suggested dependencies, but whenever I try to install iconv I get this error:

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

The autoreconf.log file says:

[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

The make.log file says:

[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

My Ruby version is:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Rails:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ rails -v
Rails 3.2.1

Rubygems:

lpicado@lpicado-HP-EliteBook-8530w:~/app$ gem -v
1.7.2

I tried using rvm pkg install iconv but it didn't make a difference.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

追我者格杀勿论 2025-01-08 03:44:22

首先尝试安装这些软件包,然后再次使用 RVM 安装 iconv:

sudo apt-get install  \ 
   aspell aspell-en autoconf automake bc ccache colordiff  \ 
   coreutils cvs doxygen flex g++ gettext git-core gnuplot  \ 
   graphviz help2man imagemagick libboost-all-dev  \ 
   liblinphone-dev libx11-dev make pkg-config  \ 
   python-docutils python-yaml python2.6 socat  \ 
   sun-java6-jdk swig tex4ht texinfo texlive-base  \ 
   texlive-binaries texlive-latex-extra transfig valgrind

First try installing these packages and then install iconv using RVM once again:

sudo apt-get install  \ 
   aspell aspell-en autoconf automake bc ccache colordiff  \ 
   coreutils cvs doxygen flex g++ gettext git-core gnuplot  \ 
   graphviz help2man imagemagick libboost-all-dev  \ 
   liblinphone-dev libx11-dev make pkg-config  \ 
   python-docutils python-yaml python2.6 socat  \ 
   sun-java6-jdk swig tex4ht texinfo texlive-base  \ 
   texlive-binaries texlive-latex-extra transfig valgrind
又怨 2025-01-08 03:44:22

您不需要通过rvm安装 iconv,ubuntu 提供正确版本的软件包:

rm -rf $rvm_path/usr

rvm requirements # and follow the instructions

rvm reinstall 1.8.7

您需要重新安装所有已安装的 rubies

You do not need to install iconv via rvm, ubuntu provide proper versions of packages:

rm -rf $rvm_path/usr

rvm requirements # and follow the instructions

rvm reinstall 1.8.7

You need to reinstall all the installed rubies

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文