PEAR installation on M1 Mac

90 views
Skip to first unread message

Vivian Jou

unread,
Jul 9, 2024, 12:56:32 PM7/9/24
to pear-users
Hello,

I am trying to install PEAR on my M1 Macbook Pro (Sonoma 14.2.1). I've managed to download the PEAR repository onto my laptop, I couldn't get ./autogen.sh to run (states No such file or directory), but "./configure" executes properly. However, when I execute "make", I get a lot of warnings and an error mostly within the reader.c file. 

Here is an example of a warning and the error: 

reader.c:669:19: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]

  else if (nBytes < block->rawdata_size - remainder)

           ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

reader.c:683:9: error: invalid output constraint '=a' in asm

      : "=a" (data[0]),

        ^

15 warnings and 1 error generated.

make[2]: *** [pear-reader.o] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2


Many of the warnings are labeled as [-Wsign-compare] but others include [-Wmissing-prototypes], [-Wreturn-type], and [-Wbad-function-cast]. 

Is this an error that is occurring due to not having run the autogen.sh command prior? If so, how can I get this command to run? And if not, how can I fix this issue to properly install PEAR on my system? 


Thank you for any help. 


Best,

Vivian J

Reply all
Reply to author
Forward
0 new messages