[R-SIG-Mac] tab completion on R terminal (Mac)
Ping-Hsun Hsieh
hsiehp at ohsu.edu
Tue Apr 7 21:35:40 CEST 2009
Hi Simon,
I tried both installing the readline in my home dir and asking my system admin to install it for me, but none of these works out. We downloaded the readline-6.0 from GUN, and used the configure/make install described in http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html
Sec. 2.1.3
The configure seems running well, no error messages at least, but the following error messages popped up when we were trying to install it.
make[1]: Nothing to be done for `all'.
( cd examples ; make DESTDIR= install )
/bin/sh ../support/mkdirs /usr/local/share/readline
mkdir /usr/local/share/readline
mv /usr/local/lib/libreadline.a /usr/local/lib/libreadline.old
mv: rename /usr/local/lib/libreadline.a to /usr/local/lib/libreadline.old: No such file or directory
make: [install-static] Error 1 (ignored)
/usr/bin/install -c -m 644 libreadline.a /usr/local/lib/libreadline.a
test -n "ranlib" && ranlib /usr/local/lib/libreadline.a
ranlib: empty library: /usr/local/lib/libreadline.a (no table of contents added)
mv /usr/local/lib/libhistory.a /usr/local/lib/libhistory.old
mv: rename /usr/local/lib/libhistory.a to /usr/local/lib/libhistory.old: No such file or directory
make: [install-static] Error 1 (ignored)
/usr/bin/install -c -m 644 libhistory.a /usr/local/lib/libhistory.a
test -n "ranlib" && ranlib /usr/local/lib/libhistory.a
ranlib: empty library: /usr/local/lib/libhistory.a (no table of contents added)
( cd shlib ; make DESTDIR= install )
/bin/sh ../support/mkdirs /usr/local/lib
/bin/sh ../support/shlib-install -O darwin9.6.0 -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libhistory.6.0.dylib
/bin/sh ../support/shlib-install -O darwin9.6.0 -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/install -c -m 644" libreadline.6.0.dylib
install: you may need to run ldconfig
It looks like the installation was trying to mv/change names of files, but it failed due to no such file or directory. Though I am not sure what these files are.
Any thoughts/suggestions are welcome.
Thanks,
PingHsun
-----Original Message-----
From: r-sig-mac-bounces at stat.math.ethz.ch [mailto:r-sig-mac-bounces at stat.math.ethz.ch] On Behalf Of Ping-Hsun Hsieh
Sent: Saturday, April 04, 2009 12:54 AM
To: Simon Urbanek
Cc: r-sig-mac at stat.math.ethz.ch
Subject: Re: [R-SIG-Mac] tab completion on R terminal (Mac)
Thanks, Simon.
I misunderstood the configuration.
Appreciate your comments and helps!
PingHsun
________________________________
From: Simon Urbanek [mailto:simon.urbanek at r-project.org]
Sent: 2009/4/3 [¬P´Á¤] ¤U¤È 06:30
To: Ping-Hsun Hsieh
Cc: <r-sig-mac at stat.math.ethz.ch>
Subject: Re: [R-SIG-Mac] tab completion on R terminal (Mac)
On Apr 3, 2009, at 18:40, "Ping-Hsun Hsieh" <hsiehp at ohsu.edu> wrote:
> Hi Simon,
>
> Thanks for the reply.
> I did complie my own version of R in my home dir of the Mac since I do
> not have the root privilege to install anything involved writing
> actions on /etc/ , /bin/, or /lib/.
>
> I followed the instruction of the following two web-pages
> http://r.research.att.com/building.html and
> http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html bullet 2.1.3
>
> Here is my configuration and make:
>
> ## configure
> $./configure SHELL='/bin/bash' \
> r_arch=x86_64 \
> CC="gcc -arch x86_64 -std=gnu99" \
> CXX="g++ -arch x86_64" \
> OBJC="gcc -arch x86_64" \
> F77="gfortran -arch x86_64" \
> FC="gfortran -arch x86_64" \
> --prefix=$HOME \
> --with-system-zlib \
> --with-blas='-framework vecLib' --with-lapack
>
> ## make
> $make -j4 && \
> make check && \
> make CPPFLAGS=-DNEED_EXTERN_PC
>
The above CPPFLAGS are for readline, not for R. The compilation and installation of readline must be done *before* you configure R (see the FAQ).
Cheers,
Simon
> ## install
> $make install
>
> I thought I have complied/configured readline. Does anything look not
> right above?
> By the way, the Mac's OS is Leopard.
> And I forgot to mention that when I type the tab in R console only, it
> does come up "./" followed by the sub-directories under the current
> directory.
>
> Thanks,
> PingHsun
>
>
>
> -----Original Message-----
> From: Simon Urbanek [mailto:simon.urbanek at r-project.org]
> Sent: Friday, April 03, 2009 2:07 PM
> To: Ping-Hsun Hsieh
> Cc: r-sig-mac at stat.math.ethz.ch
> Subject: Re: [R-SIG-Mac] tab completion on R terminal (Mac)
>
>
> On Apr 3, 2009, at 16:40 , Ping-Hsun Hsieh wrote:
>
>> Bear R-experts,
>>
>> Sorry if my question is too trivial.
>>
>> I am using ssh to access and run R on a 64-bit Mac machines from my
>> windows machine.
>> But I find that the tab-completion does not work when I tried.
>>
>
> I suspect that you have compiled your own version of R and you did not
> use readline. I would suggest using the official Leopard binary from
> http://r.research.att.com/ which uses readline and supports code
> completion.
>
> Cheers,
> Simon
>
>
>> For example, on my windows machine, I can type tab to get a full name
>> of a specific object.
>>
>>> ls()
>> [1] data1 func1 data3
>>
>>> fun ##<tab>
>>> func1 ##it completes the name of the object automatically
>>
>> It does not work on the Mac machine when I use R as a terminal tool.
>>
>> I checked the following R website, do not have any clue though.
>> 5.5 What does TAB completion do?
>> http://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-does-TAB-
>> completion-do_003f
>>
>>
>> Any suggestion and comment are welcome and appreciated!
>>
>> Best Regards,
>> PingHsun
>>
>>
>> My rc.status()
>>
>> $linebuffer
>> [1] ""
>>
>> $options
>> $options$package.suffix
>> [1] "::"
>>
>> $options$funarg.suffix
>> [1] "="
>>
>> $options$function.suffix
>> [1] "("
>>
>>
>> $end
>> [1] 1
>>
>> $settings
>> $settings$ops
>> [1] TRUE
>>
>> $settings$ns
>> [1] TRUE
>>
>> $settings$args
>> [1] TRUE
>>
>> $settings$func
>> [1] FALSE
>>
>> $settings$ipck
>> [1] FALSE
>>
>> $settings$S3
>> [1] TRUE
>>
>> $settings$data
>> [1] TRUE
>>
>> $settings$help
>> [1] TRUE
>>
>> $settings$argdb
>> [1] TRUE
>>
>> $settings$files
>> [1] FALSE
>> #########################
>>> sessionInfo()
>> R version 2.8.1 (2008-12-22)
>> i386-apple-darwin9.6.0
>>
>> locale:
>> C
>>
>> attached base packages:
>> [1] splines tools stats graphics grDevices utils
>> datasets
>> [8] methods base
>>
>> other attached packages:
>> [1] oligo_1.6.0 oligoClasses_1.4.0 affxparser_1.14.2
>> [4] AnnotationDbi_1.4.3 preprocessCore_1.4.0 RSQLite_0.7-1
>> [7] DBI_0.2-4 Biobase_2.2.2
>>
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
>
>
[[alternative HTML version deleted]]
More information about the R-SIG-Mac
mailing list