玩轉linux之編譯過程中遇到缺包問題
阿新 • • 發佈:2022-03-27
當編譯遇到缺包問題後:
如:
Program xmlto found: NO
doc/meson.build:4:0: ERROR: Program 'xmlto' not found or not executable
根據提示資訊:
在ubuntu下使用
apt-cache search xxx
上面例子可以使用 :sudo apt-cache search xmlto
libocct-ocaf-7.5 - Open CASCADE Technology application-specific data and functionality liboce-ocaf11 - OpenCASCADE Community Edition CAE platform shared library libxmltok1 - XML Parser Toolkit, runtime libraries libxmltok1-dev - XML Parser Toolkit, developer libraries libxmltooling-dev - C++ XML parsing library with encryption support (development) libxmltooling-doc - C++ XML parsing library with encryption support (API docs) libxmltooling10 - C++ XML parsing library with encryption support (runtime) python3-xmltodict - Makes working with XML feel like you are working with JSON (Python 3) xmlto - XML-to-any converter xmltoman - simple XML to man converter xmltooling-schemas - XML schemas for XMLTooling
然後找到相應的包安裝即可
sudo apt install xxx
上面例子找到然後執行
sudo apt install xmlto
如果上述方法沒有用,那麼只能上網下載所需的包進行編譯安裝。