Re: [Update install instruction for macOS] Update install instruction for macOS

2022-11-20 Thread Paul Eggert

On 2022-11-20 08:19, Minsoo Choo wrote:

I tried many methods to solve this, and when I installed perl from source, the 
problem was solved.


Sure, but this sounds like a routine Perl installation problem, one that 
can occur on many platforms. It's not clear why Autoconf needs to go 
into details about how its prerequisites can be messed up, or why macOS 
needs a special shout-out.




Re: [Update install instruction for macOS] Update install instruction for macOS

2022-11-20 Thread Zack Weinberg
On Sun, Nov 20, 2022, at 11:43 AM, Paul Eggert wrote:
> On 2022-11-20 08:19, Minsoo Choo wrote:
>> I tried many methods to solve this, and when I installed perl from source,
>> the problem was solved.
>
> Sure, but this sounds like a routine Perl installation problem, one that 
> can occur on many platforms. It's not clear why Autoconf needs to go 
> into details about how its prerequisites can be messed up, or why macOS 
> needs a special shout-out.

Let me expand on that: It would be really helpful if you could share with us:

- a _verbatim transcript_ of your shell session when you tried to install
  Autoconf and/or Automake using the system perl, showing all steps up to
  and including where it went wrong, in enough detail that we can try the
  same thing for ourselves

- all config.log files generated during that shell session

- the _complete and unedited_ output of `perl -V` where perl is the system
  perl

- specifics of which version of MacOS you are using (the text shown in the
  apple menu "about this mac" window should be sufficient)

Thanks.
zw



Re: [Update install instruction for macOS] Update install instruction for macOS

2022-11-20 Thread Minsoo Choo
When autoconf and automake is built on macOS, the system perl sometimes cannot 
find Autom4te or Automake::Config.

Example: 



I am not quite certain about this, but I assume that the INC location of system 
perl on macOS is causing the problem.

>From default perl on macOS:
@INC:
/Library/Perl/5.30/darwin-thread-multi-2level
/Library/Perl/5.30
/Network/Library/Perl/5.30/darwin-thread-multi-2level
/Network/Library/Perl/5.30
/Library/Perl/Updates/5.30.3/darwin-thread-multi-2level
/Library/Perl/Updates/5.30.3
/System/Library/Perl/5.30/darwin-thread-multi-2level
/System/Library/Perl/5.30
/System/Library/Perl/Extras/5.30/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.30


The user-installed perl has different location.
 @INC:
/usr/local/lib/perl5/site_perl/5.36.0/darwin-2level
/usr/local/lib/perl5/site_perl/5.36.0
/usr/local/lib/perl5/5.36.0/darwin-2level
/usr/local/lib/perl5/5.36.0

I guess that the default perl on macOS cannot recognize .pm files under 
/usr/local/share.

When I installed autoconf from the source code first time and executed it, it 
showed this error lines.

Can't locate Autom4te/ChannelDefs.pm in @INC (you may need to install the 
Autom4te::ChannelDefs module)

I tried many methods to solve this, and when I installed perl from source, the 
problem was solved.

I guess we can solve this problem by setting PERL5LIB, but I don't know 
specifically since I don't have any knowledge in perl.

--- Original Message ---
On Saturday, November 19th, 2022 at 11:03 PM, Paul Eggert  
wrote:


> On 2022-11-19 13:20, Minsoo Choo wrote:
> 
> > +On macOS, users should not use the default perl, but manually install
> > +it fromhttps://www.perl.org/get.html.
> 
> 
> Could you explain why this advice is helpful? What is the default perl
> version on macOS, and do different macOS versions have different perl
> versions, and why doesn't the most recent macOS version work with Autoconf?