The error message is asking you to install a system library not an R package so adding .libPaths()
to your PATH is not going to help, just install the requested system library following the instructions on the error message.
sudo apt install libcurl4-openssl-dev