linuxbrew установить libxslt: заголовки Python не найдены? - PullRequest
0 голосов
/ 18 сентября 2018

Я нахожусь на сервере Linux (Red Hat Enterprise 7), и у меня нет прав sudo.Итак, в течение многих лет я использовал linuxbrew, но из-за проблем с оборудованием мне пришлось переустанавливать весь варочный аппарат.С тех пор, как я изо всех сил пытаюсь установить несколько формул.

Ошибка всегда в том, что заголовки Python не могут быть найдены.Но это странно, так как у меня есть заголовки python под /usr/include, а также в каталоге brew.

Это для brew install libxslt:

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."

Даже при установке свежего варева из коробки появляется ошибка.Вот что я использую для установки brew:

git clone https://github.com/Linuxbrew/brew.git /MY/FOLDER
# Add /MY/FOLDER to $PATH and source ~/.bash_profile    
brew install libxslt

У кого-нибудь есть хорошая идея?

...