On Mon May 30 14:30:17 2016, sprout wrote:
I have tried installing perl 5.24.0 on an old PPC machine, with the
configuration below, but it installed the perl binary and the scripts
in /bin, even though I specified a prefix of /usr.
I don’t know exactly which option is responsible for the bug, but I do
find it really strange.
This is what is *really* unhelpful:
$ which cpan5.24.0
/bin/cpan5.24.0
$ cpan5.24.0
-bash: /bin/cpan5.24.0: /usr/bin/perl5.24.0: bad interpreter: No such
file or directory
$ head -3 `which cpan5.24.0`
#!/usr/bin/perl5.24.0
eval 'exec /usr/bin/perl5.24.0 -S $0 ${1+"$@"}'
if $running_under_some_shell;
So the #! line is correct in using /usr/bin/, which is what I asked
for, but every got plopped in /bin instead, so nothing5.24.0 works. I
have to use perl5.24.0 -S whatever5.24.0. Grrr!!!
More info follows. Also attached are config.sh and Policy.sh.
$ which perl5.24.0
/bin/perl5.24.0
$ perl5.24.0 -V
Summary of my perl5 (revision 5 version 24 subversion 0)
configuration:
Platform:
osname=darwin, osvers=9.7.0, archname=darwin-2level
uname='darwin treebeard.local 9.7.0 darwin kernel version 9.7.0: tue
mar 31 22:54:29 pdt 2009; root:xnu-1228.12.14~1release_ppc power
macintosh '
config_args='-de -Dprefix=/usr -Doptimize=-O3 -Accflags=-DNO_MATHOMS
-Dversiononly'
I have tried installing perl 5.24.0 on an old PPC machine, with the
configuration below, but it installed the perl binary and the scripts
in /bin, even though I specified a prefix of /usr.
I don’t know exactly which option is responsible for the bug, but I do
find it really strange.
This is what is *really* unhelpful:
$ which cpan5.24.0
/bin/cpan5.24.0
$ cpan5.24.0
-bash: /bin/cpan5.24.0: /usr/bin/perl5.24.0: bad interpreter: No such
file or directory
$ head -3 `which cpan5.24.0`
#!/usr/bin/perl5.24.0
eval 'exec /usr/bin/perl5.24.0 -S $0 ${1+"$@"}'
if $running_under_some_shell;
So the #! line is correct in using /usr/bin/, which is what I asked
for, but every got plopped in /bin instead, so nothing5.24.0 works. I
have to use perl5.24.0 -S whatever5.24.0. Grrr!!!
More info follows. Also attached are config.sh and Policy.sh.
$ which perl5.24.0
/bin/perl5.24.0
$ perl5.24.0 -V
Summary of my perl5 (revision 5 version 24 subversion 0)
configuration:
Platform:
osname=darwin, osvers=9.7.0, archname=darwin-2level
uname='darwin treebeard.local 9.7.0 darwin kernel version 9.7.0: tue
mar 31 22:54:29 pdt 2009; root:xnu-1228.12.14~1release_ppc power
macintosh '
config_args='-de -Dprefix=/usr -Doptimize=-O3 -Accflags=-DNO_MATHOMS
-Dversiononly'
#####
versiononly (versiononly.U):
If set, this symbol indicates that only the version-specific
components of a perl installation should be installed.
This may be useful for making a test installation of a new
version without disturbing the existing installation.
Setting versiononly is equivalent to setting installperl's -v option.
In particular, the non-versioned scripts and programs such as
a2p, c2ph, h2xs, pod2*, and perldoc are not installed
(see INSTALL for a more complete list). Nor are the man
pages installed.
Usually, this is undef.
#####
If you reconfigure without '-Dversiononly', do you get better results?
That being said, when I configured perl-5.24.0 on an even older Darwin/PPC with the exact same arguments as you, I got entries in config.sh like:
#####
installbin='//bin'
...
installman1dir='//share/man/man1'
...
installprefix='/'
...
installscript=''/bin'
...
installsitebin='//local/bin'
etc.
#####
All of which is similar to your undesired results.
Thank you very much.
--
James E Keenan ([email protected])
---
via perlbug: queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=128295