home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9252 < prev    next >
Encoding:
Text File  |  1992-08-29  |  4.4 KB  |  95 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!ashtray
  3. From: ashtray@yoyo.cc.monash.edu.au (John Newnham)
  4. Subject: a better way to package files
  5. Message-ID: <1992Aug28.084136.13352@monu6.cc.monash.edu.au>
  6. Followup-To: comp.os.linux
  7. Summary: what we learnt installing gcc 2.2.2d
  8. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  9. Organization: you have got to be kidding!
  10. References: <1992Aug24.061316.14052@muddcs.claremont.edu> <714677373snx@tehanu.wa.com>
  11. Date: Fri, 28 Aug 1992 08:41:36 GMT
  12. Lines: 81
  13.  
  14. First, to the people who have worked (and are working) on linux: T*H*A*N*K*S
  15.  
  16. In article <714677373snx@tehanu.wa.com> bruce@tehanu.wa.com (Bruce L. Bevelheimer) writes:
  17. >
  18. >In article <1992Aug24.061316.14052@muddcs.claremont.edu> jwinstea@fenris.claremont.edu writes:
  19. >
  20. >  > 
  21. >  > Did you read the README file for GCC?  And the FAQ?  It covers
  22. >  > installation.  The quick answer:  no, you're wrong.  You run the
  23. >  > install.2.x script in the directory that ocntains all the .tar.Z files.
  24. >  > 
  25. >
  26. >Actually, I had the same problem - it wasn't clear to me, after
  27. >several readings of all the doc's, that the .tar.Z files needed to be
  28. >in the same directory as install.2.x.  I solved that by reading the
  29. >install script.  Then I found that install still couldn't find what it
  30. >needed because it was looking for files with names more than 14
  31. >characters long which it couldn't find in my standard fs.  I fixed
  32. >that by editing install.2.x and changing ".tar.Z" to ".t.Z" (and
  33.  
  34. I expected this to be a problem on our system, but linux ignored it:
  35. 2.2.2ddlib.tar.Z gets truncated to 2.2.2ddlib.tar.
  36. but the utils don't notice, and the shell script runs fine!
  37.  
  38. >changing the file names, of course :-)).  Since all this was on my
  39. >first Linux install, I assumed that it must have been obvious to
  40. >everyone else out there so I didn't bother to comment!
  41. >
  42.  
  43. Last night myself and a friend installed GCC 2.2.2d on a 0.97pl1 system.
  44. It was easy once we knew what to do.  But we may have missed getting a few
  45. of the files from the FTP site.  We also had a problem with compress barfing
  46. on the garbage at the end of a raw-written disk.  It would core dump, but
  47. the tar file was usually (NOT always) okay.
  48.  
  49. We had a simple idea that would make things a little easier on most people:  put
  50. the files in .tar.Z.tar format.  This means that compress will not core dump,
  51. because the compressed file is built on the hard-disk and is stripped of its
  52. garbage by tar, and it means that one or two simple files can be included at the
  53. start, where they will be read.  Just be careful of filename length.
  54.  
  55. EG:  each of the GCC files could have had a file called HOW_TO_INSTALL in the
  56. .tar.Z.tar.  It would go something like:
  57. ------------------------------------------------------------------------
  58. Before installing this software you must have installed the files contained in:
  59. binutils.tar.Z.tar
  60. 0.97pl1inc.tar.Z.tar
  61.  
  62. To install this software:
  63. mv the .tar.Z file to a temporary location such as /tmp/install;
  64. do the same for the .tar.Z files located in 2.2.2dg1.tar.Z.tar ...;
  65. [Insert relevant list of files];
  66. Then copy the file install.2.x (contained in 2.2.2misc.tar.Z.tar) into that dir;
  67. change into that directory ("cd /usr/install");
  68. run the installation script ("sh install.2.x").
  69.  
  70. DO NOT UNTAR THE .tar.Z FILES : THIS IS DONE BY THE INSTALLATION SCRIPT
  71. ------------------------------------------------------------------------
  72.  
  73. I realise that this file would be uncompressed, but I think it would save a lot
  74. of problems for some people.  It would have saved us a LOT of time.  It avoids
  75. the problem of people missing some files at FTP sites - or ftp-mail etc.  And it
  76. fixes the core-dumps from compress (zcat).  We also read the FAQ and README that
  77. were in the .tar.Z - but that means that we had already untarred them - *shrug*.
  78.  
  79.  
  80. BTW:  we did not have ANY kernel source available:  we installed the files in
  81. 0.97pl1inc.tar.Z, and install.2.x barfed - no include/linux/include/asm.
  82.  
  83. So I created the directory, mumbled "touch bullshit.h" so that it was not empty,
  84. and install.2.x ran perfectly.  gcc even compiled hello-world.  Does this mean
  85. the docs (which say you MUST have the kernel stuff) are out of date?  Or is our
  86. compiler going to crash horribly some day soon?
  87.  
  88.  
  89. Regards, and congrats to Linus and team
  90. Ashtray
  91. -- 
  92. #include <std.disclaimer>
  93. When I say a word, it means exactly what I want it to mean, no more and no less
  94.  -- Humpty Dumpty to Alice (Lewis Carroll)
  95.