[Solved] Solving GLIBCXX_3.4.26 dependency

Arindam Ghosh Asks: Solving GLIBCXX_3.4.26 dependency
I have installed the R package metaboliteIDmapping using:

if (!requireNamespace("BiocManager", quietly = TRUE))


But when I tried to load the package, it shows an error:

Error: package or namespace load failed for ‘metaboliteIDmapping’:
 .onLoad failed in loadNamespace() for 'metaboliteIDmapping', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Tools/Conda/miniconda3/envs/arindam/lib/R/library/Rcpp/libs/Rcpp.so':
  /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /Tools/Conda/miniconda3/envs/arindam/lib/R/library/Rcpp/libs/Rcpp.so)

However, GLIBCXX_3.4.26 is available through my conda env and is present in


How to resolve this issue? How do I direct rstudio to be using this location without root permissions?

Interestingly, when I try to load the same library from the Rstudio terminal, it works fine.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.