# Problems when Building ITensor Library

reshown

I use the Xcode 10.1 on Mac OS 10.14.1 to compile itensor following exactly the procedure in the installation instruction [http://itensor.org/docs.cgi?page=install]. Since I use Mac OS, the procedure editing options.mk file should be simple enough to be right. The error has two kinds:
1. "The vecLib framework is deprecated. Please include <Accelerate/Accelerate.h> instead of <vecLib/vecLib.h> and link to the Accelerate framework instead of the vecLib framework."
2.In file included from tensor/lapackwrap.cc:1:/Users/apple/itensor/itensor/tensor/lapackwrap.h:75:24:
error: *unknown type name '__CLPK_integer'*
It follows almost 20 errors of the second kind. It looks to me the *lapack_wrap.cc* file must have some problems.
I am new to all this, so I think maybe this is actually easy to solve? But it took me a whole morning just searching around achieving nothing. Somebody help...

commented by (32.3k points)
Hi, so I haven't upgraded to 10.14 yet (it's prevented at our office) so I haven't been able to test this directly. But another user reported some issues overlapping with yours, which I think he solved by upgrading Xcode and Xcode command line tools. Did you check through the App Store that you have upgraded Xcode to the latest version? Also, within Xcode please also make sure the latest command line tools are installed.

But it may also be that we will need to update lapack_wrap.cc to be compatible with OSX 10.14. Thanks for reporting this either way.
commented by (120 points)
Yes...The Xcode command line tool is the corresponding 10.14 ones.. Thanks for replying.

CCCOM=g++ -m64 -std=c++11 -fPIC
#CCCOM=clang++ -std=c++11 -fPIC