2017-03-22 4 views
1

私はRをインストールしようとしているので、それがインストールされています初心者のCentOSのですが、私は、コンソールCentOSに6.3 Rのインストールエラー

R 

Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/lib64/R/library/utils/libs/utils.so':
/usr/lib64/R/library/utils/libs/utils.so: undefined symbol: libssh2_agent_disconnect In addition: Warning message: package "methods" in options("defaultPackages") was not found Error : package ‘grDevices’ does not have a namespace In addition: Warning messages: 1: package ‘utils’ in options("defaultPackages") was not found 2: package ‘grDevices’ in options("defaultPackages") was not found Error : package ‘grDevices’ does not have a namespace In addition: Warning message: package ‘graphics’ in options("defaultPackages") was not found Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/lib64/R/library/methods/libs/methods.so':
/usr/lib64/R/library/methods/libs/methods.so: undefined symbol: libssh2_agent_disconnect In addition: Warning message: package ‘stats’ in options("defaultPackages") was not found During startup - Warning message: package ‘methods’ in options("defaultPackages") was not found

このエラーについて何」を書くときに、このエラーを与えて?私は何の機能もできませんでした。 たとえば、

install.packages("test") 

エラー:機能を見つけることができませんでしたが、私

以下

ためlibssh2の固定この問題を更新

おかげ

答えて

2

を "install.packagesは" 私が持っていたとして、私はRをインストールする私の経験を共有していますlibssh2パッケージを単に更新するだけでかなり解決した後に解決された何らかの類似の問題!

インストールされているRバージョン3では、一度起動すると、共有オブジェクトの読み込みに失敗した場合のさまざまなエラーがスローされ、それぞれが "undefined symbol:libssh2_exit"という魔法のエラーで終了します。 ldconfigを使って強制的にロードしようとしましたが、すべての試みは無駄でした!ファイルが存在し、彼らは最終的に私は私のバージョンが最新のバージョンであることを見つけるために、libssh2のバージョンを確認することを決めた、と私はそれを更新した後、それらのエラーがちょうど

を消えとにかく

{ 
[[email protected] ~]# R 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/methods/libs/methods.so': 
    /usr/lib64/R/library/methods/libs/methods.so: undefined symbol: libssh2_exit 

R version 3.3.3 (2017-03-06) -- "Another Canoe" 
Copyright (C) 2017 The R Foundation for Statistical Computing 
Platform: x86_64-redhat-linux-gnu (64-bit) 

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. 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/utils/libs/utils.so': 
    /usr/lib64/R/library/utils/libs/utils.so: undefined symbol: libssh2_exit 

In addition: Warning message: 
package "methods" in options("defaultPackages") was not found 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/grDevices/libs/grDevices.so': 
    /usr/lib64/R/library/grDevices/libs/grDevices.so: undefined symbol: libssh2_exit 

In addition: Warning message: 
package "utils" in options("defaultPackages") was not found 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/grDevices/libs/grDevices.so': 
    /usr/lib64/R/library/grDevices/libs/grDevices.so: undefined symbol: libssh2_exit 

In addition: Warning message: 
package "grDevices" in options("defaultPackages") was not found 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/grDevices/libs/grDevices.so': 
    /usr/lib64/R/library/grDevices/libs/grDevices.so: undefined symbol: libssh2_exit 

In addition: Warning message: 
package "graphics" in options("defaultPackages") was not found 

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/usr/lib64/R/library/methods/libs/methods.so': 
    /usr/lib64/R/library/methods/libs/methods.so: undefined symbol: libssh2_exit 

In addition: Warning message: 
package "stats" in options("defaultPackages") was not found 

During startup - Warning message: 
package "methods" in options("defaultPackages") was not found 

> quit() 

Save workspace image? [y/n/c]: n 

[[email protected] ~]# ls /usr/lib64/R/library/methods/libs/methods.so 
/usr/lib64/R/library/methods/libs/methods.so 
[[email protected] ~]# 

} 

で破損することが見てはいけません

{ 

[[email protected] ~]# yum whatprovides libssh2 

Loaded plugins: fastestmirror, refresh-packagekit 

Loading mirror speeds from cached hostfile 
* base: mirror.steadfast.net 
* centosplus: mirror.steadfast.net 
* elrepo: mirrors.ircam.fr 
* epel: ftp.upjs.sk 
* extras: mirror.steadfast.net 
* updates: mirror.steadfast.net 

libssh2-1.4.2-2.el6_7.1.x86_64 : A library implementing the SSH2 protocol 
Repo  : base 
Matched from: 

libssh2-1.4.2-2.el6_7.1.i686 : A library implementing the SSH2 protocol 
Repo  : base 
Matched from: 

libssh2-1.2.2-7.el6.x86_64 : A library implementing the SSH2 protocol 
Repo  : installed 
Matched from: 
Other  : Provides-match: libssh2 

[[email protected] ~]# rpm -qa | grep -i libssh 
libssh2-1.2.2-7.el6.x86_64 
[[email protected] ~]# 

[[email protected] ~]# 
[[email protected] ~]# yum update libssh2 
....... 

[[email protected] ~]# R 

R version 3.3.3 (2017-03-06) -- "Another Canoe" 
Copyright (C) 2017 The R Foundation for Statistical Computing 
Platform: x86_64-redhat-linux-gnu (64-bit) 

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. 

> 
> quit() 
Save workspace image? [y/n/c]: y 
[[email protected] ~]# 
} 

Shareef

+2

Hi Shareef。 「本当に答えではない」と答えるのではない。誰かが投稿しても問題が解決するかもしれないと思うならば。 –

+1

'libssh2'を更新することでこの問題も解決しました。私はそれをあなたの答えの先頭に置くことをお勧めします。 – Adam

+0

ありがとうGents – Shareef

関連する問題