From simon.urbanek at r-project.org  Wed Sep 30 16:58:32 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 30 Sep 2009 10:58:32 -0400
Subject: [Rd] How to compile R with command completion?
In-Reply-To: <366c6f340909300713v5354d451p26cd8e86ff678e@mail.gmail.com>
References: <366c6f340909291134w1b253caeje00a3054ef35e619@mail.gmail.com>
	<4AC27267.2060007@gmail.com>
	<366c6f340909291946u545c024fyf0ac54e002e3927@mail.gmail.com>
	<4AC2D2E8.8040208@fhcrc.org>
	<366c6f340909300526s3470a4eep63c92eb67f24270b@mail.gmail.com>
	<4AC361CA.3010206@fhcrc.org>
	<366c6f340909300713v5354d451p26cd8e86ff678e@mail.gmail.com>
Message-ID: <B4579565-640A-426B-BC09-9DB4F8FEC660@r-project.org>


On Sep 30, 2009, at 10:13 , Peng Yu wrote:

> I compiled R-2.9.2 from source on Cent OS. But the compile R program
> does not support command completion.
>
> I get the following configure output that is related to readline. Why
> 'rl_completion_matches' doesn't exist?

Maybe your readline is too old? Maybe you have a readline-replacement  
library (e.g. libedit) that poses as readline? Try installing some  
recent readline (incl. -dev part) - the current version is 6.0. If  
that doesn't help, look at config.log around the rl_completion_matches.

Cheers,
Simon


> How should I make R support
> command completion?
>
> ===================
> checking readline/history.h usability... yes
> checking readline/history.h presence... yes
> checking for readline/history.h... yes
> checking readline/readline.h usability... yes
> checking readline/readline.h presence... yes
> checking for readline/readline.h... yes
> checking for rl_callback_read_char in -lreadline... no
> checking for main in -lncurses... yes
> checking for rl_callback_read_char in -lreadline... yes
> checking for history_truncate_file... yes
> checking whether rl_completion_matches exists and is declared... no
>
>
> checking readline/history.h usability... yes
> checking readline/history.h presence... yes
> checking for readline/history.h... yes
> checking readline/readline.h usability... yes
> checking readline/readline.h presence... yes
> checking for readline/readline.h... yes
> checking for rl_callback_read_char in -lreadline... no
> checking for main in -lncurses... yes
> checking for rl_callback_read_char in -lreadline... yes
> checking for history_truncate_file... yes
> checking whether rl_completion_matches exists and is declared... no
> =====================
>
>
> Here is my sessionInfo() of the compiled R.
> =========================
> $ R
>
> R version 2.9.2 (2009-08-24)
> Copyright (C) 2009 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
>  Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
>> sessionInfo()
> R version 2.9.2 (2009-08-24)
> x86_64-unknown-linux-gnu
>
> locale:
> LC_CTYPE 
> = 
> en_US 
> .UTF 
> -8 
> ;LC_NUMERIC 
> = 
> C 
> ;LC_TIME 
> = 
> en_US 
> .UTF 
> -8 
> ;LC_COLLATE 
> = 
> en_US 
> .UTF 
> -8 
> ;LC_MONETARY 
> = 
> C 
> ;LC_MESSAGES 
> = 
> en_US 
> .UTF 
> -8 
> ;LC_PAPER 
> = 
> en_US 
> .UTF 
> -8 
> ;LC_NAME 
> = 
> C 
> ;LC_ADDRESS 
> =C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] How to compile R with command completion?
Simon Urbanek