我在Linux服务器(Red Hat Enterprise 7)上,没有sudo权限。因此,多年来我一直在使用linuxbrew,但是由于硬件问题,我不得不重新安装整个brew。自从我努力安装多个公式以来。
错误始终是无法找到Python标头。但这很奇怪,因为我在blogdown::serve_site()
下以及brew目录中都有python标头。
这是针对/usr/include
的:
brew install libxslt
即使开箱即用地安装冲泡咖啡,也会出现错误。这是我用来安装brew的方式:
Last 15 lines from /LOG/PATH/02.make:
compilation terminated.
make[3]: *** [libxsltmod_la-libxslt.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from libxslt_wrap.h:1:0,
from libxslt-py.c:4:
libxml_wrap.h:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
libxslt.c:14:20: fatal error: Python.h: No
such file or directory
compilation terminated.
make[3]: *** [libxsltmod_la-types.lo] Error 1
make[3]: *** [libxsltmod_la-libxslt.lo] Error 1
make[3]: Leaving directory '/tmp/libxslt-20180918-6529-i16svr/libxslt-1.1.32/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/libxslt-20180918-6529-i16svr/libxslt-1.1.32/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/libxslt-20180918-6529-i16svr/libxslt-1.1.32'
make: *** [all] Error 2
READ THIS: https://github.com/Linuxbrew/brew/wiki/troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core,
which support macOS only."
有人有个好主意吗?