(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) System Configuration : (Category) Shared Libraries :
How do I install shared libraries?
This is a small file I whipped up from varing sources (Chris Penny, and other
experiences that I have had). It should work for all kernels that shared library 
support (this should be 2.0.25 and above)

Here is the breakdown for each type of PPC linux system:
	MKlinux: DR2.1 has shared library support, an no modification is needed.
	Pmac: Get any kernel version starting from 2.0.25 and above

The first step is to grab all of the following files. These files support
the basics and integration for shared libs. You can get the libc
and libtermcap files from ftp://ftp.linuxppc.org/RedHat/RPMS /

You should get these RPM files first:
	glibc-0.961212-1M.ppc.rpm
	glibc-devel-0.961212-1M.ppc.rpm
	glibc-info-0.961212-1M.ppc.rpm
	glibc-static-0.961212-1M.ppc.rpm
	libtermcap-2.0.8-2B.ppc.rpm
	libtermcap-devel-2.0.8-2B.ppc.rpm
	ldconfig-1.8.1-3A.ppc.rpm
	
You should note that any RPM with a capital letter near the .ppc.rpm 
portion of the name indicates that this RPM is a shared library supported
 (and required) package. You should always grab the latest letter
in the alphabet if it exists at the site; new bugs are fixed routinely.

Next, I recommend getting the latest STATIC version of the rpm program:
	ftp://ftp.linuxppc.org/RedHat/notshared/rpm-2.3.8-1.ppc.rpm <P>

I say this because I have had less than satisfactory results from the shared version
(you may have better luck). You can install this by using the command:
	prompt> rpm --upgrade rpm-2.3.8*

rpm will complain that the package did not install successfully, but this
is caused by a bug in the earlier rpm installer package. In fact, the package
does install correctly. Then run the commands:
	rpm --initdb then rpm --rebuilddb

This will cause rpm to upgrade it's database so that it keeps the info of
the already installed packages that ship with the DR2.1 release.

Next, install all the packages listed above witht his command:
	prompt> rpm --upgrade --nodeps --force glibc* libtermcap* ldconfig*

Then run "ldconfig" as root. This builds a cache file of all installed 
shared libraries, which improves performance. REBOOT

NOTE: This will break your compiler and certain other
programs. I recommend getting the latest shared lib versions of the "bin-utils"
package and all rpm files for "gcc-2.7.2.1" and install them in the same fashion
as listed above. You may also want to get the "kernel-pmac-*" files. These are 
the kernel headers, and most packages will complain if they are not there. An 
alternative to getting the kernel header packages is to download the latest
kernel source and unpack it in /usr/src/linux (this does take up more space, 
but does allow you to compile the kernel later if you feel up to it)

After this, you should be able to install all packages that require shared
library support (such as the X11R6.3 package at the same location). See other 
points in this Faq-O-Matic on how to configure ldconfig to look in directories
other than /lib and /usr/lib.

Enjoy,

Jason  (presnell@umich.edu)
presnell@umich.edu
[Append to This Answer]
Previous: (Answer) Where do I get the X11R6.3 distribution?
Next: (Answer) Why did shared libraries break my nameservice?
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=43
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo