2012-01-29 244 views
2

我安裝RVM,安裝建議的依賴關係,但每當我嘗試安裝的iconv我得到這個錯誤:錯誤在Ubuntu 11.10安裝的iconv,使用RVM

[email protected]:~/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 

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 

我的紅寶石版本是:

[email protected]:~/app$ ruby -v 
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] 

的Rails:

[email protected]:~/app$ rails -v 
Rails 3.2.1 

的RubyGems:

[email protected]:~/app$ gem -v 
1.7.2 

我嘗試使用rvm pkg install iconv但它並沒有發揮作用。

回答

1

第一次嘗試安裝這些程序包,然後安裝的iconv再次使用RVM:

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 
+0

我試過了,但我有一個非常類似的錯誤。 – leopic 2012-01-30 17:47:30

1

你並不需要通過RVM安裝的iconv的,Ubuntu提供的軟件包的版本是否正確:

rm -rf $rvm_path/usr 

rvm requirements # and follow the instructions 

rvm reinstall 1.8.7 

你需要重新安裝所有安裝的紅寶石

+0

紅寶石你的意思是寶石?我試過iconv - v,它似乎包在那裏,我應該去好嗎? – leopic 2012-01-30 17:48:17

+0

來自'rvm list'的紅寶石,但任何帶原生擴展名的寶石都可能受到影響 – mpapis 2012-01-31 00:28:51