Erro ao instalar o pacote car
4 participantes
Página 1 de 1
Erro ao instalar o pacote car
Boa tarde, não estou conseguindo instalar o pacote car, que é usado para testar a homogeneidade de variâncias. Segue a mensagem de erro que aparece:
Installing package into ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘pbkrtest’ is not available
also installing the dependencies ‘curl’, ‘rio’
tentando a URL 'https://cloud.r-project.org/src/contrib/curl_4.3.tar.gz'
Content type 'application/x-gzip' length 673779 bytes (657 KB)
==================================================
downloaded 657 KB
tentando a URL 'https://cloud.r-project.org/src/contrib/rio_0.5.16.tar.gz'
Content type 'application/x-gzip' length 420489 bytes (410 KB)
==================================================
downloaded 410 KB
tentando a URL 'https://cloud.r-project.org/src/contrib/car_3.0-7.tar.gz'
Content type 'application/x-gzip' length 497735 bytes (486 KB)
==================================================
downloaded 486 KB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘rio’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/rio’
Warning in install.packages :
installation of package ‘rio’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘rio’ are not available for package ‘car’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpS2hJ7C/downloaded_packages’
Installing package into ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘pbkrtest’ is not available
also installing the dependencies ‘curl’, ‘rio’
tentando a URL 'https://cloud.r-project.org/src/contrib/curl_4.3.tar.gz'
Content type 'application/x-gzip' length 673779 bytes (657 KB)
==================================================
downloaded 657 KB
tentando a URL 'https://cloud.r-project.org/src/contrib/rio_0.5.16.tar.gz'
Content type 'application/x-gzip' length 420489 bytes (410 KB)
==================================================
downloaded 410 KB
tentando a URL 'https://cloud.r-project.org/src/contrib/car_3.0-7.tar.gz'
Content type 'application/x-gzip' length 497735 bytes (486 KB)
==================================================
downloaded 486 KB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘rio’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/rio’
Warning in install.packages :
installation of package ‘rio’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘rio’ are not available for package ‘car’
* removing ‘/home/lais/R/x86_64-pc-linux-gnu-library/3.5/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpS2hJ7C/downloaded_packages’
lais- Mensagens : 2
Data de inscrição : 14/04/2020
Re: Erro ao instalar o pacote car
As vezes estes erros na instalação de pacotes são resolvidos desinstalando e instalando de novo o R e o RStudio (versões mais recentes).
Isso ocorreu comigo quando fui instalar o ggplot2.
Ocorreu um erro inesperado (não lembro o que dizia na mensagem de erro), mas resolvi realizar o processo citado acima e posteriormente realizar a instalação do ggplot2, a qual ocorreu corretamente.
Isso ocorreu comigo quando fui instalar o ggplot2.
Ocorreu um erro inesperado (não lembro o que dizia na mensagem de erro), mas resolvi realizar o processo citado acima e posteriormente realizar a instalação do ggplot2, a qual ocorreu corretamente.
gglarre- Mensagens : 2
Data de inscrição : 13/04/2020
Re: Erro ao instalar o pacote car
Sim, estes erros de dependência às vezes acontecem (e por algum motivo, o car é um pacote simples mas que costuma dar probleminhas mesmo).
Bom, acho que há mais de um problema na sequência, de forma que eu sugiro começar com este warning:
Warning in install.packages :
dependency ‘pbkrtest’ is not available
Antes de tentar de novo, tente instalar o pacote pbkrtest
Depois disso tente de novo, e avise como foi.
Bom, acho que há mais de um problema na sequência, de forma que eu sugiro começar com este warning:
Warning in install.packages :
dependency ‘pbkrtest’ is not available
Antes de tentar de novo, tente instalar o pacote pbkrtest
Depois disso tente de novo, e avise como foi.
Re: Erro ao instalar o pacote car
Obrigada gente, demorou mas agora deu certo. Precisei atualizar a versão do meu R para instalar o pbkrtest.
lais- Mensagens : 2
Data de inscrição : 14/04/2020
Re: Erro ao instalar o pacote car
Gente estou acompanhando as aulas do Modulo 4 no R e quando fui usar o pacote CAR enfrentei os mesmos problemas.
Fiz passo a passo que recomendou aqui (exceto desinstalar o car, pq não faço a mínima ideia onde fica os pacotes salvos no mac), e quando fui testar o teste de Levene, aparece o seguinte erro:
Error in leveneTest.formula(dados$Ambiente ~ dados$Riqueza) :
Levene's test is not appropriate with quantitative explanatory variables.
To achando que o R esta de brincadeira com a minha cara e com pré conceito com meu computador em achar que esse teste não é apropriador...
Podem me ajudar?
Fiz passo a passo que recomendou aqui (exceto desinstalar o car, pq não faço a mínima ideia onde fica os pacotes salvos no mac), e quando fui testar o teste de Levene, aparece o seguinte erro:
Error in leveneTest.formula(dados$Ambiente ~ dados$Riqueza) :
Levene's test is not appropriate with quantitative explanatory variables.
To achando que o R esta de brincadeira com a minha cara e com pré conceito com meu computador em achar que esse teste não é apropriador...
Podem me ajudar?
Carolina Lorieri- Mensagens : 35
Data de inscrição : 01/04/2020
Re: Erro ao instalar o pacote car
Consegui resolver pessoal !!!
Carolina Lorieri- Mensagens : 35
Data de inscrição : 01/04/2020
Tópicos semelhantes
» Erro ao instalar novo Pacote (MAC)
» Erro ao instalar um novo pacote no R
» Problema para instalar o pacote dismo
» Problemas para instalar R
» Pacote car
» Erro ao instalar um novo pacote no R
» Problema para instalar o pacote dismo
» Problemas para instalar R
» Pacote car
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|