skip to Main Content

I have followed both of these guides to install custom versions of podman on centos7

I have had more luck with the latter but i get stuck toward the end of the process when i run either of these two commands

make BUILDTAGS="selinux seccomp"
make BUILDTAGS=""

I get this error

fatal: Not a git repository (or any of the parent directories): .git
Podman is being compiled without the systemd build tag. Install libsystemd on Ubuntu or systemd-devel on rpm based distro for journald support.
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build

-ldflags ‘ -X github.com/containers/podman/v4/libpod/define.buildInfo=1683922470 -X github.com/containers/podman/v4/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/v4/libpod/config._etcDir=/usr/local/etc -X github.com/containers/common/pkg/config.additionalHelperBinariesDir= ‘
-tags ""
-o bin/podman ./cmd/podman
go build github.com/proglottis/gpgme:
# pkg-config –cflags — gpgme
Package gpgme was not found in the pkg-config search path.
Perhaps you should add the directory containing `gpgme.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘gpgme’ found
pkg-config: exit status 1

Now i have looked online and people have said it is because gpgme isn’t installed. However it is. I have also followed the path of removing and reinstalling

sudo yum remove gpgme-devel -y

sudo yum -y install https://cbs.centos.org/kojifiles/packages/gpgme/1.7.1/0.el7.centos.1/x86_64/gpgme-1.7.1-0.el7.centos.1.x86_64.rpm

sudo yum -y install https://cbs.centos.org/kojifiles/packages/gpgme/1.7.1/0.el7.centos.1/x86_64/gpgme-devel-1.7.1-0.el7.centos.1.x86_64.rpm

Howevet if i search for gpgme.pc i can not not locate it

sudo find / -name gpgme*

I have struggled with this for days. Any help would be appreciated.

thanks

2

Answers


  1. I have the same issue. Seems that the rpm packages for CentOS don’t contain the file gpgme.pc.
    I read somewhere that you can get the file from Fedora and put it in the directory, I will test that and update.

    Login or Signup to reply.
  2. Hi trying to install podman 4.7 version on centos7 but looks like am getting below error while running
    make BUILDTAGS="selinux seccomp" command

    [root@centos7 podman-4.7.0]# make BUILDTAGS="selinux seccomp"
    fatal: Not a git repository (or any of the parent directories): .git
    Podman is being compiled without the systemd build tag. Install libsystemd on Ubuntu or systemd-devel on rpm based distro for journald support.
    CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build

    -ldflags ‘ -X github.com/containers/podman/v4/libpod/define.buildInfo=1699949003 -X github.com/containers/podman/v4/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/v4/libpod/config._etcDir=/etc -X github.com/containers/podman/v4/pkg/systemd/quadlet._binDir=/usr/local/bin -X github.com/containers/common/pkg/config.additionalHelperBinariesDir= ‘
    -tags "selinux seccomp"
    -o bin/podman ./cmd/podman
    go build github.com/proglottis/gpgme:

    pkg-config –cflags — gpgme

    Package gpgme was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gpgme.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘gpgme’ found
    pkg-config: exit status 1
    make: *** [bin/podman] Error 1

    i have uninstalled gpgme-devel pqackage and installed with 1.7 version but after that also same issue and below are the gpg packages installed
    gpgme-1.7.1-0.el7.centos.1.x86_64
    gpgme-devel-1.7.1-0.el7.centos.1.x86_64

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search