bash: curl: command not found

    728x90

    해당 원인은

    1. cURL package may not be installed - 해당 패키지가 설치되어 있지 않은 경우

    2. PATH environment variable may be incorrect - 경로가 맞지 않을 경우

     

    1. 해결 방법

    sudo apt install curl -y
    
    sudo apt-get install curl -y
    
    sudo snap install curl
    
    sudo dnf -y curl install
    
    sudo yum -y install curl
    
    sudo pacman -S curl
    
    sudo install zypper curl

     

    2. 해결 방법

    cURL 명령은 /bin/curl시스템에서 호출됩니다. /bin사용자 PATH 변수에 no가 있으면 cURL을 포함한 많은 명령이 작동하지 않습니다.

     

    which culr

     

    which 명령을 사용하여 시스템의 cURL 패키지가 호출된 위치를 확인할 수 있습니다. 또한 cURL 및 유사한 애플리케이션을 호출하기 위해 PATH 정보를 추가해 보겠습니다.

     

    export PATH=$PATH:/bin

     

     

    728x90

    댓글