Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 1.9.3,RVM,readline赢得';t安装/编译_Ruby_Rvm_Readline - Fatal编程技术网

Ruby 1.9.3,RVM,readline赢得';t安装/编译

Ruby 1.9.3,RVM,readline赢得';t安装/编译,ruby,rvm,readline,Ruby,Rvm,Readline,我遇到了以下错误。我在Ruby 1.9.2中使用了RVM,一切都很完美。我更新到ruby版本1.9.3,现在我在尝试使用irb时遇到了一个加载错误 /home/pabera/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- active_support (LoadError) 事实上,我已经安装了所有

我遇到了以下错误。我在Ruby 1.9.2中使用了RVM,一切都很完美。我更新到ruby版本1.9.3,现在我在尝试使用irb时遇到了一个加载错误

/home/pabera/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in 
`require': cannot load such file -- active_support (LoadError)
事实上,我已经安装了所有的readline软件包(1.9.2运行良好)

现在,我使用rvm pkg readline尝试了几个想法。这样做,我得到以下输出

$ rvm pkg install readline
Fetching readline-5.2.tar.gz to /home/pabera/.rvm/archives
Extracting readline-5.2.tar.gz to /home/pabera/.rvm/src
Applying patch '/home/pabera/.rvm/patches/readline-5.2/shobj-conf.patch'...
Prepare readline in /home/pabera/.rvm/src/readline-5.2.
Error running 'autoreconf -is --force', please read /home/pabera/.rvm/log/readline/autoreconf.log
Configuring readline in /home/pabera/.rvm/src/readline-5.2.
Compiling readline in /home/pabera/.rvm/src/readline-5.2.
Installing readline to /home/pabera/.rvm/usr
Fetching readline-6.2.tar.gz to /home/pabera/.rvm/archives
Extracting readline-6.2.tar.gz to /home/pabera/.rvm/src
Applying patch '/home/pabera/.rvm/patches/readline-6.2/patch-shobj-conf.diff'...
Prepare readline in /home/pabera/.rvm/src/readline-6.2.
Error running 'autoreconf -is --force', please read /home/pabera/.rvm/log/readline/autoreconf.log
Configuring readline in /home/pabera/.rvm/src/readline-6.2.
Compiling readline in /home/pabera/.rvm/src/readline-6.2.
Installing readline to /home/pabera/.rvm/usr
我在中间得到了错误,我不知道如何修复它< /P>
Error running 'autoreconf -is --force', please read /home/pabera/.rvm/log/readline/autoreconf.log
我的Autoconf.log输出。这个自动确认问题会导致我的问题吗?是的,我该如何修复丢失的模板呢

$ cat /home/pabera/.rvm/log/readline/autoreconf.log
[2012-03-19 10:07:03] 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
...
autoreconf: /usr/bin/autoheader failed with exit status: 1

您有什么建议吗?

看起来您可能忘了使用ruby:

rvm use 1.9.3 --default
默认标志将告诉rvm将其用于新端子

用于项目(如rails):

这将创建一个gemset
my app
和项目配置文件
.rvmrc
-现在当您cd到该目录时,RVM将切换到该目录ruby@gemset.


有一个很好的屏幕展示了rvm的基本用法:

听起来你只需要像平常一样使用
gem install
重新安装合适的gems。不同的rvm安装有不同的gem套件。
gem list
的输出是什么?
gem list
显示我的所有gem,
gem install
需要一个gem名称。。我正在使用bundler设置我的gems。。这很好用-例如rails服务器就很好用,这对我很有帮助,也让我很好用。你的系统上安装的readline版本是什么?我不知道这是否也能完成这项工作。我在上面的评论中使用了另一种方法。根据您在问题文本中所写的内容,您在使用RVM时遇到问题,rest看起来很好,即使运行autotool时出现问题-readline已生成,您缺少
活动\u支持
-因此加载gem时出现问题,当您有默认的ruby但没有使用它时,这种情况最有可能发生
cd projects/my-app
rvm use 1.9.3@my-app --rvmrc --create