4691098b7dbc11040c5293436535b018

关于readline的错误

2012-04-01 19:28:12 +0800Edwin_xueRuby 節點 中發起
最後由 匿名 於回應 , 136次閱讀

ubuntu环境

安装rvm

bash -s stable < <(curl -s http://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile

rvm pkg install zlib
rvm pkg install openssl
均正常
rvm pkg install readline

Fetching readline-5.2.tar.gz to /home/luthur/.rvm/archives
Extracting readline-5.2.tar.gz to /home/luthur/.rvm/src
Applying patch '/home/luthur/.rvm/patches/readline-5.2/shobj-conf.patch'...
Prepare readline in /home/luthur/.rvm/src/readline-5.2.
Error running 'autoreconf -is --force', please read /home/luthur/.rvm/log/readline/autoreconf.log
Configuring readline in /home/luthur/.rvm/src/readline-5.2.
Uninstalling readline from /home/luthur/.rvm/usr
Removing readline-5.2 from /home/luthur/.rvm/src
Fetching readline-6.2.tar.gz to /home/luthur/.rvm/archives
Extracting readline-6.2.tar.gz to /home/luthur/.rvm/src
Applying patch '/home/luthur/.rvm/patches/readline-6.2/patch-shobj-conf.diff'...
Prepare readline in /home/luthur/.rvm/src/readline-6.2.
Error running 'autoreconf -is --force', please read /home/luthur/.rvm/log/readline/autoreconf.log
Configuring readline in /home/luthur/.rvm/src/readline-6.2.
Uninstalling readline from /home/luthur/.rvm/usr
Removing readline-6.2 from /home/luthur/.rvm/src

以下是log的信息

[2012-04-01 18:21:41] autoreconf -is --force
autoheader: warning: missing template: CTYPE_NON_ASCII
autoheader: Use AC_DEFINE([CTYPE_NON_ASCII], [], [Description])
autoheader: warning: missing template: FIONREAD_IN_SYS_IOCTL
autoheader: warning: missing template: HAVE_BSD_SIGNALS
autoheader: warning: missing template: HAVE_GETPW_DECLS
autoheader: warning: missing template: HAVE_LANGINFO_CODESET
autoheader: warning: missing template: HAVE_MBRLEN
autoheader: warning: missing template: HAVE_MBSCMP
autoheader: warning: missing template: HAVE_MBSNRTOWCS
autoheader: warning: missing template: HAVE_MBSRTOWCS
autoheader: warning: missing template: HAVE_MBSTATE_T
autoheader: warning: missing template: HAVE_POSIX_SIGNALS
autoheader: warning: missing template: HAVE_POSIX_SIGSETJMP
autoheader: warning: missing template: HAVE_STRUCT_DIRENT_D_FILENO
autoheader: warning: missing template: HAVE_STRUCT_DIRENT_D_INO
autoheader: warning: missing template: HAVE_USG_SIGHOLD
autoheader: warning: missing template: HAVE_WCRTOMB
autoheader: warning: missing template: HAVE_WCSCOLL
autoheader: warning: missing template: HAVE_WCSDUP
autoheader: warning: missing template: HAVE_WCTYPE
autoheader: warning: missing template: HAVE_WCWIDTH
autoheader: warning: missing template: MUST_REINSTALL_SIGHANDLERS
autoheader: warning: missing template: NO_MULTIBYTE_SUPPORT
autoheader: warning: missing template: SPEED_T_IN_SYS_TYPES
autoheader: warning: missing template: STRCOLL_BROKEN
autoheader: warning: missing template: STRUCT_WINSIZE_IN_SYS_IOCTL
autoheader: warning: missing template: STRUCT_WINSIZE_IN_TERMIOS
autoheader: warning: missing template: TIOCSTAT_IN_SYS_IOCTL
autoheader: warning: missing template: VOID_SIGHANDLER
autoreconf: /usr/bin/autoheader failed with exit status: 1

之后
rvm --skip-autoreconf pkg install readline
没有错误

但是
heroku login会提示

/home/luthur/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
    from /home/luthur/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/lib/heroku/command/run.rb:1:in `<top (required)>'
    from /home/luthur/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/luthur/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/lib/heroku/command.rb:15:in `block in load'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/lib/heroku/command.rb:14:in `each'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/lib/heroku/command.rb:14:in `load'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/lib/heroku/cli.rb:8:in `start'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/gems/heroku-2.23.0/bin/heroku:16:in `<top (required)>'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/bin/heroku:19:in `load'
    from /home/luthur/.rvm/gems/ruby-1.9.2-p318/bin/heroku:19:in `<main>'

求指教

暫無回應。
需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊