Dear Linbox Team,
In Linbox 1.5.2, it is no more possible to follow the tutorial,http://linalg.org/linbox-html/tuto.html
because it starts by loading a library for modular fields,
which is no more contained in the linbox/field folder. The latter one contains only
abstract.h field-interface.h gf2.inl map.h rebind.h
archetype.h field-traits.h gmp-rational.h multimod-field.h
envelope.h gf2.h hom.h param-fuzzy.h
Below, I give details on my installation, but I am sure that modular.h has been absorbed into one of the above named libraries. Namely, if I load all of them, then I can define the modular field the way it is done in the tutorial.
Then the same happens for
and there are many differently named matrix libraries. Already loading all the fields library makes the compilation process slow, so I guess that loading all the matrix libraries, I would have to wait a lot for compiling code that only needs the former blas-matrix.h.
It would be nice if you could create an updated tutorial, so users can check if their Linbox installation works correctly by compiling the tutorial programs.
Installation details: As my attempts to install Linbox under Ubuntu and Debian have failed, I have installed Linux Fedora and downloaded Linbox there.
Having prepared the installation with
yum install gcc
yum install git-core
yum install openblas
and installed the packages gcc-c++-7.3.1-2.fc27.x86_64, libstdc++-devel-7.3.1-2.fc27.x86_64
it was possible to run
without having to change the uncompress function. However, this did produce some error messages, namely
./autogen.sh: line 23: autoreconf: command not found
* building Givaro...
make CXXFLAGS+="" LDFLAGS+="-Wl,-rpath,/tmp"
make: *** No targets specified and no makefile found. Stop.
* installing Givaro...
make: *** No rule to make target 'install'. Stop.
and later the same error messages for Fflas-Ffpack and LinBox. So pkg-config did not find any installation of givaro.
Therefore, I have tried the manual installation,
installing GMP manually (required installing lzip and m4 first):
Download from https://gmplib.org/
make; make check; make install
cp /usr/local/givaro-4.0.4/givaro.pc /usr/share/pkgconfig/
After these operations, linbox-auto-install.sh still has the same errors as mentioned above, but givaro now has flags:
pkg-config --cflags givaro
So I went on with
yum install openblas-devel.x86_64
to prepare the installation of fflas-ffpack:
make; make install
This did then as well need to be notified to pkg-config:
cp /usr/local/lib/pkgconfig/fflas-ffpack.pc /usr/share/pkgconfig/
Finally, I installed linbox with ./configure ; make; make install
cp /usr/local/lib/pkgconfig/linbox.pc /usr/share/pkgconfig/
pkg-config --cflags --libs linbox
-O2 -Wall -g -DNDEBUG -U_LB_DEBUG -DDISABLE_COMMENTATOR -I/usr/local/include -fopenmp -fabi-version=6 -L/usr/local/lib -llinbox -fopenmp -lopenblas -lgivaro -lgmp -lgmpxx
pkg-config --cflags --libs givaro
pkg-config --cflags --libs fflas-ffpack
I did only get incantations that are already mentioned in the above incantations for linbox.
The compilation of a test file loading the library
with the above listed incantations for linbox did work after having addressed the following issue mentionend in linbox's make install output:
Libraries have been installed in:
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
- add LIBDIR to the 'LD_RUN_PATH' environment variable
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
For this purpose, I ran
saved a text file containing the path "/usr/local/lib". Then I ordered
as the root user.
Dr. Alexander D. Rahm
Scientific researcher at Université du Luxembourg,
Mathematics Research Unithttp://math.uni.lu/~rahm/
Adjunct Lecturer (Mathematics) at National University of Ireland, Galwayhttp://www.maths.nuigalway.ie/~rahm/