BYO LINUX: GlibC Install (8) Next, we are going to install glibc (aka GNU C library). But first, we need to create a 'fstab' file so we will be able to mount the system in read-write mode. Make sure you are in your origanal, linux1 system and linux2 is mounted. Type vi /mnt/linux2/etc/fstab and type the following. ------------------------------------------------------- /dev/hda2 / ext2 defaults 0 1 /dev/hda4 none swap sw 0 0 proc /proc proc defaults 0 0 ------------------------------------------------------- You substitute the proper locations for your new linux system as well as your swap location. Save this file. The glibc install will be a 2 part install. We need the actual libraries as well as the developement libraries in compiled format. These are the only packages that we are using that are already compiled. In the 'Required Packages' chapter, I used Redhat's latest glibc RPM BINARIES and glibc-development RPM BINARIES. I'm going to use a program called 'alien' that I got from linux.tucows.com to convert these RPM files to a normal tar/zip file. It works by typing the following: ------------------------------------------------------- alien -t filename.rpm ------------------------------------------------------- Note: The alien package requires the cpio package to be installed. Now that you have the files in the .tgz format, you can run gzip -d on them to put them into tar format. Copy these tar files to /mnt/linux2, right there in the main directory. NOTE: I called it the main directory instead of the root directory. I just didn't want anyone to confuse it with the /root directory. Next, boot up the linux2 system. Do a cd / to get to the main directory. You should see your normal folders there along with your glibc tarfiles. Mount this system in read/write mode by typing mount -n -o remount,rw / Do a tar -xvf glibc-2.1.3.tar (or whatever the name of your file is) to place the lib files where they belong. Do a tar -xvf on the development tar file as well. Type ldconfig -v to link everything up correctly. Now you have working libraries, the latest ones also. Remove the tarfiles. Create the following directory symlinks: ------------------------------------------------------- ln -s /etc /usr/etc ln -s /usr /usr/local ln -s /var /usr/var ln -s /usr/man /usr/share/man ------------------------------------------------------- Create the following file symlinks: ------------------------------------------------------- ln -s /bin/bash /bin/sh ln -s /usr/bin/mawk /usr/bin/awk ln -s /sbin/agetty /sbin/getty ln -s /sbin/swapon /sbin/swapoff -------------------------------------------------------