Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hmisc wont install on Fedora 28 (libgfortran issue) #92

Closed
kallen83 opened this issue May 8, 2018 · 7 comments
Closed

Hmisc wont install on Fedora 28 (libgfortran issue) #92

kallen83 opened this issue May 8, 2018 · 7 comments

Comments

@kallen83
Copy link

kallen83 commented May 8, 2018

After upgrading to fedora 28 Hmisc failed to load with the following error:

Error: package or namespace load failed for ‘Hmisc’: .onLoad failed in loadNamespace() for 'acepack', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/home/keithallen/R/x86_64-redhat-linux-gnu-library/3.4/acepack/libs/acepack.so': libgfortran.so.4: cannot open shared object file: No such file or directory

It looks like what's going on is libgfortran.so.4 has been replaced with libgfortran.so.5:

dnf provides libgfortran.so.5
Last metadata expiration check: 9:45:24 ago on Mon 07 May 2018 08:22:48 PM PDT.
libgfortran-8.0.1-0.20.fc28.i686 : Fortran runtime
Repo : fedora
Matched from:
Provide : libgfortran.so.5

dnf provides libgfortran.so.4
Last metadata expiration check: 9:37:13 ago on Mon 07 May 2018 08:22:48 PM PDT.
Error: No Matches found

I suppose I could try a simlink, but I'm guessing this needs to be addressed in the package itself.

@couthcommander
Copy link
Collaborator

Looks like this is a problem with the package acepack (on which Hmisc depends)

@kallen83
Copy link
Author

kallen83 commented May 8, 2018

ooh, good call

@kallen83
Copy link
Author

kallen83 commented May 8, 2018

ah, that seems to have been the problem. The solution was to remove the old acepack, reinstall a fresh acepack, restart R to get past the corrupt acepack.rdb, then install libicui18n.so.57 (there's a compat file available), and now Hmisc builds fine.

@kallen83 kallen83 closed this as completed May 8, 2018
@spgarbet
Copy link

spgarbet commented May 8, 2018

I maintain acepack, I'm glad you got it to work. I don't know of any changes I can make to the package that would overcome this issue. This seems to be downstream and related to changes going on with how packages are being built for Windows in general for R. I'm glad you got it to work. However, I'm open to suggestions.

@kallen83
Copy link
Author

kallen83 commented May 8, 2018 via email

@spgarbet
Copy link

spgarbet commented May 8, 2018

The only two changes in acepack recently were forced by packing requirements from CRAN. The first was in October of 2016 which did change the fortran library it linked to. The second was a couple weeks ago and it was an explicit dll loading table for routines. The error you have is related to the fortran library it's linked with and 2016 was quite some time ago. What I suspect is Fedora (or core R on Fedora) updated which library it was using, and basically all that was required was a recompile of acepack.

@kallen83
Copy link
Author

kallen83 commented May 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants