title: Error while Installing R-3.4.0
body: <p>I am trying to install R-3.4.0 on RHEL 6.8 using following link. I met all packages requirement but when I try executing "make" command, it gives me below error about undefined reference.  </p>
  
  <p><a href="https://unix.stackexchange.com/questions/343452/how-to-install-r-3-3-1-in-my-own-directory">https://unix.stackexchange.com/questions/343452/how-to-install-r-3-3-1-in-my-own-directory</a> </p>
  
  <pre><code>/usr/bin/ld: warning: libpcre.so.1, needed by ../../lib/libR.so, not found (try using -rpath or -rpath-link)
  /usr/bin/ld: warning: liblzma.so.5, needed by ../../lib/libR.so, not found (try using -rpath or -rpath-link)
  ../../lib/libR.so: undefined reference to `lzma_code@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_raw_encoder@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_stream_decoder@XZ_5.0'
  ../../lib/libR.so: undefined reference to `pcre_free'
  ../../lib/libR.so: undefined reference to `lzma_lzma_preset@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_raw_decoder@XZ_5.0'
  ../../lib/libR.so: undefined reference to `pcre_version'
  ../../lib/libR.so: undefined reference to `pcre_exec'
  ../../lib/libR.so: undefined reference to `pcre_config'
  ../../lib/libR.so: undefined reference to `pcre_fullinfo'
  ../../lib/libR.so: undefined reference to `pcre_maketables'
  ../../lib/libR.so: undefined reference to `pcre_compile'
  ../../lib/libR.so: undefined reference to `pcre_assign_jit_stack'
  ../../lib/libR.so: undefined reference to `lzma_end@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_alone_decoder@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_version_string@XZ_5.0'
  ../../lib/libR.so: undefined reference to `lzma_crc64@XZ_5.0'
  ../../lib/libR.so: undefined reference to `pcre_jit_stack_alloc'
  ../../lib/libR.so: undefined reference to `pcre_study'
  ../../lib/libR.so: undefined reference to `pcre_free_study'
  ../../lib/libR.so: undefined reference to `lzma_stream_encoder@XZ_5.0'
  collect2: ld returned 1 exit status
  make[3]: *** [R.bin] Error 1
  make[3]: Leaving directory `xxx/R-3.4.0/src/main'
  make[2]: *** [R] Error 2
  make[2]: Leaving directory `/xxx/R-3.4.0/src/main'
  make[1]: *** [R] Error 1
  make[1]: Leaving directory `/xxx/R-3.4.0/src'
  make: *** [R] Error 1 
  </code></pre>
  
  <p>setting up these 2 options accordingly not working fine so far, </p>
  
  <pre><code>setenv LD_LIBRARY_PATH $HOME/Programme/pcre-8.40/lib
  setenv LD_LIBRARY_PATH $HOME/Programme/xz-5.2.3/lib
  </code></pre>
  
  <p>Any suggestion? </p>