psutil icon indicating copy to clipboard operation
psutil copied to clipboard

Wrong command suggestion on Alpine Linux when installation fails due to missing gcc

Open MrIndeciso opened this issue 9 months ago • 1 comments

When installing psutil on Alpine Linux, if gcc is missing, the output is the following:

      psutil could not be installed from sources because gcc is not installed. Try running:
        sudo apk add gcc p3-dev musl-dev linux-headers
      error: command 'gcc' failed: No such file or directory

But p3-dev is not a valid library, while python3-dev is. I believe that there shouldn't be a * at this line: https://github.com/giampaolo/psutil/blob/3ee19e3cf9b6ce295d3544e556c78e543657b444/setup.py#L226

MrIndeciso avatar Mar 02 '25 13:03 MrIndeciso

I just had the same issue

danmaam avatar Apr 05 '25 17:04 danmaam

Confirming that the issue still exists

x10102 avatar Aug 29 '25 21:08 x10102

Please make a PR

giampaolo avatar Aug 29 '25 21:08 giampaolo

@giampaolo Looks like this was already fixed last week in https://github.com/giampaolo/psutil/commit/357285c5ff31ef8bf1b9c347904062e8d7e818d0

MrIndeciso avatar Aug 29 '25 21:08 MrIndeciso

Thanks I forgot.

giampaolo avatar Aug 30 '25 03:08 giampaolo