-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Comments
Can confirm make install fails.
|
Looks like you don't have golang installed? |
Hi Daniel, I have v1.23.4 installed:
This issue doesn't prevent me from building podman - Running Or perhaps the docs could be changed to include something like this command:
|
Please open a PR to change the docs. |
…ed to the PATH environment variable. Since the environment isn't preserved with `sudo make install`, `GO ?= go` in the podman Makefile (commit: d3cd5098f0abb54279ce4abe594d309e2bc027b0) will not have a value, causing the command to fail. Fixes: containers/podman#24913 Signed-off-by: James Flowers <[email protected]>
…ed to the PATH environment variable. Since the environment isn't preserved with `sudo make install`, `GO ?= go` in the podman Makefile (commit: d3cd5098f0abb54279ce4abe594d309e2bc027b0) will not have a value, causing the command to fail. Fixes: containers/podman#24913 Signed-off-by: James Flowers <[email protected]>
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
sudo go env GOOS
without having /usr/local/go/bin added to secure_pathDescribe the results you received
The issue in the Makefile is with these two lines:
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
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
virt-manager
The text was updated successfully, but these errors were encountered: