develooper Front page | perl.macosx | Postings from January 2002

Re: installscript='/usr/bin' !? [Was: Re: HFS+ and directory layout]

Thread Previous | Thread Next
Dan Kogai
January 14, 2002 02:13
Re: installscript='/usr/bin' !? [Was: Re: HFS+ and directory layout]
Message ID:
On 2002.01.14, at 18:39, Ken Williams wrote:
> As far as I can tell (which isn't very far, since the 
> documentation is rather terse), /usr/bin is the correct value.  I just 
> checked a couple other perl installations (5.6.0 and 5.005_03, both on 
> Linux) and they both have 'installscript' set to /usr/bin.

   That's one of the reasons why I choose BSD over Linux (To be more 
exact, most of Linux distributions especially Redhat).  They use /usr/* 
too casually.
   Well, here I am not talking about correctness.  I just hate to see 
beginners clobbering files.  Consider the general public of Mac users.  
Now that MacOS X is default boot OS even for a lamp shade called iMac,  
we should make perl layouts more goof-proof.

> Try poking around - can you find any perl installations that have 
> 'installscript' set to /usr/local/bin , as you claim it should be?  A 
> quick way to check is with the command 'perl -V:installscript' at the 
> command line.

A lot.  Most post-installed perl built w/ 'sh Configure -des' use 
/usr/local/bin as default.  (Also note without hints file Configure's 
$prefix is /usr/local by default).  As for pre-installed, perl,  Here is 
an example of FreeBSD.

> installarchlib='/usr/libdata/perl/5.00503/mach'
> installprivlib='/usr/libdata/perl/5.00503'
> installbin='/usr/local/bin'
> installman1dir='/usr/local/man/man1'
> installman3dir='/usr/local/lib/perl5/5.00503/man/man3'
> installscript='/usr/local/bin'
> installsitearch='/usr/local/lib/perl5/site_perl/5.005/i386-freebsd'
> installsitelib='/usr/local/lib/perl5/site_perl/5.005'
> installusrbinperl='undef'

   Though perl itself is on /usr/bin, FreeBSD carefully layouts directory 
so that anything post-intalled direct to /usr/local.  And here is 
NetBSD.  Though perl is not pre-installed,  It's avaiable via package.  
Note prefix is /usr/pkg instead of /usr/local

> installarchlib='/usr/pkg/lib/perl5/5.6.0/powerpc-netbsd'
> installprivlib='/usr/pkg/lib/perl5/5.6.0'
> installbin='/usr/pkg/bin'
> installman1dir='/usr/pkg/man/man1'
> installman3dir='/usr/pkg/man/man3'
> installprefix='/usr/pkg'
> installprefixexp='/usr/pkg'
> installscript='/usr/pkg/bin'
> installsitearch='/usr/pkg/lib/perl5/site_perl/5.6.0/powerpc-netbsd'
> installsitebin='/usr/pkg/bin'
> installsitelib='/usr/pkg/lib/perl5/site_perl/5.6.0'
> installstyle='lib/perl5'
> installusrbinperl='undef'
> installvendorarch=''
> installvendorbin=''
> installvendorlib=''

   The point is clear.  Any pre-installed (or package-distributed) perl 
that come with any BSD except MacOS X use different directory for 
post-installed files.

   Isn't Darwin supposed to be a family member of BSD?

Dan the Man with Too Many Directory Layouts to Poke Around.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About