[R-SIG-Mac] XML packages source compilation on macOS 10.15.7

Duncan Temple Lang dtemp|e|@ng @end|ng |rom ucd@v|@@edu
Mon Feb 15 16:26:54 CET 2021

Hi Kemal
Can you please send the output from the entire installation attempt, and
also the config.log file.


On Mon, Feb 15, 2021 at 5:14 AM Kemal Akat <kma460414 using gmail.com> wrote:

> Hello all,
> I have to compile the XML package from source for R 4.1 (development
> version) on a Mac with OS version 10.15.7. It works well on all machines
> that do not come with any significant ballast on developer tools. One
> machine, however, that I have used for some time returns a mismatch of
> header files and library. I looked into possible offenders and purged what
> I could (e.g. deleted Homebrew although the other machines have Homebrew
> and Miniconda installed as well) but to no avail.
> install.packages(“XML”) fails and install.packages("XML",
> configure.args=c("LIBXML_INCDIR=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2",
> "LIBXML_LIBDIR=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib”))
> also fails.
> There are obviously differences I cannot track down so far but I am
> running out of ideas. Both machines have MacOSX10.14.sdk and
> MacOSX10.15.sdk installed with MacOSX.sdk linking to MacOSX10.15.sdk.
> Here is part of the log of a successful compilation, and I was hoping
> someone could point me towards a solution.
> libxml include directory:
> -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
> libxml library directory:
> -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -lz
> -lpthread -licucore -lm -lz  -lxml2
> libxml 2:                 -DLIBXML2=1
> Compilation flags:         -DLIBXML
> -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
> Link flags:
>  -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -lz
> -lpthread -licucore -lm -lz  -lxml2
> Thanks,
> Kemal
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Duncan Temple Lang
Associate Dean for Graduate Programs
Professor, Department of Statistics
UC Davis

	[[alternative HTML version deleted]]

More information about the R-SIG-Mac mailing list