Problem when configuring llvm and clang

I’m following http://clang.llvm.org/get_started.html and i have a problem in the step 6. Build llvm and clang.

When I run …/llvm/configure

I got the next error:

> configure: error: Selected compiler could not find or parse C++ standard library headers. Rerun > with CC=c-compiler CXX=c+±compiler ./configure …

I was looking for information and came across with these two threads:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html
and
http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html

If I do
$which clang++
/usr/bin/clang++

And
$g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
$which g+±4.6
/usr/bin/g+±4.6

So i rerun
…/llvm/configure CXX="/usr/bin"

and also with CXXFLAGS=-stdlib=libc++, but both ways now I get the same error:

> *checking tool compatibility... configure: error: g++|clang++|icc required* > *but not found*

I don't know what's the problem. Please, I need help because I don't know what can I do.
Maybe, i haven't set environment variables correctly.

I’m following http://clang.llvm.org/get_started.html and i have a problem in the step 6. Build llvm and clang.

When I run …/llvm/configure

I got the next error:

> configure: error: Selected compiler could not find or parse C++ standard library headers. Rerun > with CC=c-compiler CXX=c+±compiler ./configure …

I was looking for information and came across with these two threads:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html
and
http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html

If I do
$which clang++
/usr/bin/clang++

And
$g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
$which g+±4.6
/usr/bin/g+±4.6

So i rerun
…/llvm/configure CXX="/usr/bin"

I always thought CC and CXX needed to point at the compiler directly, and not just the path the compiler sits in (especially when there are several compilers sitting there).

So I would say CC="/usr/bin/clang" and CXX="/usr/bin/clang++"

– Matthieu

Have you solve this problem yet and I would be appreciate that if you could
show me how to handle it well?
I am starting to learn clang recently,and please,help me if you are able to
.Thanks
E-mail :hbxtjk@qq.com