eigen3 install problems

Brickle Macho bricklemacho at gmail.com
Tue Aug 9 08:52:34 PDT 2011

On 9/08/11 9:30 PM, Eric A. Borisch wrote:
> On Tue, Aug 9, 2011 at 6:21 AM, Brickle Macho <bricklemacho at gmail.com> wrote:
>> % sudo port install -v eigen3
>> I see it fails with the following extract from highlighting the error:
>> ------
>> /usr/local/bin/gfortran -L/opt/local/lib -arch x86_64 -pipe -O2 -m64
>> CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o cmTryCompileExec
> CMake appears to be finding this (unexpected) gfortran... where did it
> come from? (And is there anyone on the list familiar enough with CMake
> (I'm not) to let me know how to prevent CMake from probing for this?)

I tried the HPC build and GCC MacOs binaries.

>> This appears to install correctly, no errors. So I try to install
>> eigen3, I clean it first just in case:
>> % sudo port clean eigne3
>> % sudo port -v install eigen3
>> from the error message it appears to be macports gfortran but is still
>> fails. Extract of verbose output follows:
> You haven't told eigen3 (through a variant) to use a specific
> compiler. There currently isn't a +gcc46 variant; try 'sudo port
> install eigen3 +gcc45' -- or if you don't need the +cmake stuff or
> +blas/+doc, just do 'sudo port install eigen3 -cmake' which will just
> install the eigen3 headers.

I moved aside /usr/local (suggested in another post), then uninstall
gcc46, and install gcc45 +gfortran and told eigen3 to use gcc45. This
appears to have eigen3 installing.



More information about the macports-users mailing list