4월, 2020의 게시물 표시

구름 IDE PHP 컨테이너에서의 mysqli 함수 사용

Uncaught Error: Call to undefined function mysqli_connect() in /workspace/container/index.php: 위와 같은 에러가 나는 경우는 php7.3-mysql 설치를 해주면 해결 된다. 방법 sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.3- 만약 add-apt-repository 할 때 인증키 에러가 난다면 GPG Key 등록을 해 주어야 하며 방법은 다음 링크 참조 Ubuntu GPG Key 등록하기 :  https://sosotip.blogspot.com/2020/04/goorm-ide-apt-get.html

Goorm IDE 에서 apt-get 사용시 공개키 인증 오류 (GPG Key error)

구름 IDE 터미널에서 apt, add-apt-repository 명령어 사용시 아래와 같은 메세지가 나오는 경우가 있다. 우분투 패키지 관리 프로그램인 apt 에서 추가되는 저장소의 GPG Key 가 등록되지 않아서 그런 경우다. 메세지 내용은 아래와 같다. 오류:4 https://cli-assets.heroku.com/apt ./ InRelease 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 5DC22404A6FA 위에 표시된 키를 등록해 주면 된다. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5DC22404A6FA 위에 표시된 키를 등록해 주면 된다. 이후 add-apt-repository 등이 정상적으로 되는 것을 확인 할 수 있다.