title: boost and cpp-netlib make compile ERROR
body: <p>[SOLVED] created symlinks from /usr/lib/lib/* to /usr/lib*</p>
  
  <p>[UPDATE 3] <strong>NEW VERSION:</strong></p>
  
  <p>Ok, I think I fixed something</p>
  
  <p>use  <code>find / -name "libboost_system.*"</code>
  outout was </p>
  
  <pre><code>/usr/include/boost/lib/libboost_system.so
  /usr/include/boost/lib/libboost_system.a
  /usr/include/boost/lib/libboost_system.so.1.46.1
  /usr/lib/lib/libboost_system.so
  /usr/lib/lib/libboost_system.a
  /usr/lib/lib/libboost_system.so.1.46.1
  /usr/local/include/boost_1_46_1/bin.v2/libs/system/build/gcc-4.4.3/release/link-static/threading-multi/libboost_system.a
  /usr/local/include/boost_1_46_1/bin.v2/libs/system/build/gcc-4.4.3/release/threading-multi/libboost_system.so.1.46.1
  /usr/local/lib/libboost_system.so
  /usr/local/lib/libboost_system.a
  /usr/local/lib/libboost_system.so.1.46.1
  /root/tmp/boost_1_46_1/bin.v2/libs/system/build/gcc-4.4.3/release/link-static/threading-multi/libboost_system.a
  /root/tmp/boost_1_46_1/bin.v2/libs/system/build/gcc-4.4.3/release/threading-multi/libboost_system.so.1.46.1
  </code></pre>
  
  <p>why are these files in <code>/usr/lib/lib</code> ? and is it a problem ?</p>
  
  <p>and the     <code>ls -l /usr/lib/lib | grep boost_system</code></p>
  
  <pre><code>ls -l /usr/lib/lib | grep boost_system
  -rw-r--r-- 1 root root   21574 2011-05-09 15:15 libboost_system.a
  lrwxrwxrwx 1 root root      25 2011-05-09 15:15 libboost_system.so -&gt; libboost_system.so.1.46.1
  -rwxr-xr-x 1 root root   20053 2011-05-09 15:15 libboost_system.so.1.46.1
  </code></pre>
  
  <p>atm my makefile looks like</p>
  
  <pre><code>LIBPATH=-I/usr/local/include/cpp-netlib 
  LIBS=$(LIBPATH) -lboost_system  -lboost_filesystem -lboost_thread -lpthread 
  
  LD=g++ -g 
  CPP=g++ -c -g $(LIBS)
  
  P=.
  OBJ=$(P)/tmp/main.o $(P)/tmp/CLink.o $(P)/tmp/CFetcher.o
  
  main:   $(OBJ); $(LD) $(OBJ) $(LIBS) -o $@
  
  
  $(P)/tmp/CLink.o:   $(P)/src/CLink.cpp $(P)/include/CLink.h; $(CPP) -c $&lt; -o $@
  $(P)/tmp/CFetcher.o:    $(P)/src/CFetcher.cpp $(P)/include/CFetcher.h; $(CPP) -c $&lt; -o $@
  $(P)/tmp/main.o:    $(P)/src/main.cpp $(P)/include/CLink.h $(P)/include/CFetcher.h ; $(CPP) -c $&lt; -o $@
  
  all:
      touch $(P)/tmp/*.o;
      touch main;
      rm -f $(P)/tmp/*.o;
      rm -f main;
      make main;
  </code></pre>
  
  <p>The Compiler output is lie</p>
  
  <pre><code>g++ -c -g -I/usr/local/include/cpp-netlib  -lboost_system  -lboost_filesystem -lboost_thread -lpthread  -c src/main.cpp -o tmp/main.o
  g++ -c -g -I/usr/local/include/cpp-netlib  -lboost_system  -lboost_filesystem -lboost_thread -lpthread  -c src/CLink.cpp -o tmp/CLink.o
  g++ -c -g -I/usr/local/include/cpp-netlib  -lboost_system  -lboost_filesystem -lboost_thread -lpthread  -c src/CFetcher.cpp -o tmp/CFetcher.o
  g++ -g  ./tmp/main.o ./tmp/CLink.o ./tmp/CFetcher.o -I/usr/local/include/cpp-netlib  -lboost_system  -lboost_filesystem -lboost_thread -lpthread  -o main
  </code></pre>
  
  <p>So for me all looks nice but when i try to run the program</p>
  
  <p>./main</p>
  
  <pre><code>./main: error while loading shared libraries: libboost_system.so.1.46.1: cannot open shared object file: No such file or directory
  </code></pre>