I am trying to install a package dependent on 'tximeta' from Biocundoctor, and failed as it could not load tximeta. The installation of tximeta worked, but trying to manually load the tximeta failed as it coul not find "curl/libs/curl.so"
library(tximeta)
Error: package or namespace load failed for ‘tximeta’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/christophermullen/Documents/DE-analysis_project2.R/renv/library/R-4.3/x86_64-apple-darwin20/curl/libs/curl.so':
dlopen(/Users/christophermullen/Documents/DE-analysis_project2.R/renv/library/R-4.3/x86_64-apple-darwin20/curl/libs/curl.so, 6): Symbol not found: _curl_easy_option_by_id
Referenced from: /Users/christophermullen/Documents/DE-analysis_project2.R/renv/library/R-4.3/x86_64-apple-darwin20/curl/libs/curl.so
Expected in: /usr/lib/libcurl.4.dylib
in /Users/christophermullen/Documents/DE-analysis_project2.R/renv/library/R-4.3/x86_64-apple-darwin20/curl/libs/curl.so
As the problem seemed related to curl, I also tried to reinstalled that package and load it, and eventhough it installed properly it is not loading, with a similar error.
library('curl')
Error: package or namespace load failed for ‘curl’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/christophermullen/Library/Caches/org.R-project.R/R/renv/cache/v5/R-4.3/x86_64-apple-darwin20/curl/5.2.1/411ca2c03b1ce5f548345d2fc2685f7a/curl/libs/curl.so':
dlopen(/Users/christophermullen/Library/Caches/org.R-project.R/R/renv/cache/v5/R-4.3/x86_64-apple-darwin20/curl/5.2.1/411ca2c03b1ce5f548345d2fc2685f7a/curl/libs/curl.so, 6): Symbol not found: _curl_easy_option_by_id
Referenced from: /Users/christophermullen/Library/Caches/org.R-project.R/R/renv/cache/v5/R-4.3/x86_64-apple-darwin20/curl/5.2.1/411ca2c03b1ce5f548345d2fc2685f7a/curl/libs/curl.so
Expected in: /usr/lib/libcurl.4.dylib
in /Users/christophermullen/Library/Caches/org.R-project.R/R/renv/cache/v5/R-4.3/x86_64-apple-darwin20/curl/5.2.1/411ca2c03b1ce5f548345d2fc2685f7a/curl/libs/curl.so
I've tried restarting R multiple times, as this solved the problem here .
They also mentioned to ensure the binary rather than the source files were installed here, but no question appeared when installing
install.packages("curl")
The following package(s) will be installed:
- curl [5.2.1]
These packages will be installed into "~/Documents/DE-analysis_project2.R/renv/library/R-4.3/x86_64-apple-darwin20".
Do you want to proceed? [Y/n]: y
# Installing packages --------------------------------------------------------
- Installing curl ... OK [linked from cache]
Successfully installed 1 package in 28 milliseconds.
Session Info
> sessionInfo()
R version 4.3.3 (2024-02-29)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Big Sur 11.6.2
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.3 tools_4.3.3 renv_1.0.5