home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5766 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!ub!dsinc!pitt.edu!djbpitt
  2. From: djbpitt+@pitt.edu (David J Birnbaum)
  3. Newsgroups: comp.lang.perl
  4. Subject: aub problem finding sys/socket.ph
  5. Message-ID: <5585@blue.cis.pitt.edu.UUCP>
  6. Date: 8 Sep 92 15:44:51 GMT
  7. Sender: news+@pitt.edu
  8. Organization: University of Pittsburgh
  9. Lines: 41
  10.  
  11. I have been unable to persuade aub to find my sys/socket.ph file. The
  12. author of aub has been very helpful in trying to track down the problem,
  13. but without success. The problem is apparently not with aub, but with 
  14. something I've done; I am the only user to report this. I know nothing
  15. about perl and have no idea where I've gone wrong; does anyone recognize
  16. this error? (There is a work-around, described below; while it lets me
  17. use aub, it still leaves me frustrated and puzzled.)
  18.  
  19. I built perl myself and installed it in my personal bin, using 'make
  20. install' to install the library files into my personal lib. This means
  21. that my copy of perl knows where its lib files are (since it deposited
  22. them there itself). I verified this by running:
  23.  
  24.    #!/afs/pitt.edu/usr/djbpitt/bin/perl
  25.    foreach (@INC) {
  26.       print "$_\n";
  27.    }
  28.  
  29. and it reported the full, correct path: /afs/pitt.edu/usr/djbpitt/lib/perl.
  30. I then used h2ph to create /afs/pitt.edu/usr/djbpitt/lib/perl/sys/socket.ph.
  31.  
  32. When I run aub with the -d2 (debugging) option, it tells me that it is
  33. looking in the right place for sys/socket.ph, but doesn't find it. I
  34. then tried specifying the full path to my perl lib directory using the -I
  35. command line option, but this, too, failed. 
  36.  
  37. I work around the problem by commenting out the aub line that looks for
  38. socket.ph and pasting the necessary values by hand from my socket.ph
  39. file directly into the aub script. Everything then works as advertised.
  40. I can live with this, of course, but it isn't the way nature intended
  41. perl scripts to operate. Can anyone suggest where I might have gone wrong? 
  42.  
  43. Thanks,
  44.  
  45. David
  46.  
  47. -- 
  48. Professor David J. Birnbaum         djbpitt+@pitt.edu [Internet]
  49. The Royal York Apartments, #802     djbpitt@pittvms   [Bitnet]
  50. 3955 Bigelow Boulevard              voice: 1-412-687-4653
  51. Pittsburgh, PA  15123  USA          fax:   1-412-624-9714
  52.