Justin C. Walker on Wed, 01 Nov 2023 20:13:56 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Readline/editline


Thanks for your response.

To your point, I do not use Brew or any of the other “packaging” apps, so that is not the issue.



On Oct 31, 2023, at 05:32 , Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:

On Wed, Oct 25, 2023 at 03:31:43PM -0700, Justin C. Walker wrote:
HI, all,

I just rebuilt gp using a different “Configure” line, viz:
 ./Configure --mt=pthread --with-readline --with-gmp --tune
I previously built without the “—mt” argument.

When I start the previous instance of gp, it shows the presence of
“libreadline”, but the new instance does not (readline not compiled in).

Output from the new build shows this:
###
### Editline wrapper detected, building without readline support
###
### Building without GNU readline support

Any idea why the earlier build worked, but this one did not?  FWIW, my
system is MacOS 10.13.6 (yeah, I know: long in the tooth), and is essentially
unchanged between the two builds (~1 year apart; both are 2.15.0).

Maybe you reinstalled brew or you need to pass the path to readline to
Configure with --with-readline=/usr/local or /opt/brew or some such.
See this FAQ entry: <https://pari.math.u-bordeaux.fr/faq.html#mac10readline>

editline is a fake readline library provided by Apple to waste developper time.

I know the problem with edit line, and I have never had a problem avoiding it.

My problem, or rather question, is why, when I tried to rebuild 2.15.0 (having built it successfully, roughly a year ago, I had no problems with readline, but this time, readline was not compiled in (the pari replacement was)?  Also, FWIW, all I did before this rebuild was to do “make clean” in the source directory.  No other changes between builds.

BTW, my path to success was to use “-L /usr/…” :-}.

In any case, thanks for all your hard work.

Justin

--

Justin C. Walker, Curmudgeon-At-Large

Director

Institute for the Enhancement of the Director's Income

--------

"Weaseling out of things is what separates us from the animals.

 Well, except the weasel."

      - Homer J Simpson

--------