Daniel,
obrigado pela colaboração você foi preciso em suas palavras. Muito obrigado.
Resolvido assim.


sudo apt-get build-dep r-cran-rjava
sudo apt-get build-dep r-cran-rgl



install.packages("Rcmdr", dep=T)
install.packages("XLConnect", dep=T)
install.packages("rJava", dep=T)



obrigado 








 
André Oliveira Souza


________________________________
 De: Daniel C Bezerra <[email protected]>
Para: [email protected]; Andre Oliveira <[email protected]> 
Enviadas: Domingo, 11 de Novembro de 2012 17:04
Assunto: Re: [R-br] Ler .xls no Rcmdr no Ubuntu
 

Provavelmente vc não deve ter o jdk instalado. Tente rodar no terminal:

sudo apt-get build-dep r-cran-rjava

e depois entre no R tente instalar o rJava novamente. 

Abs,

D


On Sun, Nov 11, 2012 at 4:31 PM, Andre Oliveira <[email protected]> 
wrote:

Eu tentei vários servidores.....e agora descobri este outro  erro também..
>
>
>
>
> install.packages("rJava", dep=T)
>
>Installing package(s) into ‘/home/andre/R/i686-pc-linux-gnu-library/2.15’
>(as ‘lib’ is unspecified)
>--- Please select a CRAN mirror for use in this session
 ---
>Carregando a interface Tcl/Tk ... pronto
>tentando a URL 'http://cran-r.c3sl.ufpr.br/src/contrib/rJava_0.9-3.tar.gz'
>
>Content type 'application/x-gzip' length 537153 bytes (524 Kb)
>URL aberta
>==================================================
>downloaded 524 Kb
>
>
>* installing *source* package ‘rJava’ ...
>** package ‘rJava’ successfully unpacked and MD5 sums checked
>checking for gcc... gcc -std=gnu99
>checking for C compiler default output file name... a.out
>checking whether the C compiler works... yes
>checking whether we are cross compiling... no
>checking for suffix of executables... 
>checking for suffix of object files... o
>checking whether we are using the GNU C compiler... yes
>checking whether gcc -std=gnu99 accepts -g... yes
>checking for gcc -std=gnu99 option to accept ISO C89... none needed
>checking how to run the C preprocessor... gcc -std=gnu99 -E
>checking for grep that handles
 long lines and -e... /bin/grep
>checking for egrep... /bin/grep -E
>checking for ANSI C header files... yes
>checking for sys/wait.h that is POSIX.1 compatible... yes
>checking for sys/types.h... yes
>checking for sys/stat.h... yes
>checking for stdlib.h... yes
>checking for string.h... yes
>checking for memory.h... yes
>checking for strings.h... yes
>checking for inttypes.h... yes
>checking for stdint.h... yes
>checking for unistd.h... yes
>checking for string.h... (cached) yes
>checking sys/time.h usability... yes
>checking sys/time.h presence... yes
>checking for sys/time.h... yes
>checking for unistd.h... (cached) yes
>checking for an ANSI C-conforming const... yes
>checking whether time.h and sys/time.h may both be included... yes
>configure: checking whether gcc -std=gnu99 supports static inline...
>yes
>checking whether setjmp.h is POSIX.1 compatible... yes
>checking whether sigsetjmp is declared...
 yes
>checking whether siglongjmp is declared... yes
>checking Java support in R... present:
>interpreter : '/usr/bin/java'
>archiver    : '/usr/bin/jar'
>compiler    : '/usr/bin/javac'
>header prep.: '/usr/bin/javah'
>cpp flags   : '-I/usr/lib/jvm/java-6-openjdk-i386/jre/../include'
>java libs   : '-L/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server 
>-L/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386 
>-L/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386 
>-L/usr/java/packages/lib/i386 -L/usr/lib/i386-linux-gnu/jni 
>-L/lib/i386-linux-gnu -L/usr/lib/i386-linux-gnu -L/usr/lib/jni -L/lib 
>-L/usr/lib -ljvm'
>checking whether JNI programs can be compiled... configure: error: Cannot 
>compile a simple JNI program. See config.log for details.
>
>Make sure you have Java Development Kit installed and correctly registered in 
>R.
>If in doubt, re-run "R CMD javareconf" as root.
>
>ERROR:
 configuration failed for package ‘rJava’
>* removing ‘/home/andre/R/i686-pc-linux-gnu-library/2.15/rJava’
>
>
>The downloaded source packages are in
>    ‘/tmp/RtmpuZLRQJ/downloaded_packages’
>Mensagens de aviso perdidas:
>In install.packages("rJava", dep = T) :
>
>  installation of package ‘rJava’ had non-zero exit status
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>André Oliveira Souza
>
>
>________________________________
> De: Andre Oliveira <[email protected]>
>Para: "[email protected]" <[email protected]> 
>Enviadas: Domingo, 11 de Novembro de 2012 16:03
>
>Assunto: Re: [R-br] Ler .xls no Rcmdr no Ubuntu
> 
>
>
>obrigado. Penso que deve ser algum pacote que devo instalar só não sei qual é. 
>Tentei aqui sua dica: Mas deu este erro.
>
>
>
>
>> install.packages("XLConnect", dep=T)
>Installing package(s) into ‘/home/andre/R/i686-pc-linux-gnu-library/2.15’
>(as ‘lib’ is unspecified)
>--- Please select a CRAN mirror for use in this session ---
>Carregando a interface Tcl/Tk ... pronto
>also installing the dependencies ‘XLConnectJars’, ‘rJava’
>
>tentando a URL 
>'http://www.vps.fmvz.usp.br/CRAN/src/contrib/XLConnectJars_0.2-0.tar.gz'
>Content type 'application/x-gzip' length 16488318 bytes (15.7 Mb)
>URL aberta
>==================================================
>downloaded 15.7 Mb
>
>tentando a URL 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/rJava_0.9-3.tar.gz'
>Content type 'application/x-gzip' length 537153 bytes (524 Kb)
>URL aberta
>==================================================
>downloaded 524 Kb
>
>tentando a URL 
>'http://www.vps.fmvz.usp.br/CRAN/src/contrib/XLConnect_0.2-3.tar.gz'
>Content type 'application/x-gzip' length 1667765 bytes (1.6 Mb)
>URL
 aberta
>==================================================
>downloaded 1.6 Mb
>
>* installing *source* package ‘rJava’ ...
>** package ‘rJava’ successfully unpacked and MD5 sums checked
>checking for gcc... gcc -std=gnu99
>checking for C compiler default output file name... a.out
>checking whether the C compiler works... yes
>checking whether we are cross compiling... no
>checking for suffix of executables... 
>checking for suffix of object files... o
>checking whether we are using the GNU C compiler... yes
>checking whether gcc -std=gnu99 accepts -g... yes
>checking for gcc -std=gnu99 option to accept ISO C89... none needed
>checking how to run the C preprocessor... gcc -std=gnu99 -E
>checking for grep that handles long lines and -e... /bin/grep
>checking for egrep... /bin/grep -E
>checking for ANSI C header files... yes
>checking for sys/wait.h that is POSIX.1 compatible... yes
>checking for
 sys/types.h... yes
>checking for sys/stat.h... yes
>checking for stdlib.h... yes
>checking for string.h... yes
>checking for memory.h... yes
>checking for strings.h... yes
>checking for inttypes.h... yes
>checking for stdint.h... yes
>checking for unistd.h... yes
>checking for string.h... (cached) yes
>checking sys/time.h usability... yes
>checking sys/time.h presence... yes
>checking for sys/time.h... yes
>checking for unistd.h... (cached) yes
>checking for an ANSI C-conforming const... yes
>checking whether time.h and sys/time.h may both be included... yes
>configure: checking whether gcc -std=gnu99 supports static inline...
>yes
>checking whether setjmp.h is POSIX.1 compatible... yes
>checking whether sigsetjmp is declared... yes
>checking whether siglongjmp is declared... yes
>checking Java support in R... present:
>interpreter : '/usr/bin/java'
>archiver    :
 '/usr/bin/jar'
>compiler    : '/usr/bin/javac'
>header prep.: '/usr/bin/javah'
>cpp flags   : '-I/usr/lib/jvm/java-6-openjdk-i386/jre/../include'
>java libs   : '-L/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server 
>-L/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386 
>-L/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386 
>-L/usr/java/packages/lib/i386 -L/usr/lib/i386-linux-gnu/jni 
>-L/lib/i386-linux-gnu -L/usr/lib/i386-linux-gnu -L/usr/lib/jni -L/lib 
>-L/usr/lib -ljvm'
>checking whether JNI programs can be compiled... configure: error: Cannot 
>compile a simple JNI program. See config.log for details.
>
>Make sure you have Java Development Kit installed and correctly registered in 
>R.
>If in doubt, re-run "R CMD javareconf" as root.
>
>ERROR: configuration failed for package ‘rJava’
>* removing ‘/home/andre/R/i686-pc-linux-gnu-library/2.15/rJava’
>ERROR: dependency ‘rJava’ is not available for
 package ‘XLConnectJars’
>* removing ‘/home/andre/R/i686-pc-linux-gnu-library/2.15/XLConnectJars’
>ERROR: dependencies ‘XLConnectJars’, ‘rJava’ are not available for package 
>‘XLConnect’
>* removing ‘/home/andre/R/i686-pc-linux-gnu-library/2.15/XLConnect’
>
>The downloaded source packages are in
>    ‘/tmp/Rtmpp7HwvH/downloaded_packages’
>Mensagens de aviso perdidas:
>1: In install.packages("XLConnect", dep = T) :
>  installation of package ‘rJava’ had non-zero exit status
>2: In install.packages("XLConnect", dep = T) :
>  installation of package ‘XLConnectJars’ had non-zero exit status
>3: In install.packages("XLConnect", dep = T) :
>  installation of package ‘XLConnect’ had non-zero exit status
>
>
>
>Tem alguma pendencia com o ‘rJava’ que não  sei qual é. Alguma dica?
>
>
>obrigado 
>
>
>
>
>
>
>
> 
>André Oliveira Souza
>
>
>________________________________
> De: Daniel C Bezerra <[email protected]>
>Para: [email protected] 
>Enviadas: Domingo, 11 de Novembro de 2012 12:18
>Assunto: Re: [R-br] Ler .xls no Rcmdr no Ubuntu
> 
>
>Tente instalar os pacotes "XLConnect" e "XLConnectJars" e depois rode o Rcmdr 
>novamente (não precisa carregar os pacotes após a reinicialização). 
>
>Dê uma olhada se a opção de importar arquivos do excel aparece no menu. 
>
>Abs,
>
>D
>
>
>2012/11/11 Edson Lira <[email protected]>
>
>Por que não converte para .csv? É uma alternativa,
>>
>>
>>[. ]'s.Edson Lira
>>Estatístico
>>Ma-Am
>>
>>Em 10/11/2012, às 14:35, Andre Oliveira <[email protected]> escreveu:
>>
>>
>>É uma solução,
>>>testei aqui. O Rcmdr está na central de programas do ubuntu 12.04  e quando 
>>>instalada cria um menu na barra de ferramentas. Na verdade eu gostaria  de 
>>>usar menos linhas de comando possível com os alunos. Eu sempre uso linha de 
>>>camando acho melhor.
>>>
>>>
>>>
>>> 
>>>André Oliveira Souza
>>>
>>>
>>>________________________________
>>> De: Sérgio Henrique <[email protected]>
>>>Para: "[email protected]" <[email protected]>; Andre Oliveira 
>>><[email protected]> 
>>>Enviadas: Sábado, 10 de Novembro de 2012 16:11
>>>Assunto: Re: [R-br] Ler .xls no Rcmdr no Ubuntu
>>> 
>>>
>>>Você usar a linha de comando do Rcmdr.
>>>Use
>>>require(gdata)
>>>read.xls
>>>
>>>
>>>Obs: não testei pra saber se roda.
>>>
>>>
>>>Abraços
>>>
>>>Enviado via iPad
>>>
>>>Em Nov 10, 2012, às 4:08 PM, Andre Oliveira <[email protected]> 
>>>escreveu:
>>>
>>>
>>>Boa tarde,
>>>>alguns dias atrás tive aqui com mesmo assunto na lista e não consegui 
>>>>resolver  a questão. Pesquisei muito e não encontrei como carregar um .xls 
>>>>pelo menu (importar arquivos)  do Rcmdr o que é possivel pelo Win$$.  
>>>>Atualmente estou trabalhando no curso de administração e gostaria de 
>>>>trabalhar com Ubuntu+R+Rcmdr. Na escola tem ubuntu em todas máquinas este o 
>>>>motivo de voltar ao assunto. Agora estou com dúvidas será que esta é uma 
>>>>tarefa impossível para Ubuntu+R+Rcmdr?  
>>>>
>>>> 
>>>>
>>>>
>>>_______________________________________________
>>>>R-br mailing list
>>>>[email protected]
>>>>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
>>>>mínimo reproduzível.
>>>
>>>
>>_______________________________________________
>>>R-br mailing list
>>>[email protected]
>>>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
>>>mínimo reproduzível.
>>_______________________________________________
>>R-br mailing list
>>[email protected]
>>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
>>mínimo reproduzível.
>>
>
>_______________________________________________
>R-br mailing list
>[email protected]
>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
>mínimo reproduzível.
>
>
>_______________________________________________
>R-br mailing list
>[email protected]
>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>Leia o guia de
 postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo 
reproduzível.
>
>
>_______________________________________________
>R-br mailing list
>[email protected]
>https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
>mínimo reproduzível.
>
_______________________________________________
R-br mailing list
[email protected]
https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
mínimo reproduzível.

Responder a