Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think the problem is that's a 64-bit version of libg2c, but I need a 32-bit version. Is that right?
If so, then I need to install a 32-bit version of libg2c, but I don't know how. I did a "yum list | grep g2c" but that didn't find anything. How can I install a 32-bit version of libg2c?
You are right in assuming that you need the 32 bit version of lib32g2c. I do not have an rpm based system, but I can tell you that libg2c is part of gcc's fortran (gcc-g77) package, so you would have to install the 32 bit version of that package.
Either can be used ( or both ).
The 32-bit g77 will know, how to find its own libg2c.so ,
but for other applications a link in /usr/lib/ is required.
Like this : cd /usr/lib/
# ln -s libg2c.so.0.0.0 libg2c.so
Or # ln -s gcc/i386-redhat-linux/3.4.6/libg2c.so
.....
The above examples are from a 32-bit OS. EL5.
.....
"yum list | grep g2c" → → A precise command is :
# yum provides */libg2c*
Thanks! I always thought I was doing things wrong with yum, but didn't know.
Anyway, I installed compat-libf2c-34-3.4.6-4.i386, then did an "updatedb", made sure it's location is in my LD_LIBRARY_PATHm, and "locate libg2c" does find several libg2c files:
I think I figured out the problem. Although each object file was compiled in 32-bit mode, the Makefiles did not specify an -m32 flag for the linker, so the linker was linking in 64-mode and that's why the 32-bit /usr/lib/libg2c.so was incompatible. At least that's the best explanation I can think of.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Yes, to link 32 bit programs, you will also need
a 32 bit linker ( ld ).
And I don't know, how to do that on RHEL / CentOS.
Probably binutils-devel-2.17.50.0.6-12.el5.i386
> binutils-devel.i386, which is available in the x86_64 repo.
.....
P.S. : "Not stripped" is just a standard information.
Shared libraries are not stripped. Binaries are. http://www.ncsa.illinois.edu/UserInf...mds5/strip.htm
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.