I would like to read the code for the function in pari/gp called quadray(D, f) to see how it works. For this reason and in case I would like to read the code for something else in the future I am trying to install pari/gp on my computer with the source code. I am using ubuntu and following the instructions in appendix A in the back on the user's manual on how to install pari/gp with the source code for unix. I've tried to follow all the steps correctly, but I am getting the following error messages when I run sudo make bench and sudo make install after running ./Configure. When I run ./Configure I do not get any problems, and when I run sudo make all there do not appear to me to be any problems. This is what happens when I run sudo make bench and sudo make install:
joseph@jferrara-ThinkPad-T480:~/Desktop/pari-2.11.0$ sudo make bench
Making bench in Olinux-x86_64
make[1]: Entering directory '/home/joseph/Desktop/pari-2.11.0/Olinux-x86_64'
rm -f gp-sta
/usr/bin/gcc -o gp-sta -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -Wl,--export-dynamic mpker.o mpinl.o alglin1.o alglin2.o alglin3.o aprcl.o arith1.o arith2.o base1.o base2.o base3.o base4.o base5.o bb_group.o bb_hnf.o bibli1.o bibli2.o bit.o bnflog.o buch1.o buch2.o buch3.o buch4.o char.o concat.o crvwtors.o dirichlet.o ecpp.o ellanal.o elliptic.o ellisog.o ellpadic.o ellsea.o elltors.o F2x.o F2xqE.o FF.o Fle.o Flx.o FlxqE.o Flxq_log.o FpE.o FpV.o FpX.o FpX_factor.o FpXQX_factor.o FpXX.o galconj.o gen1.o gen2.o gen3.o Hensel.o hnf_snf.o hyperell.o ifactor1.o kummer.o lfun.o lfunutils.o lll.o map.o matperm.o mellininv.o mftrace.o modsym.o nffactor.o perm.o polarit1.o polarit2.o polarit3.o polclass.o polmodular.o prime.o Qfb.o qfisom.o qfsolve.o QX_factor.o random.o RgV.o RgX.o rootpol.o Ser.o subcyclo.o subgroup.o trans1.o trans2.o trans3.o volcano.o zetamult.o ZG.o ZV.o ZX.o anal.o compile.o default.o es.o eval.o forprime.o gplib.o hash.o init.o intnum.o members.o paricfg.o pariinl.o parse.o readline.o sumiter.o algebras.o elldata.o ellfromeqn.o forperm.o forsubset.o galois.o galpol.o genus2red.o groupid.o krasner.o mpqs.o part.o ratpoints.o stark.o subfield.o thue.o mt.o single.o plotport.o plottty.o emacs.o gp.o gp_rl.o texmacs.o whatnow.o plotX.o -Wl,-rpath,"/home/joseph/Desktop/pari-2.11.0"/Olinux-x86_64:"/usr/local/lib" -lreadline -lX11 -lgmp -ldl -lm
: gp-sta
./gp-sta: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
./gp-dyn: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
* Testing objets gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing analyz gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing number gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing polyser gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing linear gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing elliptic gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing sumiter gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing graph gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing program gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing trans gp-sta..BUG [0] gp-dyn..BUG [0]
* Testing nfields gp-sta..BUG [0] gp-dyn..BUG [0]
+++ [BUG] Total bench for gp-sta is 0
+++ [BUG] Total bench for gp-dyn is 0
PROBLEMS WERE NOTED. The following files list them in diff format:
Directory: /home/joseph/Desktop/pari-2.11.0/Olinux-x86_64
objets-sta.dif
analyz-sta.dif
number-sta.dif
polyser-sta.dif
linear-sta.dif
elliptic-sta.dif
sumiter-sta.dif
graph-sta.dif
program-sta.dif
trans-sta.dif
nfields-sta.dif
objets-dyn.dif
analyz-dyn.dif
number-dyn.dif
polyser-dyn.dif
linear-dyn.dif
elliptic-dyn.dif
sumiter-dyn.dif
graph-dyn.dif
program-dyn.dif
trans-dyn.dif
nfields-dyn.dif
Makefile:342: recipe for target 'bench' failed
make[1]: *** [bench] Error 1
make[1]: Leaving directory '/home/joseph/Desktop/pari-2.11.0/Olinux-x86_64'
Makefile:34: recipe for target 'bench' failed
make: *** [bench] Error 2
joseph@jferrara-ThinkPad-T480:~/Desktop/pari-2.11.0$ sudo make install
Making install in Olinux-x86_64
make[1]: Entering directory '/home/joseph/Desktop/pari-2.11.0/Olinux-x86_64'
mkdir -p "/usr/local/share/pari"/doc
cd ../doc; make doc; for f in *.dvi; do ../config/install -m 644 $f "/usr/local/share/pari"/doc; done
make[2]: Entering directory '/home/joseph/Desktop/pari-2.11.0/doc'
make[2]: Leaving directory '/home/joseph/Desktop/pari-2.11.0/doc'
mkdir -p "/usr/local/bin" "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/translations "/usr/local/share/pari"/doc
../config/install ../doc/gphelp "/usr/local/bin"
cd ../doc; make usersch3.tex
make[2]: Entering directory '/home/joseph/Desktop/pari-2.11.0/doc'
make[2]: Leaving directory '/home/joseph/Desktop/pari-2.11.0/doc'
../config/install -m 644 ../doc/appa.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/appb.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/appd.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/parimacro.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/pdfmacs.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/develop.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/refcard.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/tutorial.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/tutorial-mf.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/users.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch1.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch2.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch3.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch4.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch5.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch6.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch7.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/usersch8.tex "/usr/local/share/pari"/doc
../config/install -m 644 ../doc/paricfg.tex "/usr/local/share/pari"/doc
mkdir -p "/usr/local/lib"
rm -f "/usr/local/lib"/libpari-gmp.so.2.11.0 "/usr/local/lib"/libpari-gmp.so.6 "/usr/local/lib"/libpari.so
/usr/bin/gcc -o "/usr/local/lib"/libpari-gmp.so.2.11.0 -shared -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -Wl,-shared,-soname=libpari-gmp.so.6 mpker.o mpinl.o alglin1.o alglin2.o alglin3.o aprcl.o arith1.o arith2.o base1.o base2.o base3.o base4.o base5.o bb_group.o bb_hnf.o bibli1.o bibli2.o bit.o bnflog.o buch1.o buch2.o buch3.o buch4.o char.o concat.o crvwtors.o dirichlet.o ecpp.o ellanal.o elliptic.o ellisog.o ellpadic.o ellsea.o elltors.o F2x.o F2xqE.o FF.o Fle.o Flx.o FlxqE.o Flxq_log.o FpE.o FpV.o FpX.o FpX_factor.o FpXQX_factor.o FpXX.o galconj.o gen1.o gen2.o gen3.o Hensel.o hnf_snf.o hyperell.o ifactor1.o kummer.o lfun.o lfunutils.o lll.o map.o matperm.o mellininv.o mftrace.o modsym.o nffactor.o perm.o polarit1.o polarit2.o polarit3.o polclass.o polmodular.o prime.o Qfb.o qfisom.o qfsolve.o QX_factor.o random.o RgV.o RgX.o rootpol.o Ser.o subcyclo.o subgroup.o trans1.o trans2.o trans3.o volcano.o zetamult.o ZG.o ZV.o ZX.o anal.o compile.o default.o es.o eval.o forprime.o gplib.o hash.o init.o intnum.o members.o paricfg.o pariinl.o parse.o readline.o sumiter.o algebras.o elldata.o ellfromeqn.o forperm.o forsubset.o galois.o galpol.o genus2red.o groupid.o krasner.o mpqs.o part.o ratpoints.o stark.o subfield.o thue.o mt.o single.o plotport.o plottty.o -lc -lm -lgmp -ldl -lm
if test "libpari-gmp.so.2.11.0" != ""/usr/local/lib"/libpari.so"; then ln -s libpari-gmp.so.2.11.0 "/usr/local/lib"/libpari.so; fi
if test "libpari-gmp.so.6" != "libpari.so"; then ln -s libpari-gmp.so.2.11.0 "/usr/local/lib"/libpari-gmp.so.6; fi
mkdir -p "/usr/local/include"/pari
for i in paricfg.h mpinl.h parimt.h; do \
../config/install -m 644 $i "/usr/local/include"/pari; done
for i in paridecl paripriv paricast paricom parierr parigen pari pariinl parinf pariold paristio parisys paritune ; do \
../config/install -m 644 ../src/headers/$i.h "/usr/local/include"/pari; done
rm -f "/usr/local/include"/pari/genpari.h
ln -s pari.h "/usr/local/include"/pari/genpari.h
mkdir -p "/usr/local/bin"
rm -f "/usr/local/bin"/gp-2.11 "/usr/local/bin"/gp
/usr/bin/gcc -o "/usr/local/bin"/gp-2.11 -L"/usr/local/lib" -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -Wl,--export-dynamic emacs.o gp.o gp_rl.o texmacs.o whatnow.o plotX.o -Wl,-rpath,"/usr/local/lib" -lpari -lreadline -lX11 -lm
/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
collect2: error: ld returned 1 exit status
Makefile:222: recipe for target 'install-bin-dyn' failed
make[1]: *** [install-bin-dyn] Error 1
make[1]: Leaving directory '/home/joseph/Desktop/pari-2.11.0/Olinux-x86_64'
Makefile:34: recipe for target 'install' failed
make: *** [install] Error 2
I am a novice at using ubuntu, but am trying my best to learn. I do not know what to make of these, what the problems are, and/or how to fix them. If someone could point me in the right direction or explain what is going wrong that would be greatly appreciated! Thank you.