title: Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/software/R...', installing dplyr on LSF GNU/Linux server
body: <p>I tried installing 'dplyr' on a Linux server using the following code in a script:</p>
  
  <pre><code>install.packages('dplyr', dependencies = TRUE, lib = 'output/software/r/package/installation/', 
                   repos = 'http://cran.rstudio.com')
  </code></pre>
  
  <p>but after running it with 'Rscript code.R' I got a long message followed by:</p>
  
  <pre><code> ** package ‘dplyr’ successfully unpacked and MD5 sums checked
  ** libs
  
  ...
  
  g++  -I/software/R-3.4.0/lib/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T -DBOOST_NO_LONG_LONG -DRCPP_USING_UTF8_ERROR_STRING -I"/lustre/.../project/output/software/r/package/installation/Rcpp/include" -I"/software/R-3.4.0/lib/R/library/BH/include" -I"/software/R-3.4.0/lib/R/library/bindrcpp/include" -I"/software/R-3.4.0/lib/R/library/plogr/include" -I/usr/local/include   -fpic  -g -O2  -c hybrid_offset.cpp -o hybrid_offset.o
  ...
  
  g++ -shared -L/usr/local/lib -o dplyr.so RcppExports.o address.o api.o arrange.o between.o bind.o combine_variables.o distinct.o encoding.o filter.o group_by.o group_indices.o hybrid.o hybrid_count.o hybrid_debug.o hybrid_in.o hybrid_minmax.o hybrid_nth.o hybrid_offset.o hybrid_simple.o hybrid_window.o init.o join.o join_exports.o mutate.o rlang-export.o select.o set.o slice.o summarise.o test.o utils.o window.o
  installing to /lustre/.../project/output/software/r/package/installation/dplyr/libs
  ** R
  ** data
  *** moving datasets to lazyload DB
  ** inst
  ** preparing package for lazy loading
  Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so':
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /software/R-3.4.0/lib/R/library/bindrcpp/libs/bindrcpp.so)
  ERROR: lazy loading failed for package ‘dplyr’
  </code></pre>
  
  <p>I tried installing 'dplyr' without the dependencies and it gives the same messages. </p>