Rebuilding C++ Libraries to save Linux install (purely academic question)


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Rebuilding C++ Libraries to save Linux install (purely academic question)
# 1  
Old 04-03-2008
Rebuilding C++ Libraries to save Linux install (purely academic question)

The crisis is over. I am just doing postmortem on how we handled it. So this is just an exercise in academics.

We have a mission critical system running on RED Hat Linux. It is a turnkey system "managed 100% by the vendor". I put this is quotes because we had an event last night that dramatically reduced that percentage for the evening!!

Evidently the Vendor tech was trying to resolve an issue with the internal ultrium tape drive. Backups were not functioning... so he decided to install something to fix the tape drive.. that something wiped out C++ libraries... (??). Evidently this trashed the system. We had a login at the console but it would not authenticate. The application interfaces with other systems, instruments were failing.

He asked for our assistance to rebuild C libraries. He had us download redhat isos and put them on CDs. He had us boot off cd using "linux rescue" at the boot: prompt. Then he had us attempt to reinstall C libs using rpm. It seems the rpm command could not find the rpm database. I think it was looking for rpm database in /var. Var was not mounted. So following the direction of vendor who really owned this cluster, we reinstalled red-Hat formatting boot, root, and swap partitions and preserving the data file systems

1) Could we have attempted to mount /var file system?
and

2) And had we been able to do #1, might the re-install / upgrade of these C+++ libshave worked?

Here are the install commands we were given . The only difference between this and the versions on the CD were not the same as these:

rpm -Uvh /mnt/sources/RedHat/RPMS/glibc-2.3.2-5.i386.rpm --nodeps
rpm -Uvh /mnt/sources/RedHat/RPMS/glibc-common-2.3.2-5.i386.rpm --node

I don't have the output errors about rpm not being able to find the rpm database.
I don't know what the "old" existing red hat was but the CDs Were RH 2.1 ES.


SkyyBugg
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Yum install ClamAV missing libraries

Hello, I'm currently following a tutorial for ClamAV with a lambda function. The tutorial has a shell script with the following: #!/usr/bin/env bash set -e LAMBDA_FILE="lambda.zip" rm -f ${LAMBDA_FILE} mkdir -p clamav echo "-- Downloading AmazonLinux container --" docker pull... (1 Reply)
Discussion started by: ottorocket18
1 Replies

2. Programming

C/C++ shared libraries on Linux.

This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when executing ldd. I explain the details: 1) Source code: bye_fn.c: #include <stdio.h> #include "hello.h" void bye (const char*... (9 Replies)
Discussion started by: jose_spain
9 Replies

3. UNIX for Beginners Questions & Answers

Using Linux python libraries in windows

I would like to know how or if I could use python packages/libraries meant for linux on windows. In particular there is a soya3d game engine for python but I can only find downloads for linux. Yet I want to create programs with it that work on windows. (python 3) (1 Reply)
Discussion started by: Sprotz
1 Replies

4. Programming

Question about what Static Libraries are...

im used to windows dll which gets loaded at runtime, are static libraries the same? the ones i link with -l on gcc? i mean, if my app used libpng for example, and i compiled it to a single ELF executable and took it to another pc that have no libpng on it, will it work? or it will complain... (2 Replies)
Discussion started by: JonhyM
2 Replies

5. UNIX for Advanced & Expert Users

Shared hosting, how to install programs and libraries in your home folder

Hi all I hope I am posting in the right section. If not please excuse me and redirect me to the right section. Here is my problem: I am using a shared hosting plan at Godady. I have shell access and of course my own folder. I would like to be able to install programs in my own folder... (4 Replies)
Discussion started by: PiniFarini
4 Replies

6. UNIX for Advanced & Expert Users

Naming conventions for shared libraries in Linux

Hello, I'm wondering what is the naming conventions for *.so shared libraries in linux. For example, a library in /lib, say libcrypt-2.7.so has a symbolic link called libcrypt.so.1 pointing to it, yet libncursesw.so.5.6 has a symbolic link called libncursesw.so.5 pointing to it. What is the... (2 Replies)
Discussion started by: neked
2 Replies

7. UNIX for Dummies Questions & Answers

Question on install software package on Linux

Hello ALL, I am not very sure about the following two questions, I have install some packages on my Linux system, though. Q1. Should I log in as root to install a software package on a Linux system? Q2. If I log in as a common user, say 'Mike', and install a software on Mike's home... (1 Reply)
Discussion started by: cy163
1 Replies

8. Programming

how to view loaded shared libraries by running processes in linux

anybody knows how to view loaded shared libraries by running processes in linux enviornment? any command or tool ? thanks a lot (3 Replies)
Discussion started by: princelinux
3 Replies
Login or Register to Ask a Question