title: error while loading shared libraries: libcaffe.so
body: <p>I am trying to write a simple c++ application which uses caffe. </p>
  
  <p>This is part of my makefile:</p>
  
  <pre><code> FLAGS := -I/usr/local/cuda/include -I/home/guinness/GamerIA/Caffe/caffe  /include/ -I/home/guinness/GamerIA/Caffe/caffe/src/ -I$(ALE)/src -I$(ALE)/src/controllers -I$(ALE)/src/os_dependent -I$(ALE)/src/environment -I$(ALE)/src/external -L$(ALE) -L../Caffe/caffe/build/lib -L/usr/local/cuda/lib64/ -L/usr/lib/x86_64-linux-gnu
   CXX := g++ -std=c++11
   INC:= GAImage.cpp GAScreen.cpp GABrain.cpp
   FILE := main 
   LDFLAGS := -lale -lz -lpthread -lglog -lprotobuf -lleveldb -lsnappy -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lcblas -lboost_python -lpython2.7 -lcudart -lcublas -lcurand -lcudnn -lcaffe 
  </code></pre>
  
  <p>The program compiles succesfully but when I try to run the result I get the following error:</p>
  
  <pre><code> error while loading shared libraries: libcaffe.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>But the file is clearly at the location: ../Caffe/caffe/build/lib which I have included. Can anyone help me out here?</p>