失败:介子安装
FAILED: meson-install
我想从 GNOME 源代码安装图腾应用程序。
我从 GNOME github 克隆了 totem 应用程序的源代码,并使用 messon 和 ninja 命令编译,所有这些都成功编译。
问题是当我调用命令 meson install 时,有一次它中断了。
我遵循的步骤:
git clone https://github.com/GNOME/totem.git
cd totem
meson builddir
ninja
ninja test
cd ..
meson compile
cd builddir
sudo ninja install
发生的错误:
Traceback (most recent call last):
File "/usr/bin/meson", line 20, in <module>
sys.exit(mesonmain.main())
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 226, in main
return run(sys.argv[1:], launcher)
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 215, in run
return run_script_command(args[1], args[2:])
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 163, in run_script_command
return module.run(script_args)
File "/usr/lib/python3/dist-packages/mesonbuild/scripts/yelphelper.py", line 130, in run
merge_translations(build_subdir, abs_sources, langs)
File "/usr/lib/python3/dist-packages/mesonbuild/scripts/yelphelper.py", line 57, in merge_translations
subprocess.call([
File "/usr/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'itstool'
FAILED: meson-install
/usr/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
注意:我在两台 PC 上试过 (ubuntu 20.04),在一台 PC 上运行正常,另一台出现错误。
您似乎缺少图腾的构建依赖项之一:itstool (converts xml localization (language translations) data); dependent through usage of i18 module here。您可以使用
安装它
sudo apt-get install itstool
Here 是其他 必需的 依赖项的列表(尽管最新或其他软件包版本可能有效也可能无效)。
我想从 GNOME 源代码安装图腾应用程序。
我从 GNOME github 克隆了 totem 应用程序的源代码,并使用 messon 和 ninja 命令编译,所有这些都成功编译。
问题是当我调用命令 meson install 时,有一次它中断了。
我遵循的步骤:
git clone https://github.com/GNOME/totem.git
cd totem
meson builddir
ninja
ninja test
cd ..
meson compile
cd builddir
sudo ninja install
发生的错误:
Traceback (most recent call last):
File "/usr/bin/meson", line 20, in <module>
sys.exit(mesonmain.main())
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 226, in main
return run(sys.argv[1:], launcher)
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 215, in run
return run_script_command(args[1], args[2:])
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 163, in run_script_command
return module.run(script_args)
File "/usr/lib/python3/dist-packages/mesonbuild/scripts/yelphelper.py", line 130, in run
merge_translations(build_subdir, abs_sources, langs)
File "/usr/lib/python3/dist-packages/mesonbuild/scripts/yelphelper.py", line 57, in merge_translations
subprocess.call([
File "/usr/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'itstool'
FAILED: meson-install
/usr/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
注意:我在两台 PC 上试过 (ubuntu 20.04),在一台 PC 上运行正常,另一台出现错误。
您似乎缺少图腾的构建依赖项之一:itstool (converts xml localization (language translations) data); dependent through usage of i18 module here。您可以使用
安装它sudo apt-get install itstool
Here 是其他 必需的 依赖项的列表(尽管最新或其他软件包版本可能有效也可能无效)。