From: mal11@po.CWRU.Edu (Matthew A. Lewis)
Newsgroups: comp.os.linux
Subject: WANT GCC? FORGET FAQ.GCC AND README?? READ THIS FIRST!!!!
Date: 4 Sep 1992 00:22:30 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: mal11@po.CWRU.Edu (Matthew A. Lewis)
NNTP-Posting-Host: thor.ins.cwru.edu




Since it seems that there aren't any installation docs for us
lay people when it comes to installing GCC 2.2.2d, I figured that
I would write this to help people who are having and will have
problems with the installation.

First, I will assume you have mtools installed. If not, then do. Email
me for some tips if you need help.

You need to get the following files by anonymous ftp from tsx-11.mit.edu.

binutils.tar.Z
097pl1inc.tar.Z
2.2.2ddb.tar.Z
2.2.2dlib.tar.Z
2.2.2dmisc.tar.Z
install.2.x

Forget README and FAQ.
THEY JUST AREN'T WORTH THE TIME READING!!!!!!!!!!!

You can find the above in /pub/linux/packages/GCC

You will also need 097.tar.Z (or something like that) from 
/pub/linux/sources/system

This is the linux source code. Get the patches if you want them.
(I personally haven't figured out what to do with them. :) )

So now you have these files. Hopefully they were transfered without any
corruption. Unfortunately they are VERY large, so I would get corrupted
ones about every 5th try. And you won't find this out until you're in
LINUX and then you'll have to reboot into DOS. Major frustration.

BTW, these files should be in a DOS dir and they WILL take up alot of memory.
I think about 5MB.

Now reboot into LINUX and login as root. Now follow these commands.

cd /
mcd c:\<the dos dir with the above files>
mcopy c:*.* .

That should get all those files into the LINUX root dir.
Now, change their names using the mv (move) command.

mv <fucked up dos filename now in linux>  <new filename>

Do it according to these transformations:
install.2.x  --------->   install.2.x
binutils.tar.Z ------->   binutils.tar.Z
2.2.2ddb.tar.Z ------->   2ddb.tar.Z
2.2.2dlib.tar.Z ------>   2dlib.tar.Z
2.2.2dmisc.tar.Z ----->   2dmisc.tar.Z
097pl1inc.tar.Z ------>   097inc.tar.Z
097.tar.Z ------------>   097.tar.Z

remember that these names on the left will be REALLY screwed up!!!!
keep track of them.........
The reason that we have to do all this crap is because LINUX has a
limitation on length of filenames. UNIX doesn't have them. 
DOES ANYONE KNOW IF THIS CAN BE CHANGED??????

Now we need to install the kernel sources. 

cd /usr
mkdir src
cd src
mkdir linux
cd /
cp 097.tar.Z /usr/src/linux
cd /usr/src/linux
uncompress 097.tar.Z
tar -xvf 097.tar

That should make some file and directories. 
now do this.

cd /
cp 097inc.tar.Z /usr/src/linux
cd /usr/src/linux
uncompress 097inc.tar.Z
tar -xvf 097inv.tar

More source files are made.

NOW WE ARE READY TO DO WHAT IT DOES SAY IN README AND GCC.FAQ
Fortunately, it's only one line.

Go to the root directory.

cd /
sh install.2.x -v 2d /usr/src/linux

The program will ask you about a math coprocessor. Answer accordingly.
Eventually the program will barf looking for some file in a dir
like /usr/lib..../2d/......./<some file>

The problem is with this 2d directory, an artifact of this process of 
dealing with LINUX filename length restrictions.

Change directories to the dir ABOVE 2d.

do an 'ls' command.
all you should see is 2.2.2d

do this

mv 2.2.2d 2d
cd /
sh install.2.x -v 2d /usr/src/linux


This should either make it all the way through the installation script, or
it will barf on another file in some subdirectory of a 2d directory.

Find it and change 2.2.2d to 2d like about and run sh again.   

This will put you where I am. With a ton of files on my harddrive (which
ones can I erase?????????). The compiler gcc in /usr/bin. And some
instruction to remove some lines from the LINUX kernel Makefile and
then do a make dep.

unfortunately....I can't find make. And I haven't an editor. My vi
doesn't work yet. 

BTW, if you don't like these instruction, screw you. It worked for me :)

Hopefully this will motivate someone (in authority?) to make this
installation process a little easier.

-- 
MaThiEu a. LeWis      "There is no middle ground/Or that's how it seems/For 
Thieves Like Us        us to walk or to take/Instead we tumble down/Either
mal11@po.cwru.edu      side left or right/To love or to hate."
					-A Strange Kind of Love
Newsgroups: comp.os.linux