Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Add commands to install dependencies#31

Open
tonghuaroot wants to merge 1 commit intobyt3bl33d3r:masterfrom
tonghuaroot:patch-1
Open

Add commands to install dependencies#31
tonghuaroot wants to merge 1 commit intobyt3bl33d3r:masterfrom
tonghuaroot:patch-1

Conversation

@tonghuaroot
Copy link
Copy Markdown

Otherwise, the following error will occur

    In file included from src/lxml/etree.c:692:
    src/lxml/includes/etree_defs.h:14:10: fatal error: libxml/xmlversion.h: No such file or directory
       14 | #include "libxml/xmlversion.h"
          |          ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    Compile failed: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitj888dyzk.c -o tmp/xmlXPathInitj888dyzk.o
    /tmp/xmlXPathInitj888dyzk.c:1:10: fatal error: libxml/xpath.h: No such file or directory
        1 | #include "libxml/xpath.h"
          |          ^~~~~~~~~~~~~~~~
    compilation terminated.
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w42dfc_p/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w42dfc_p/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-241rhyn_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/kali/.local/include/python3.9/lxml Check the logs for full command output.

Otherwise, the following error will occur
```
    In file included from src/lxml/etree.c:692:
    src/lxml/includes/etree_defs.h:14:10: fatal error: libxml/xmlversion.h: No such file or directory
       14 | #include "libxml/xmlversion.h"
          |          ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    Compile failed: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitj888dyzk.c -o tmp/xmlXPathInitj888dyzk.o
    /tmp/xmlXPathInitj888dyzk.c:1:10: fatal error: libxml/xpath.h: No such file or directory
        1 | #include "libxml/xpath.h"
          |          ^~~~~~~~~~~~~~~~
    compilation terminated.
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w42dfc_p/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w42dfc_p/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-241rhyn_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/kali/.local/include/python3.9/lxml Check the logs for full command output.
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant