Menu

#188 Add RHEL8\Centos8\RockyLinux8 support

None
accepted
None
5
2024-06-04
2024-05-31
No

The package is not available in the official repositories RHEL8\Centos8\RockyLinux8, and when installing the .rpm of the latest version (maxima-5.47.0-1) it gives the error - "libreadline.so.6()(64bit) is needed by maxima-exec-gcl-5.47.0-1. x86_64."
The libreadline.so.6 library is part of the readline-6 package and is no longer supplied in the repositories after version 7 (RHEL7\Centos7\RockyLinux7)
RHEL8\Centos8\RockyLinux8 provides the libreadline.so.7 library from the readline-7.0-10.el8 package

Discussion

  • Viktor Toth

    Viktor Toth - 2024-06-03

    I ran into the same problem as I am upgrading my systems to Oracle Linux 8, and not just with Maxima but also with some other prebuilt packages for RHEL/CentOS 8. A surprisingly simple fix is

    ln -s libreadline.so libreadline.so.6

    in /usr/lib64. That said, 5.47 is the last build that will have been created on CentOS 7, so the problem should go away with the next release.

     
    • Andrii Drevych

      Andrii Drevych - 2024-06-04

      Hi, thanks for the quick reply!
      This is actually a really great idea, I hadn't thought of that)))
      I tried and unfortunately this method didn't help in my case(, really don't understand why... Following your idea I also tried to just copy "libreadline.so.7.0" into a new file "libreadline.so.6"

      cp -pr /usr/lib64/libreadline.so.7.0 /usr/lib64/libreadline.so.6

      I checked, the new file was created successfully, but that didn't work either, the same error message, very strange...
      I needed a solution to this particular configuration already this week, so I didn't give up and moved on.

      Found the solution by installing the necessary packages from the EPEL7 repository and compiling maxima from the source code. (I use Rocky Linux 8)

      dnf config-manager --set-enabled powertools && dnf install texinfo
      wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/cl-asdf-20101028-8.el7.noarch.rpm
      wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/common-lisp-controller-7.4-8.el7.noarch.rpm
      wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/s/sbcl-1.4.0-1.el7.x86_64.rpm
      wget https://sourceforge.net/projects/maxima/files/Maxima-source/5.47.0-source/maxima-5.47.0.tar.gz
      rpm -ivh cl-asdf-20101028-8.el7.noarch.rpm
      rpm -ivh common-lisp-controller-7.4-8.el7.noarch.rpm
      rpm -ivh sbcl-1.4.0-1.el7.x86_64.rpm
      tar xzf maxima-5.47.0.tar.gz
      cd maxima-5.47.0.tar.gz
      ./configure --enable-sbcl
      make
      make install

      Maybe it will be useful to someone.

      P.S. I didn't want to use 3rd party repositories, and the necessary packages are not available in EPEL8, so I used EPEL7, maybe not very correct, but so far it works)
      Looking forward to the new version of Maxima with RHEL8 support, still relevant, as soon as the new version is released I will reinstall it from the official sources.

      Thank you!

       
  • Viktor Toth

    Viktor Toth - 2024-06-03
    • status: open --> accepted
    • assigned_to: Viktor Toth
    • Group: -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.