安装R时出现库读取线问题

时间:2016-01-27 15:46:54

标签: r linux debian readline

我试图从源代码安装R 3.2.3。当我运行static boolean isBandShowing = ...; // whether the band should be shown static boolean isPortrait = ...; // whether we are in portrait mode, controls where the band is displayed static int horizontalBandHeight = ...; // default height for band in portrait mode static int verticalBandWidth = ...; // default width for band in landscape mode frameLayout.post(new Runnable() { @Override public void run() { bandView.setVisibility(isBandShowing ? View.VISIBLE : View.GONE); LayoutParams bandLayoutParams = new FrameLayout.LayoutParams( isPortrait ? LayoutParams.MATCH_PARENT : verticalBandWidth, // X isPortrait ? horizontalBandHeight : LayoutParams.MATCH_PARENT, // Y Gravity.BOTTOM | Gravity.RIGHT); bandView.setLayoutParams(bandLayoutParams); } }); 时,我收到错误:

./configure

就在此之前,有:

configure: error: --with-readline=yes (default) and headers/libs are not available

所以我猜问题是我的系统上没有安装库读取线。由于我没有root访问权限(我工作时),我尝试在本地安装它。这是我做的:

checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... no
checking for main in -ltermcap... yes
checking for rl_callback_read_char in -lreadline... no
checking for history_truncate_file... no

cd mkdir readline 下载tar.gz后:

/tmp

这似乎运作良好,但我仍然无法安装R,我得到同样的错误。如何判断R在哪里找到readline?

顺便说一句,我的操作系统是Debian 8,如果这有帮助的话。

0 个答案:

没有答案