Linux GCC version 4.7 or later is required to build Julia.Instead of setting LDFLAGS, putting the library directory into the environment variable LD_LIBRARY_PATH (at both compile and run time) also works.See also the . Linux Build Troubleshooting