You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had trouble tonight installing the curl package under R 3.2.1 with a manually built and installed curl library at 7.44.0, installed under a prefix $HOME/prefix. Many other source packages could be successfully built with the same configuration, and in the end some unclear combination of changes made the error go away. I'm still puzzled what the problem was, and I'm wondering whether R and/or the Makefile dealing correctly with my Makevars file. I'm not very familiar with the Makevars file in R, it could well be incorrect.
Can you look into this issue and tell me what has caused the problem and whether something should be fixed?
Commenting out the Makevars, and building from the current master revision with R CMD INSTALL --configure-vars="INCLUDE_DIR=$HOME/prefix/include LIB_DIR=$HOME/prefix/lib" "$HOME/installers/curl"
is successful:
The text was updated successfully, but these errors were encountered:
sanmai-NL
changed the title
0.9.3/ Problem loading shared library, causing failure to install package
Problem loading shared library, causing failure to install package (0.9.3/master@a50e34643cf93ce578eb90a29f765c25760a12ae)
Oct 22, 2015
You should not be setting anything in ~/.R/Makevars, other than debug flags or so. The configure script will pick up the cflags and libs from pkg-config.
In your first output it is missing -lcurl in the linking step. I don't know how you managed to do this. Maybe the correct PKG_LIBS value from pkg-config was overwritten by the one from your ~/.R/Makevars. Other than that you seem to be doing everything right. Just delete your ~/.R/Makevars and it should work.
I had trouble tonight installing the
curl
package under R 3.2.1 with a manually built and installedcurl
library at 7.44.0, installed under a prefix$HOME/prefix
. Many other source packages could be successfully built with the same configuration, and in the end some unclear combination of changes made the error go away. I'm still puzzled what the problem was, and I'm wondering whether R and/or theMakefile
dealing correctly with myMakevars
file. I'm not very familiar with theMakevars
file in R, it could well be incorrect.Can you look into this issue and tell me what has caused the problem and whether something should be fixed?
Context
~/.R/Makevars
:Environment variables
PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig
Linux *.nl 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux
GCC
Failure
install.packages('curl')
resulted in this failure:Success
Commenting out the Makevars, and building from the current
master
revision withR CMD INSTALL --configure-vars="INCLUDE_DIR=$HOME/prefix/include LIB_DIR=$HOME/prefix/lib" "$HOME/installers/curl"
is successful:
The text was updated successfully, but these errors were encountered: