Skip to content

[R-pkg-devel] Trouble installing XML on Windows 7 (64-bit)

1 message · Haigh, Rowan

#
Hi Avi,
Thank-you so much for your help. It took me a long time to figure it out but your suggestion was a great start. The trick in the end was to define the variable LIB_CURL in the Makeconf files to be the same as CURL_PATH. The package source build routine just did not recognise the latter variable,  but after inspecting the file `Makevars.win' in the RCurl/src/ directory, I guessed that this variable needed to be set to the location I had copied the curl goodies to.  (FMI: curl-7.40.0.zip obtained from http://www.stats.ox.ac.uk/pub/Rtools/goodies/multilib/).

You're a star Avi! Thanks again.

# set to use libcurl
USE_LIBCURL = YES
# path to parent of libcurl headers
CURL_PATH = C:/Apps/R/Rtools/curl7400
LIB_CURL  = C:/Apps/R/Rtools/curl7400
# libs: for 32-bit
# CURL_LIBS = -lcurl -lrtmp -lssl -lssh2 -lcrypto -lgdi32 -lcrypt32 -lz -lws2_32 -lgdi32 -lcrypt32 -lwldap32 -lwinmm -lidn
# libs: for 64-bit
CURL_LIBS = -lcurl -lrtmp -lssl -lssh2 -lcrypto -lgdi32 -lcrypt32 -lz -lws2_32 -lgdi32 -lcrypt32 -lwldap32 -lwinmm

Cheers, Rowan

From: Avraham Adler [mailto:avraham.adler at gmail.com]
Sent: Friday, December 15, 2017 12:11 PM
To: Haigh, Rowan
Subject: Re: [R-pkg-devel] Trouble installing XML on Windows 7 (64-bit)

I always build R from source, so that doesn?t affect me directly. I suggest you copy the lines relating to CURL out of Mkrules.dist, populate them (you?ll need 3 of the 4, 1 depends on 32/64) to your makeconf somewhere like you did for XML.

Good luck!

Avi
On Fri, Dec 15, 2017 at 1:22 PM Haigh, Rowan <Rowan.Haigh at dfo-mpo.gc.ca<mailto:Rowan.Haigh at dfo-mpo.gc.ca>> wrote:
Thanks Avi,
I wasn't rebuilding R, just getting the existing R-devel to install XML from source. I don't see any Mkrules in the compiled version of R-devel.

On a related issue, I now need to install RCurl from source but I have not yet found an obvious way to tell Makeconf how to find the files in `curl-7.40.0.zip' in addition to those in `local323.zip'.

These were never issues in previous builds of R-devel. The Windows binary packages from CRAN were usually compatible with R-devel.

Cheers, Rowan
Tel. (250) 363-8718


-----Original Message-----
From: Avraham Adler [mailto:avraham.adler at gmail.com<mailto:avraham.adler at gmail.com>]
Sent: Friday, December 15, 2017 9:48 AM
To: Haigh, Rowan; R Package Development
Subject: Re: [R-pkg-devel] Trouble installing XML on Windows 7 (64-bit)

On Fri, Dec 15, 2017 at 12:02 PM, Haigh, Rowan
<Rowan.Haigh at dfo-mpo.gc.ca<mailto:Rowan.Haigh at dfo-mpo.gc.ca>> wrote:
Sorry I didn't see this earlier. I've been building R from source on
Windows for years, although XML is one of the three packages I usually
build from binary (the other two being stringi and BH).

As per the instructions (which also tell you where to get the extras)
[1], you don't need to change MakeConf. You need to copy Mkrules.dist
to Mkrules.local and set LOCAL_SOFT to the directory you need and then
ensure EXT_LIBS = $(LOCAL_SOFT) is active. And yes, you need to put
the extra goodies in RLocalSoft (EXCEPT for Tcl), and that includes
Curl and ICU if you want to include that support.

Thanks,

Avi

[1] https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-source
--
Sent from Gmail Mobile