LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-24-2014, 01:19 PM   #1
CowboyRT
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Rep: Reputation: Disabled
How to configure system for software to use older libraries.


I am currently running CentOS 6.5. The software I'm attempting to install on CentOS 6.5 was supported on CentOS 4.x, thus it depends on the 2.3 version of glibc and 3.4 version of libstdc++. I want to know first is it possible to install these older libraries in a custom directory like /opt/appName/bin.

If installing these old libs in a custom directory works, what would be the best way to get the software to see these old libraries in the custom directory? Do I point to the old libraries using a .conf file in ld.so.conf.d? Since all of the software's binaries are initiated by a script, do I use LD_LIBRARY_PATH to point to the custom directory in all of the scripts.

Thanks in advance.
CowboyRT

Last edited by CowboyRT; 06-25-2014 at 11:23 AM. Reason: I used the incorrect distro name in my initial posting
 
Old 06-25-2014, 12:16 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
If you've paid for RHEL then you are entitled to support from them. Why not contact them and I'm sure they can sort you out. If you haven't paid for RHEL then you might consider using CentOS.
jdk
 
Old 06-25-2014, 01:31 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if can be done but EXTREME CAUTION !!!! must be taken !!!

contact redhat tech support for guidance

a small mistake could KILL your 6.5 install very very fast and to the point that reinstalling might be easier
 
Old 06-25-2014, 11:21 AM   #4
CowboyRT
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Sorry folks. I cannot believed I typed that. I am running CentOS 6.5 and not RHEL 6.5. Will edit my post. Surely, I would have contacted them if I were running that distro.

Regards,
CowboyRT
 
Old 06-25-2014, 10:18 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the first thing you will need to do is install the legacy gcc 34

Code:
su -
yum search gcc 
------------- then from that list should be 34--------------------
yum install compat-gcc-34 compat-gcc-34-c++
gcc 3.4 should be old enough it is what was in the cent 4.9 repo


then you have to install things where the OS CAN NOT!!!!! FIND THEM!!!!!!!
the build folder CAN NOT be in the $PATH and libs can NOT be in $LD_LIBRARY_PATH
Warning: that is VERY IMPORTANT!!!!!!!
cent6 can NOT see nor find or use any of the old programs !!!!!!!!
ONLY the program you are building can use them !!!!!!!!!!!



now
expect something like this a FULL WEEK if you know what you are doing and have done it many times

you are about to hit what is called " Dependency HELL!!!"
and it is apply named

glibc 2.3 will need a ton of dependency's

so make a folder someplace ???
like
/usr/opt/TheProgramName/dep

replace"TheProgramName" with the real name
and install the dependency's into that "dep" folder
and PASS that location to the compiler for all the libs and and all the paths including packageconf *.pc files

this is best done using a build shell script because the "configure" and exports to "make" are going to get VERY LONG

this will take time


you might want to install KVM and install the dead and unsupported CentOS 4.9 into the KVM VM
that might be easier
just KEEP IT OFF LINE !!!!!!
4.9 has been unsupported for some time

Last edited by John VV; 06-25-2014 at 10:33 PM.
 
Old 06-26-2014, 04:42 PM   #6
CowboyRT
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
John VV, thanks for the feedback. I sort of figured I had to hide libs from the OS, but I totally forgot about having to deal with the dependencies. It's going to take some time, but I'll post whether I'm successful or not. I feel confident this is the correct approach so I'm marking my inquiry as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Libraries when Compiling for older version of Linux plafratt Linux - Software 3 03-25-2013 11:02 AM
Using older libraries within a late CENTOS release? gck303 Linux - Software 2 09-03-2012 03:23 AM
Is it OK to install and use older versions of C libraries simultaneusly? GTrax Linux - Software 1 06-09-2012 07:38 AM
Need older libraries: libstdc++-3.2.4, libstdc++-libc6.-1.so.2, & compat-2004.7.1 al_moline SUSE / openSUSE 2 10-19-2007 07:01 AM
Mounting a new ext3 on LVM system by a co-existing older system's ext2 /etc/fstab JZL240I-U Linux - Software 2 11-28-2005 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration