Dirk Laurie on Tue, 24 Jul 2012 14:39:15 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Pari/GP under Ubuntu 12.04 LTS (Precise Pangolin) |
2012/7/24 Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>: > On Fri, Jul 20, 2012 at 08:21:18PM +0200, Dirk Laurie wrote: >> dirk@rondloper:/tmp$ /usr/bin/gp >> Reading GPRC: /etc/gprc ...Done. >> >> GP/PARI CALCULATOR Version 2.5.1 (released) >> i686 running linux (ix86/GMP-4.3.2 kernel) 32-bit version >> >> dirk@rondloper:/tmp$ dpkg -s pari-gp >> Version: 2.5.0-2ubuntu1 > > The PARI version does not match. It seems impossible that /usr/bin/gp is the one > from the pari-gp package. > > Cheers, > Bill. > I have just done the following: 1. Opened pari-gp_2.5.0-2ubuntu1_i386.deb with archive manager and extracted only the file gp-2.5. 2. Ran it. 3. Got the streamer GP/PARI CALCULATOR Version 2.5.1 (released) i686 running linux (ix86/GMP-4.3.2 kernel) 32-bit version compiled: Nov 17 2011, gcc-4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1) (readline v6.2 enabled, extended help enabled) I got the deb file off a mirror site. I then ran `strace ./gp-2.5`. It revealed that many files from /usr/local were being opened. I have a very recent pari-gp on /usr/local. I renamed /usr/local to something else. This time I got the streamer GP/PARI CALCULATOR Version 2.5.0 (released) i686 running linux (ix86/GMP kernel) 32-bit version compiled: Nov 17 2011, gcc-4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1) (readline v6.2 enabled, extended help enabled) Again with strace: it was trying the same files first, this time not finding them. So what's happening is that running the gp binary from Precise does not mean that it will be using the libraries from Precise too. Dirk