Skip to content
Prev 2682 / 15075 Next

help2man problem installing R-2.3.0 from source

Hi,
The problem is actually R's inability to print the version number  
normally .. for instance typing: './bin/R --version' produces the  
proper output, but './bin/R --version | cat' does not produce any  
output ('help2man' reads an empty strings, and throws an error).

The only solution for now is to download a pre-compiled version from  
CRAN, since it works perfectly (including 'R --version | cat').

However, I have tracked down the vulnerability to:
sys-std.c: In function 'pushReadline':
sys-std.c:497: warning: passing argument 2 of  
'rl_callback_handler_install' from incompatible pointer type
sys-std.c: In function 'popReadline':
sys-std.c:513: warning: passing argument 2 of  
'rl_callback_handler_install' from incompatible pointer type

The source file ./src/unix/sys-std.c refers to Apple's ReadLine on OS  
X 10.4-pre, and how it needs to be forced to flush the stdout to make  
it visible (this is exactly the problem described above from  
help2man). Simon fixed this almost a year ago (svn r33778), but it  
appears this problem has re-surfaced for some proportions of Macs.
I can provide a complete log from './configure', 'make' and 'sudo  
make install' to anyone interested in seeing.

+mt
On 2006-May-16, at 01:32 , Jean Thioulouse wrote: