title: complie and link,warning not found libpcre.so.1
body: <p>When I complie the program with CUDA and OPenCV, it is fine just complie(using -c), but warning occurs while it links:</p>
  
  <pre><code>/usr/local/cuda-9.0/bin/nvcc -ccbin g++  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -m64 -I /usr/local/include -I /usr/local/include/opencv -I /usr/local/include/opencv2  -lopencv_core -lopencv_highgui -lopencv_imgproc -o rgb  smooth_tex.cu 
  5 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -m64 -I /usr/local/include -I /usr/local/include/opencv -I /usr/local/include/opencv2 -lopencv_core -lopencv_highgui -lopencv_imgproc -o rgb smooth_tex.cu
  /usr/bin/ld: warning: libpcre.so.1, needed by //home/dzqiu/anaconda2/lib/libgobject-2.0.so.0, not found (try using -rpath or -rpath-link)
  </code></pre>
  
  <p>I am confused that why it will link the library in anaconda2 ? And I checked the libgobject-2.0.so.0,and found it was likely OK:</p>
  
  <p><img src="https://i.stack.imgur.com/FlOnJ.png" alt="enter image description here"></p>
  
  <p>but when I run <code>rpm -ql pcre</code>, it shows :</p>
  
  <pre><code>package pcre is not installed
  </code></pre>
  
  <p>I try to install the libpcre3, but it shows that libpcre3 is already the newest version (2:8.38-3.1),but not in the /lib64,/lib/,usr/local/lib/, I try to link the libpcre.so.1 from anaconda2, but it doesn't work.</p>
  
  <p>I also add the -L to link the OpenCV's library(/usr/local/lib/) or the anaconda2's library, but it doesn't work.</p>
  
  <p>Any suggestions to fix?</p>