简体   繁体   English

Lavaan不适用于libgfortran.so.4,我应该提交错误报告吗?

[英]Lavaan don't work with libgfortran.so.4, should I file a bugreport?

Working on Solus Linux I get following error: 在Solus Linux上工作时,出现以下错误:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/aaron/R/x86_64-solus-linux-gnu-library/3.4/quadprog/libs/quadprog.so':
  libgfortran.so.3: cannot open shared object file: No such file or directory

when I try to install lavaan. 当我尝试安装lavaan时。 Stated here: R v3.4.0-2 unable to find libgfortran.so.3 on Arch this is due to the most recent version of gcc which upgrades gfortran which updates libgfortran.so.3 to libgfortran.so.4. 在此声明: R v3.4.0-2无法在Arch上找到libgfortran.so.3,这是由于最新版本的gcc将gfortran升级到了将libgfortran.so.3更新为libgfortran.so.4所致。

Now I could install a old version of gcc (but I have no idea to do that under Solus) or I could ask the Developer (Yves Rosseel) of lavaan to add suppourt to the newest gfortran version and file a bu report? 现在,我可以安装旧版本的gcc(但我不知道在Solus下这样做),或者我可以要求lavaan的开发人员(伊夫·罗瑟尔)将支持添加到最新的gfortran版本中并提交bu报告?

What would you do? 你会怎么做?

in the meanwhile you can link the libraries and create libgfortran.so.3 as an alias of libgfortran.so.4 同时,您可以链接库并创建libgfortran.so.3作为libgfortran.so.4的别名。

here's how to do it: https://www.bibliotechzw.com/blog/solved-how-to-create-aliases-in-ubuntu-16-via-the-commandline/ 这样做的方法如下: https : //www.bibliotechzw.com/blog/solved-how-to-create-aliases-in-ubuntu-16-via-the-commandline/

After I filed a bug report, it turns out that Yves Rossell has the most recent version of libgfortran.so.4 (and only this version). 提交错误报告后,事实证明Yves Rossell拥有libgfortran.so.4的最新版本(并且只有该版本)。 So it's clearly not that lavaan is not up to date. 因此,显然不是拉凡达不是最新的。 Actually I wasn't. 其实我不是。 I just had to reinstall some dependencies of lavaan: 我只需要重新安装一些lavaan依赖项:

install.packages("pbivnorm")
install.packages("mnormt")
install.packages("numDeriv")
install.packages("quadprog")

Thanks Yves. 谢谢伊夫。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM