make build error in Graphtool

I have successfully configured the graph tool but where I try to build with
./make command I am getting the following error
[root(a)localhost graph-tool-2.2.35]# make
make all-recursive
make[1]: Entering directory `/root/Desktop/graph-tool-2.2.35'
Making all in src
make[2]: Entering directory `/root/Desktop/graph-tool-2.2.35/src'
Making all in graph
make[3]: Entering directory `/root/Desktop/graph-tool-2.2.35/src/graph'
Making all in centrality
make[4]: Entering directory
`/root/Desktop/graph-tool-2.2.35/src/graph/centrality'
  CXX graph_betweenness.lo
  CXX graph_centrality_bind.lo
  CXX graph_closeness.lo
  CXX graph_eigentrust.lo
  CXX graph_eigenvector.lo
  CXX graph_hits.lo
  CXX graph_katz.lo
  CXX graph_pagerank.lo
  CXX graph_trust_transitivity.lo
  CXXLD libgraph_tool_centrality.la
/usr/bin/ld: cannot find -l/usr/include
collect2: error: ld returned 1 exit status
make[4]: *** [libgraph_tool_centrality.la] Error 1
make[4]: Leaving directory
`/root/Desktop/graph-tool-2.2.35/src/graph/centrality'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/Desktop/graph-tool-2.2.35/src/graph'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/graph-tool-2.2.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/graph-tool-2.2.35'
make: *** [all] Error 2
[root(a)localhost graph-tool-2.2.35]#
I am using following operating system and library packages with versions

Centos 7
Gcc 4.8.2
BOOST 1_57.0
Python 2.7.5
CGAL 4.5
Expat2.1.0
Gmp 6.00

I have run ./configure --disable-cairo --disable-sparsehash

Could you please help me out? The config.log file is attached

I have already tried the following:

make maintainer-clean
autoreconf --force --install
./configure
make

Many Thanks in advance
config.log
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4025913/config.log&gt;

I can't understand where this comes from. For some reason your linker
flags are wrong (it should be -L/usr/include not -l/usr/include). Are
you sure you are not doing something different during configuration?

Best,
Tiago

Many Thanks Tiago for your reply,
I have run the configure command as follows:

./configure --enable-openmp --disable-cairo

Also, I have changed the
CPPFLAGS="-I/usr/python2.7" to CPPFLAGS="-L/usr/python2.7"
and LDFLAGS is set as follows:
LDFLAGS="-L/usr/lib/python2.7"

But still the same error when I run the "make"
[root(a)localhost graph-tool-2.2.35]# make
make all-recursive
make[1]: Entering directory `/root/Desktop/graph-tool-2.2.35'
Making all in src
make[2]: Entering directory `/root/Desktop/graph-tool-2.2.35/src'
Making all in graph
make[3]: Entering directory `/root/Desktop/graph-tool-2.2.35/src/graph'
Making all in centrality
make[4]: Entering directory
`/root/Desktop/graph-tool-2.2.35/src/graph/centrality'
   CXX graph_betweenness.lo
   CXX graph_centrality_bind.lo
   CXX graph_closeness.lo
   CXX graph_eigentrust.lo
   CXX graph_eigenvector.lo
   CXX graph_hits.lo
   CXX graph_katz.lo
   CXX graph_pagerank.lo
   CXX graph_trust_transitivity.lo
   CXXLD libgraph_tool_centrality.la
/usr/bin/ld: cannot find -l/usr/include
collect2: error: ld returned 1 exit status

Could you please let me know if any other setting for linker flags?

Have you changed other environment variables, like CXXFLAGS?

The config.log file you sent the last time was not the correct one,
since it still complained about not finding CGAL, and there was no trace
of the incorrect "-l/usr/include" flag. Please send the correct
config.log.

Best,
Tiago

I have also tried with the following configuration
#./configure -enable-openmp --disable-cairo CPPFLAGS="-L/usr/include"
LDFLAGS="-L/usr/lib"

But still the same error when I run the "make"
[root(a)localhost graph-tool-2.2.35]# make
make all-recursive
make[1]: Entering directory `/root/Desktop/graph-tool-2.2.35'
Making all in src
make[2]: Entering directory `/root/Desktop/graph-tool-2.2.35/src'
Making all in graph
make[3]: Entering directory `/root/Desktop/graph-tool-2.2.35/src/graph'
Making all in centrality
make[4]: Entering directory
`/root/Desktop/graph-tool-2.2.35/src/graph/centrality'
   CXX graph_betweenness.lo
   CXX graph_centrality_bind.lo
   CXX graph_closeness.lo
   CXX graph_eigentrust.lo
   CXX graph_eigenvector.lo
   CXX graph_hits.lo
   CXX graph_katz.lo
   CXX graph_pagerank.lo
   CXX graph_trust_transitivity.lo
   CXXLD libgraph_tool_centrality.la
/usr/bin/ld: cannot find -l/usr/include
collect2: error: ld returned 1 exit status

Kindly help me out.

You are obviously doing something wrong, but I can't help you if you
don't provide the information I ask. Please send me the config.log file,
otherwise there is no way of knowing what is going on.

Best,
Tiago

Hi
Sorry I have posted my last message without read of your message. I just
read your message. Actually I have run yum update on my system and now again
the configure command is complaining about CGAL directory not found.However
CGAL folder is available in /usr/include.

1. what is right procedure to build CGAL. I execute "cmake ." and "make"
commands to build CGAL but all header files and library files created in the
same directory where CGAL source files are there. after that I copy the CGAL
folder under /usr/include is it the right way?

2. I set environment variable: CXXFLAGS="-L/usr/include" is it ok?

your help would highly be appreciated

My system is in office I will run it again and will send config.log file to
you in the morning.

Many Thanks for your help

1. what is right procedure to build CGAL. I execute "cmake ." and "make"
commands to build CGAL but all header files and library files created in the
same directory where CGAL source files are there. after that I copy the CGAL
folder under /usr/include is it the right way?

No, you have to run 'make install'. Read the documentation in the CGAL
website.

2. I set environment variable: CXXFLAGS="-L/usr/include" is it ok?

This is OK, but totally unnecessary.

Best,
Tiago