2

I was trying to install a R package called "devtools", but without success.

ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/misc/u32/huang/.R325/lib64/R/library/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/misc/u32/huang/.R325/lib64/R/library/devtools’

It turned out that I need to install "Curl" which requires being root to execute the installation command

Is there anyway to work around the problem? Maybe just install curl underway local directory? Tsk!

5

You can install curl as non-root using a prefix where you have write permissions.

Download curl sources, untar and cd into the extracted directory. Then

./configure --prefix=$HOME/usr
make
make install

and add this to you ~/.profile:

PATH="$HOME/usr/bin:$PATH"
export PATH
LD_LIBRARY_PATH="$HOME/usr/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig:PKG_CONFIG_PATH"
export PKG_CONFIG_PATH
MANPATH=$HOME/usr/share/man:$MANPATH
export MANPATH

Note, after you've setup such $HOME/usr in your ~/.profile once you can easily install most other packages to that prefix too.

  • add --with-ssl also... see askubuntu.com/questions/821186/…. – becko Jul 25 '17 at 10:38
  • @becko the original question was about being non-root and curl and probably also openssl devel packages are not installed. So using --with-ssl would also require to install openssl locally first. – rudimeier Jul 25 '17 at 21:53
  • I know. It's just that missing ssl support was the first issue I had when using this approach. – becko Jul 25 '17 at 21:54
  • @becko ok I will update/reorder my answer soon. – rudimeier Jul 25 '17 at 22:01
1

In my case, I cloned from git. I then read the GIT-INFO. That instructed me to build the config then make.

./buildconf
./configure
make
make test (optional)
make install

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.