no acceptable C compiler found in $PATH when installing python

前端 未结 11 752
野性不改
野性不改 2020-11-28 18:30

I\'m trying to install new python environment on my shared hosting. I follow the steps written in this post:

mkdir ~/src
wget http://www.python.org/ftp/pytho         


        
相关标签:
11条回答
  • 2020-11-28 19:08

    sudo apt install build-essential is the command

    But if you get the "the package can be found" kind of error, Run

    • sudo apt update first
    • then sudo apt install build-essential

    This worked for me.

    0 讨论(0)
  • 2020-11-28 19:08

    Issue :

    configure: error: no acceptable C compiler found in $PATH

    Fixed the issue by executing the following command:

    yum install gcc
    

    to install gcc.

    0 讨论(0)
  • 2020-11-28 19:08

    On Arch Linux run the following:

    sudo pacman -S base-devel

    0 讨论(0)
  • 2020-11-28 19:13

    Get someone with access to the root account on that server to run sudo apt-get install build-essential. If you don't know who has root access, contact the support team for your shared hosting and ask them.

    Edit: If you aren't allowed access to root, you aren't ever going to get it working. You'll have to change hosting provider I'm afraid.

    0 讨论(0)
  • 2020-11-28 19:15

    for Ubuntu / Debian :

    # sudo apt-get install build-essential
    

    For RHEL/CentOS

    #rpm -qa | grep gcc
    # yum install gcc glibc glibc-common gd gd-devel -y
    

    or

     # yum groupinstall "Development tools" -y
    

    More details refer the link

    0 讨论(0)
  • 2020-11-28 19:16

    you need to run

    yum install gcc
    
    0 讨论(0)
提交回复
热议问题