Bill Allombert on Wed, 19 Jun 2024 22:09:31 +0200


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

Re: Installing pari/gp on Mac from source


On Wed, Jun 19, 2024 at 08:00:23PM +0000, Summer Haag wrote:
> I'm trying to install pari/gp on Macbook air running macOS Sonoma version 14.5. I downloaded Xcode then the source from git and switched branches to 2.15. I also installed readline using the FAQ online and configure seems to have worked. Then when I ran make install there was an error with bison? The pari packages all seem to compile and then get the message:
> 
> /usr/bin/gcc  -c -I. -I../src/headers -fPIC -O3 -Wall -ffp-contract=off -fno-strict-aliasing    -o zetamult.o ../src/basemath/zetamult.c
> bison -d ../src/language/parse.y -o ../src/language/parse.c
> ../src/language/parse.y:28.9-19: syntax error, unexpected identifier, expecting string
> make[1]: *** [../src/language/parse.inter] Error 1
> make: *** [install] Error 2

Hi!

You need to install a newer version of bison.
The version shipped with macos is about 20 years old.

Cheers,
Bill