Dirk Laurie on Fri, 20 Jul 2012 20:21:26 +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/20 Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>:
> On Fri, Jul 20, 2012 at 07:40:36PM +0200, Dirk Laurie wrote:
>> If one installs package "pari-gp", gp does not run but complains
>> that libgmp.so.3 is not found.
>>
>> Installing package "libgmp3c2" fixes the problem.
>
> Could you check that gp is indeed the Ubuntu provided one ?
> What gives the GP banner (\v under GP) ?
> What gives 'dpkg -s pari-gp'  ?
>
> Cheers,
> Bill.
>

This is a fairly new CD install of Precise (yesterday, in fact) followed
by "aptitude update" and "aptitude safe-upgrade" from a local
Ubuntu mirror, then manual installation of my favourite packages.

I removed libgmp3c2 to get back to Square One.

dirk@rondloper:/tmp$ dpkg -S /usr/bin/gp
pari-gp: /usr/bin/gp
dirk@rondloper:/tmp$ /usr/bin/gp
/usr/bin/gp: error while loading shared libraries: libgmp.so.3: cannot
open shared object file: No such file or directory
dirk@rondloper:/tmp$ sudo aptitude install libgmp3c2
The following NEW packages will be installed:
  libgmp3c2
0 packages upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 0 B/319 kB of archives. After unpacking 705 kB will be used.
50% [Working]Selecting previously unselected package libgmp3c2.
(Reading database ... 178632 files and directories currently installed.)
Unpacking libgmp3c2 (from .../libgmp3c2_4.3.2+dfsg-2ubuntu1_i386.deb) ...
Setting up libgmp3c2 (2:4.3.2+dfsg-2ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

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
        compiled: Nov 17 2011, gcc-4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1)
                 (readline v6.2 enabled, extended help enabled)

                     Copyright (C) 2000-2011 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and comes
WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

parisize = 4000000, primelimit = 500509
? \q
Goodbye!
dirk@rondloper:/tmp$ dpkg -s pari-gp
Package: pari-gp
Status: install ok installed
Priority: optional
Section: math
Installed-Size: 430
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: pari
Version: 2.5.0-2ubuntu1
Depends: libc6 (>= 2.11), libpari-gmp3 (>= 2.5.0-1), libreadline6 (>=
6.0), libx11-6
Recommends: pari-doc, pari-galdata, pari-elldata, pari-seadata
Suggests: pari-gp2c, pari-galpol
Conffiles:
 /etc/gprc 3c074e9230cb5c5009e99e3e8084aaab
Description: PARI/GP Computer Algebra System binaries
 PARI/GP is a widely used computer algebra system designed for fast
 computations in number theory (factorizations, algebraic number theory,
 elliptic curves...), but also contains a large number of other useful
 functions to compute with mathematical entities such as matrices,
 polynomials, power series, algebraic numbers etc., and a lot of
 transcendental functions. PARI is also available as a C library to allow
 for faster computations.
 .
 Originally developed by Henri Cohen and his co-workers (University Bordeaux I,
 France), PARI is now under the GPL and maintained by Karim Belabas
 with the help of many volunteer contributors.
 .
 This package contains the GP calculator.
Homepage: http://pari.math.u-bordeaux.fr
Original-Maintainer: Bill Allombert <ballombe@debian.org>
dirk@rondloper:/tmp$