Description
I am trying to install from source on a Rocky 8.10 system which I don't have admin access on.
I tried following the directions at https://macaulay2.com/Downloads/SourceCode/, cloned from GitHub into ~/M2/
and ran
cd ${HOME}/M2/M2
make
mkdir ${HOME}/M2/M2/BUILD/foo
cd ${HOME}/M2/M2/BUILD/foo
../../configure --prefix=${HOME}/local CPPFLAGS="-I/${HOME}/local/include" LIBS="-L/${HOME}/local/lib64/"
I initially had issues with tbb, but followed #3055, and installed the newest version of tbb using cmake following https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md. I did use -DCMAKE_INSTALL_PREFIX=${HOME}/local
since I don't have admin access. That solved the tbb problem.
After solving the tbb problem, I again ran
../../configure --prefix=${HOME}/local CPPFLAGS="-I/${HOME}/local/include" LIBS="-L/${HOME}/local/lib64/"
from M2/BUILD/foo
. Then I got the error
checking whether eigen3 library is installed... configure: error: eigen library not found
and the build stopped. I tried building the eigen3 library but that did not work for some reason. I think that eigen3 did install, because I am able to run the toy program from https://eigen.tuxfamily.org/dox/GettingStarted.html that prints a matrix by running
% g++ -I ${HOME}/local/include/eigen3 my_program.cpp -o my_program
% ./my_program
3 -1
2.5 1.5
I would have thought that setting CPPFLAGS="-I/${HOME}/local/include"
would have been enough to fix the problem, but I am wrong.