home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / sysadmin / 4948 < prev    next >
Encoding:
Text File  |  1992-08-31  |  3.3 KB  |  74 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!news
  3. From: dave@nakiska.ucs.ualberta.ca (David Ross)
  4. Subject: Re: Vendors Considered Evil (Re: Perl use over NFS)
  5. Message-ID: <1992Aug31.155516.24977@kakwa.ucs.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: nakiska.ucs.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. References: <2ttyzz=@rpi.edu>
  10. Date: Mon, 31 Aug 1992 15:55:16 GMT
  11. Lines: 61
  12.  
  13. In article <2ttyzz=@rpi.edu> gad@eclipse.its.rpi.edu (Garance A. Drosehn)  
  14. writes:
  15. > kochmar@sei.cmu.edu (John Kochmar) writes:
  16. > > fwp@CC.MsState.Edu (Frank Peters) writes:
  17. > > 
  18. > > You've gotta be kidding, right?  You're not advocating that perl be
  19. > > placed in /usr/bin so that scripts you pick up from who-knows-where
  20. > > will run without modification, right?
  21. > >
  22. > > I got the same response from someone else in private mail.  Since I
  23. > > don't make a habit of picking up a script and running it without
  24. > > checking it over, I don't see changing the #! at the beginning to
  25. > > be that big a deal.
  26. ..
  27. > If I write a cool script that runs on my NeXT, I certainly don't want to  
  28. > edit it to run on a Sun, an HP, an RS6000, or (gasp) aix370 just because  
  29. > each platform has it's own favorite place to stuff scripting-languages  
  30. like  
  31. > perl.  I have enough headaches without trying to keep synchronized 6  
  32. copies  
  33. > of every script I feel like writing, with the only difference being  
  34. where  
  35. > the silly interpretter lives.
  36.  
  37. Okay, I'm putting on my preacher clothing...  *preach on*!
  38.  
  39. No no no no no.  Don't put ANYTHING in /usr/{bin,etc,lib,man} - put all  
  40. locally installed modifications in /usr/local!  Don't even put symbolic  
  41. links in /usr/bin!  It's more work for you, it's confusing for the users  
  42. when you do an upgrade and you forget to recreate a link, and it's  
  43. completely unnecessary if you are consistent!  
  44.  
  45. We have something of a Sys Admin guidebook where we have agreed to certain  
  46. conventions.  One is all local additions to the system go in the  
  47. /usr/local hiearchy.  This applies to ALL vendor platforms.
  48.  
  49. What I did was ensure all users have /usr/local/bin in their path and I  
  50. modified my default .cshrc so that all new users got it as well.  C  
  51. compilers all seem to look in /usr/local/lib by default.  The man pages  
  52. are a bit trickier, but again changing the .cshrc to add /usr/local/man to  
  53. the MANPATH environment variable has fixed that.
  54.  
  55. No one has mentioned the case where you run out of room in /usr/local and  
  56. have to put a package in say, /u0.  I had to do this.  Now to make the  
  57. command findable, I did have to put a symbolic link somewhere in  
  58. everyone's path.  What did I use?  Not /usr/bin!  /usr/local/bin!  
  59.  
  60. Now when we do an upgrade, a simple "restore /usr/local" and zowie, we  
  61. have all local mods to the system restored and no extra work to do. No one  
  62. as ever complained since then that they can't find a particular command.
  63.  
  64. Perl is not a standard UNIX distribution - don't assume it is.  All perl  
  65. scripts should start with #!/usr/local/bin/perl!  
  66. *preach off*
  67. --
  68. David A. Ross, Programmer Analyst  | dave@nakiska.ucs.ualberta.ca
  69. Computing and Network Services     |  (NeXTmail accepted)
  70. 352 Gen Serv Bldg, Univ of Alberta | Phone: (403) 492-9339
  71. Edmonton, Alberta, Canada  T6G 2H1 | Fax:   (403) 492-1729
  72.