2013-04-07 3 views
3

를 설치 rvm pkg install iconv를, 그것은이 오류와 함께 실패의 iconv의 RVM 오류

Error running 'autoreconf -is --force', 
please read /usr/local/rvm/log/libiconv/autoreconf.log 
Configuring libiconv in /usr/local/rvm/src/libiconv-1.13.1......................... 
Error running './configure --prefix=/usr/local/rvm/usr --enable-shared', 
please read /usr/local/rvm/log/libiconv/configure.log 
Compiling libiconv in /usr/local/rvm/src/libiconv-1.13.1.. 
Error running 'make -j1', 
please read /usr/local/rvm/log/libiconv/make.log 

Please note that it's required to reinstall all rubies: 

    rvm reinstall all --force 

로그에서, 그것은 말한다 :

[email protected]:~# cat /usr/local/rvm/log/libiconv/autoreconf.log 
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 
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. 
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. 
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION 
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: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:151: error: possibly undefined macro: AC_EILSEQ 
     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 

내가 가야하는 방법 이걸 고쳐?

+1

그냥 말해야한다고 생각했는데 : Iconv는 2.0.0에서 폐기되었습니다. Ruby의 내부 인코딩 기능을 위해 1.9 버전으로 사용되지 않습니다. – Linuxios

답변

6

함께보십시오 : 당신은 rvm pkg를 사용할 필요가 없습니다

rvm get head 
rvm --skip-autoreconf pkg install iconv 
3

, RVM 1.19autolibs 함께 제공 - pkg을 deprecates있다.

Autolibs는 컴파일하는 대신 패키지 관리자를 사용하여 루비에 대한 종속성을 가져 오므로 시스템의 다른 부분과의 루비 호환성이 향상됩니다.

rvm get stable 
rvm autolibs enable 
rvm install ruby 

RVM 종속성을 설치 한 다음 필요한 루비를 만들 것이다 : autolibs를 사용

는만큼 간단합니다.