I just checked my laptop (also running Lion) and I do have gcc at /usr/bin and
it is linked to /usr/bin/gcc-4.2. I just checked again on my Mac Pro and there
is no gcc in /usr/bin although there is a /usr/bin/gcc-3.3, probably left over
from an earlier OS or Xcode. I downloaded and installed X
I think you have something wrong with your Xcode install; on my Lion
machine, gcc is installed in /usr/bin as always. Also, on OS X, you
should never have to set LD_LIBRARY_PATH.
Brian
On 11/4/11 3:36 PM, "Ralph Castain" wrote:
>Just glancing at the output, it appears to be finding a different
Just glancing at the output, it appears to be finding a different gcc that
isn't Lion compatible. I know people have been forgetting to clear out all
their old installed software, and so you can pick old things up.
Try setting your path and ld_library_path variables to point at the Xcode gcc.
I had downloaded and installed OpenMPI on my Mac OS-X 10.6 machine a few months
ago. I ran the configure and install commands from the FAQ with no problems.
I recently upgraded to Max OS-X 10.7 (Lion) and now when I run mpicc it cannot
find the standard C library headers (stdio.h, std lib.h…)