简体   繁体   English

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

[英]error while installing GNS3 server from GitHub using pypi2pkgbuild to create PKGBUILD and install everything via pacman

I'm trying to install GNS3 on my Manjaro machine.我正在尝试在我的 Manjaro 机器上安装 GNS3。 I followed along with this medium blog https://medium.com/@Ninja/install-gns3-on-arch-manjaro-linux-the-right-way-c5a3c4fa337d我跟着这个中等博客https://medium.com/@Ninja/install-gns3-on-arch-manjaro-linux-the-right-way-c5a3c4fa337d

the problem is when I use the command "pypi2pkgalias git+file://$PWD" in steps 16 and 17 to install GNS3 Server from GitHub using pypi2pkgbuild to create PKGBUILD and install everything via pacman, I always get that error!问题是当我在步骤 16 和 17 中使用命令“pypi2pkgalias git+file://$PWD”从 GitHub 安装 GNS3 服务器时,使用 pypi2pkgbuild 创建 PKGBUILD 并通过 pacman 安装所有内容,我总是收到那个错误!

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'

can you help me please with that?你能帮我吗?

I am running 5.5.16–1-MANJARO, so I cannot speak for others.我正在运行 5.5.16–1-MANJARO,所以我不能代表其他人发言。

Look into the github repo closed issues and just substitute the installation command with yay -S python-pypi2pkgbuild-git --noconfirm .查看 github repo 关闭的问题,只需将安装命令替换为yay -S python-pypi2pkgbuild-git --noconfirm

Everything works fine then for me.对我来说一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM