Hi all,

I am new to this community so sorry if this question has already been
answered.

I was trying to build the spdep package from source. However, I encountered
error message like the following:

clang -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib
-o spdep.so card.o dfs_ncomp.o dnn.o gabriel.o gearyw.o gsymtest.o init.o
insiders.o jc.o knn.o lagw.o listw2Matrix.o listw2sn.o ml_sse.o mom_calc.o
nbdists.o polypoly.o relative.o skater.o soigraph.o symtest.o
-L/Library/Frameworks/R.framework/Resources/lib -lRlapack
-L/Library/Frameworks/R.framework/Resources/lib -lRblas
-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2 -lgfortran -lquadmath
-lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation


ld: warning: directory not found for option
'-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'


ld: library not found for -lquadmath


clang: error: linker command failed with exit code 1 (use -v to see
invocation)

make: *** [spdep.so] Error 1

ERROR: compilation failed for package ‘spdep’

I checked my L/usr/local/lib/gcc/ directory, there is no folder, but there
are i686-apple-darwin8 powerpc-apple-darwin8. I suspect this is because on
the native gcc with Xcode command line tool is version 4.2. But when I run
gcc -v it shows:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)

Target: x86_64-apple-darwin13.1.0
Thread model: posix

How could I point it to the correct directory?
Any thoughts will be greatly appreciated! I am totally lost..

Thanks,
Allen

-- 
林轶伦 LIN, Yilun (Allen)

	[[alternative HTML version deleted]]

