Karim Belabas on Thu, 20 Apr 2006 14:01:41 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
pari + readline on OS X |
* Jean Cougnard on pari-dev [2006-01-18 16:59]: [ http://pari.math.u-bordeaux.fr/archives/pari-dev-0601/msg00013.html ] > I have tried to compile pari-2.1.7 on a mac OS 10.4 with Xcode2 (gcc 4.0.0) > at the end I got the following error messages : > > ../src/gp/gp.c:48: error: conflicting types for 'add_history' > /usr/include/readline/readline.h:133: error: previous declaration of > 'add_history' was here > make[1]: *** [gp.o] Error 1 > make: *** [install] Error 2 [...] > I hoped to be more lucky with unstable pari-2.2.11 unfortunately the end was [... doesn't work either ... ] At the time, the solution to this Tiger-specific problem was to disable 'readline', as suggested in http://pari.math.u-bordeaux.fr/archives/pari-dev-0601/msg00016.html This works, but disables line editing, command completion, history, etc. In particular, pari-2.2.12 disables readline on Mac OS X.4, which is really painful. There is a generic solution to this problem, namely installing 'readline' yourself. But it turned out this does not work on OS X.4 due to a few bugs on Apple's side [ nothing PARI can do about it ]. With the dedicated help of Vincent Lefevre and Gerald Tenenbaum, we found a relatively simple solution, which fixes the system once and for all (with respect to the readline problem). A detailed explanation and step-by-step solution can be found in a new FAQ entry http://www.math.u-bordeaux.fr/~belabas/pari/doc/faq.html#mac10readline Cheers, K.B. P.S: Any suggestions for the FAQ ? -- Karim Belabas Tel: (+33) (0)5 40 00 26 17 Universite Bordeaux 1 Fax: (+33) (0)5 40 00 69 50 351, cours de la Liberation http://www.math.u-bordeaux.fr/~belabas/ F-33405 Talence (France) http://pari.math.u-bordeaux.fr/ [PARI/GP]