Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing podman from source: sudo make install fails #24913

Open
flowejam opened this issue Dec 29, 2024 · 0 comments
Open

Problem installing podman from source: sudo make install fails #24913

flowejam opened this issue Dec 29, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@flowejam
Copy link

flowejam commented Dec 29, 2024

Issue Description

I was following the instructions here, as per the podman contributors guide. It causes a bit of unnecessary friction for newcomers that would be worth fixing I think. A similar issue was encountered previously: #19755 . In my case, the build worked, but installing with this command failed:
sudo make install PREFIX=/usr

I'm willing to submit a PR for this issue but was unsure of whether editing the docs or the Makefile would be preferred.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Run sudo go env GOOS without having /usr/local/go/bin added to secure_path

Describe the results you received

The issue in the Makefile is with these two lines:

GO ?= go                                                                        
NATIVE_GOOS := $(shell env -u GOOS $(GO) env GOOS)

so this error is encountered:
Required variable NATIVE_GOOS value is undefined, whitespace, or empty. Stop.`

Describe the results you expected

A successful installation from source after following the instructions here and running sudo make install PREFIX=/usr.

podman info output

OS: Ubuntu 22.04.5 LTS
Client:       Podman Engine
Version:      5.4.0-dev
API Version:  5.4.0-dev
Go Version:   go1.23.4
Git Commit:   d3cd5098f0abb54279ce4abe594d309e2bc027b0

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

virt-manager

@flowejam flowejam added the kind/bug Categorizes issue or PR as related to a bug. label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant