-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure fails to find libxml (macOS toolchain issue?) #296
Comments
Strange, my xml2-config gives the expected directory on Catalina.
|
Weird -- I have the same version of
It looks like
and there's definitely no mention of |
yeah, it has
On line 70 I don't recall editing this file, and this is a new machine (in the last month). But perhaps I did at some point in the past and it was copied over when I did the time machine restore on it. |
We also see this same failure for R-devel on macOS on the CI (https://github.com/r-lib/xml2/runs/574390230#step:9:22), but strangely not for the current release, which I don't really understand, as the compiler toolchain used on GitHub Actions should be the same between them. In any case your PR should work for both cases, so it seems like the right fix I think. I am still running macOS 10.15.3, could this be a change in 10.15.4? |
Hi, After several tests, I found that if you have You can similarly use the official CRAN macOS You likely knew this, but well, since others are linking back to here, I thought it would be useful to share this info. Best, GitHub ActionsIf you use
I tested this in leekgroup/derfinderPlot@df4938e and LieberInstitute/recount3@b7207b4. See the companion GHA logs. Local, with homebrewLocally, running ==> libxml2
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have libxml2 first in your PATH run:
echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> ~/.bash_profile
For compilers to find libxml2 you may need to set:
export LDFLAGS="-L/usr/local/opt/libxml2/lib"
export CPPFLAGS="-I/usr/local/opt/libxml2/include"
For pkg-config to find libxml2 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig" We can see that $ ls -lh /usr/local/bin/xml2-config
lrwxr-xr-x 1 lcollado wheel 42 Apr 18 18:40 /usr/local/bin/xml2-config -> ../Cellar/libxml2/2.9.10_1/bin/xml2-config
|
As I re-read my above logs, it seems like the local R installation for |
…rsion of xml2 on macOS
…rsion of xml2 on macOS
…rsion of xml2 on macOS
…rsion of xml2 on macOS
…rsion of xml2 on macOS
…rsion of xml2 on macOS
Created both an introductory and a developer's notes vignette, updated README and docs with examples, added a second biocViews term, fixed some small bugs/typos. Related links (as many as I could remember): * https://rstd.io/tidytools19 * https://twitter.com/CVWickham * https://twitter.com/hadleywickham * https://www.rstudio.com/products/rstudio/download * https://comunidadbioinfo.github.io/post/building-tidy-tools-cdsb-runconf-2019/#.XrbLMxNKiu4 * http://bioconductor.org/ * https://lcolladotor.github.io/pkgs/ * https://stat.ethz.ch/pipermail/bioc-devel/2020-March/016365.html * https://www.bioconductor.org/help/docker/ * https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016532.html * https://github.com/features/actions * https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016650.html * r-lib/actions#84 * r-lib/usethis#1108 * r-lib/styler#636 * Bioconductor/BiocCheck#57 * Bioconductor/bioconductor.org#54 * http://bioconductor.org/developers/how-to/coding-style/ * https://style.tidyverse.org/ * https://twitter.com/lorenzwalthert * https://twitter.com/mt_morgan * https://docs.travis-ci.com/user/languages/r/ * r-lib/pkgdown#1206 * r-lib/pkgdown#1230 * https://twitter.com/jimhester_ * https://www.jimhester.com/talk/2020-rsc-github-actions/ * https://github.com/Bioconductor/BBS * https://github.com/Bioconductor/packagebuilder * https://www.appveyor.com/ * r-hub/rhub#52 * r-hub/rhub#38 * https://www.tidyverse.org/blog/2020/04/usethis-1-6-0/ * https://github.com/r-lib/actions/tree/master/examples * https://yihui.org/en/2018/03/second-pull-request/ * https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml * https://help.github.com/en/actions * https://ropenscilabs.github.io/actions_sandbox/ * https://twitter.com/seandavis12 * https://github.com/seandavi/BiocActions/blob/master/.github/workflows/main.yml * https://twitter.com/CSoneson * https://github.com/csoneson/dreval/blob/master/.github/workflows/R-CMD-check.yaml * https://bioc-community.herokuapp.com/ * https://github.com/leekgroup/derfinderPlot/blob/master/.github/workflows/check-bioc.yml * https://github.com/LieberInstitute/recount3/blob/master/.github/workflows/check-bioc.yml * https://github.com/hpages * r-lib/actions#68 * r-lib/actions#85 * https://twitter.com/opencpu * https://community.rstudio.com/u/const-ae * https://community.rstudio.com/t/compiler-support-fo-c-14-features-on-windows/57284/4 * r-lib/xml2#296 * r-lib/xml2#302 * https://github.com/r-lib/usethis/blob/master/.github/workflows/R-CMD-check.yaml * https://github.com/r-lib/usethis/commits/master/.github/workflows/R-CMD-check.yaml * https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016703.html * https://stat.ethz.ch/pipermail/bioc-devel/2020-April/thread.html * r-lib/remotes#296 * r-lib/actions#86 * r-lib/covr#427 * https://github.com/r-lib/actions/blob/master/examples/pr-commands.yaml * https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-18-04 * r-lib/actions#50 * actions/checkout#238 * https://github.com/rocker-org/rocker-versioned2/blob/master/dockerfiles/Dockerfile_rstudio_4.0.0-ubuntu18.04 * https://twitter.com/niteshturaga * https://twitter.com/cboettig * rocker-org/rocker-versioned#208 * https://github.saobby.my.eu.orgmunity/t5/GitHub-Actions/bd-p/actions * https://www.r-consortium.org/blog/2020/03/18/cdsb-diversity-and-outreach-hotspot-in-mexico * https://github.com/maxheld83 * r-lib/actions#87 * https://github.com/yutannihilation
yeah i realized this is already closed... but i was wondering if you could help me troubleshoot my similar problem? when i try the section on Loading CRAN tools, I get unsupported file format in my terminal. |
When I try to install
xml2
from sources, I'm seeing:Note: the configure output above indicates that the flags are coming from
pkg-config
, but they're really coming fromxml2-config
in this case.If I understand correctly, it seems like
xml2-config
is providing the wrong flags:as the requisite xml2 includes aren't actually available in that directory.
FWIW,
pkg-config
(installed from Homebrew) seems to get it right:Note: #232 (comment) is likely related.
The text was updated successfully, but these errors were encountered: