Use sudo apt install libeigen3-dev . It handles everything for you.
This usually places the headers in /usr/local/include/eigen3 . How to Verify the Installation download eigen linux
You don't need to compile a library file ( .so or .a ). You just include the headers and go. No Dependencies: It only requires a standard C++ compiler. Method 1: Using the Linux Package Manager (Fastest) Use sudo apt install libeigen3-dev
If you need a specific version or the absolute latest "bleeding-edge" features, downloading the source directly from the official repository is the way to go. Go to the Eigen GitLab page . download eigen linux