Anyway to get this package installed on CentOS 8?

Issues related to applications and software problems and general support
Post Reply
AFK_Matrix
Posts: 15
Joined: 2014/07/16 15:12:44

Anyway to get this package installed on CentOS 8?

Post by AFK_Matrix » 2021/06/03 12:49:15

Hi,

I am needing to run an old piece of software on CentOS 8 and when I try to run it, it says it needs the following dependency:

compat-libf2c-34-3.4.6-19.el6.i686

Now from what I could look up it seems there is no alternative rpm for CentOS 8 for this dependency, is this correct?

Is there anyway to install this or an alternative?

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Anyway to get this package installed on CentOS 8?

Post by TrevorH » 2021/06/03 14:48:49

If it was a compat package in el6 then it must be really really ancient. CentOS 6 has been dead for over 6 months and was released more than 10 years ago so if it had a compat package 10 years ago...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Anyway to get this package installed on CentOS 8?

Post by tunk » 2021/06/03 15:36:21

Don't know if it's recommended or if it will work at all:
You could try to unpack (not install) the rpm to e.g.
/opt/compat-libf2c and then update the PATH variables
to point to this (or make a startup script that first sets
the PATHs and then starts the software).

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Anyway to get this package installed on CentOS 8?

Post by pjsr2 » 2021/06/03 16:11:45

Trying to install the compat-libf2c-34-3.4.6-19.el6.i686.rpm on CentOS 8 is not going to work, because it is linked against an old and incompatible version of the libc.so shared libraries.

You can find the sources for libf2c on https://www.netlib.org/f2c/, together with instructions on how to compile it.

AFK_Matrix
Posts: 15
Joined: 2014/07/16 15:12:44

Re: Anyway to get this package installed on CentOS 8?

Post by AFK_Matrix » 2021/06/04 11:10:00

Hi,

Thanks @pjsr2, I managed to compile the file and it has installed and the software program isn't now asking for that package!

But it is now asking for libg2c.so.0 aka compat-libf2c-34-3.4.6-19.el6.i686 and again I can't find a compatible file for CentOS 8. I did do a search on Netlib and that didn't find anything either.

Looks like I can't use this software on CentOS 8.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Anyway to get this package installed on CentOS 8?

Post by pjsr2 » 2021/06/04 13:59:21

My understanding is that libg2c is just an alternate name for libf2c that was introduced to avoid a version conflict when the library was installed as part of in the g77 package and already existed elsewhere on a computer, installed from some other software package. At that point in time this problem was solved by changing the name of the g77 supplied library to libg2c. So just adding a soft link from libg2c.0.so to libf2c.0.so might be all you need.

Code: Select all

ln -s libf2c.0.so libg2c.0.so

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Anyway to get this package installed on CentOS 8?

Post by tunk » 2021/06/04 14:03:54

As the post above shows, I really don't have a clue about this.
But:
"libf2c/ contains the run-time libraries for the f2c program, also used by g77. These libraries normally referred to collectively as libf2c. When built as part of g77, libf2c is installed under the name libg2c to avoid conflict with any existing version of libf2c, and thus is often referred to as libg2c when the g77 version is specifically being referred to."
https://gcc.gnu.org/onlinedocs/gcc-3.4. ... urces.html

Probably won't work, maybe you could try to make a symbolic link from libg2c.so.0 to libf2c?
Or create a VM with CentOS 6 (no network connections to minimize potential problems).

AFK_Matrix
Posts: 15
Joined: 2014/07/16 15:12:44

Re: Anyway to get this package installed on CentOS 8?

Post by AFK_Matrix » 2021/06/07 08:29:42

Hi,

Thanks for all the help with this.

Not sure why I said it was asking for libg2c.so.0 again as I managed to fix that!

No what it is now asking for is libtermcap.so.2 which I think should come from compat-libtermcap-2.0.8-49.el6.i686.

So is it possible to get this rpm for CentOS 8?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Anyway to get this package installed on CentOS 8?

Post by tunk » 2021/06/07 09:54:58

If it's an executable, could you run this to find all depencies:
ldd /full/path/to/executable

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Anyway to get this package installed on CentOS 8?

Post by TrevorH » 2021/06/07 10:13:04

If the things you were using on CnetOS 6 were from compat* packages then the chances are that they are well and truly deprecated by now. A compat package is something that supplies the runtime libraries for things that are so old that they've been removed from the distro. So if they were too old to include in CentOS 6 then they're almost certainly now completely dead.

Did you try to find a supported alternative to whatever this ancient application is?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply