使用pypi2pkgbuild从GitHub安装GNS3服务器以创建PKGBUILD并通过pacman安装所有内容时出错



我正试图在我的Manjaro机器上安装GNS3。我关注了这个媒体博客https://medium.com/@Ninja/install-gns3-on-arch-manjaro-linux-the-right-way-c5a3c4fa37d

问题是,当我在步骤16和17中使用命令"pypi2pkgalias git+file://$PWD"从GitHub安装GNS3服务器时,我总是会收到错误!

Cloning into 'gns3-gui'...
remote: Enumerating objects: 36655, done.
remote: Counting objects: 100% (36655/36655), done.
remote: Compressing objects: 100% (7135/7135), done.
remote: Total 36655 (delta 29225), reused 36655 (delta 29225)
Receiving objects: 100% (36655/36655), 57.32 MiB | 37.43 MiB/s, done.
Resolving deltas: 100% (29225/29225), done.
Traceback (most recent call last):
File "/usr/bin/pypi2pkgbuild.py", line 1477, in <module>
sys.exit(main())
File "/usr/bin/pypi2pkgbuild.py", line 1454, in main
create_package(name, Options(**vars(args), is_dep=False))
File "/usr/bin/pypi2pkgbuild.py", line 1253, in create_package
pkg = dispatch_package_builder(name, options)
File "/usr/bin/pypi2pkgbuild.py", line 1245, in dispatch_package_builder
ref = PackageRef(
File "/usr/bin/pypi2pkgbuild.py", line 695, in __init__
self.info = _get_info(
File "/usr/bin/pypi2pkgbuild.py", line 601, in _get_info
info = locals()[f"_get_info_{source}"]()
File "/usr/bin/pypi2pkgbuild.py", line 542, in _get_info_git
metadata = _get_metadata(
File "/usr/bin/pypi2pkgbuild.py", line 505, in _get_metadata
"CFLAGS": get_makepkg_conf()["CFLAGS"],
KeyError: 'CFLAGS'

你能帮我吗?

我正在运行5.5.16–1-MANJARO,所以我不能为他人说话。

查看github repo关闭的问题,只需将安装命令替换为yay -S python-pypi2pkgbuild-git --noconfirm

对我来说一切都很好。

相关内容

  • 没有找到相关文章

最新更新