Homebrew
를 이용 중이라면 먼저 다음과 같이 기본적으로 필요한
라이브러리들을 설치해야 합니다.xcode-select --install
brew install automake autoconf curl pcre bison re2c mhash libtool icu4c gettext jpeg openssl libxml2 mcrypt gmp libevent
brew link icu4c
brew link --force openssl
brew link --force libxml2
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
# phpbrew를 $PATH로 옮깁니다.
sudo mv phpbrew /usr/local/bin/phpbrew
phpbrew init
echo "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.bashrc
source ~/.phpbrew/bashrc
phpbrew update
phpbrew known
phpbrew variants
phpbrew install 7.3 +default
phpbrew list
phpbrew switch php-7.3.0
Error: Configure failed:
The last 5 lines in the log file:
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
brew install BZip2
로 설치해주세요.phpbrew install 7.3 +default +bz2=/usr/local/Cellar/bzip2/1.0.6_1/
Error: Configure failed:
The last 5 lines in the log file:
checking whether to enable zend-test extension... no
checking for zip archive read/writesupport... yes
checking pcre install prefix... /usr/local
checking libzip... yes
checking for the location of zlib... configure: error: zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
zlib
의 경로를 같이 적어야
합니다.brew install zlib
로 설치해주세요.phpbrew install 7.3 +default +bz2=/usr/local/Cellar/bzip2/1.0.6_1/ +zlib=/usr/local/Cellar/zlib/1.2.11/
Error: Configure failed:
The last 5 lines in the log file:
and XSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
libxsl2
를 설치한 후에 실행할 때 환경변수를 잡아주면 됩니다.brew install libxsl2
XSL_CFLAGS=-I/usr/local/opt/libxslt/include XSL_LIBS=-L/usr/local/opt/libxslt/lib phpbrew install 7.4.8
Error: Configure failed:
The last 5 lines in the log file:
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
openssl
을 설치한 후에 실행할 때 환경변수를 잡아주면 됩니다.OPENSSL_CFLAGS=-I/usr/local/opt/openssl@1.1/include OPENSSL_LIBS=-L/usr/local/opt/openssl@1.1/lib phpbrew install 7.4.8
Error: Configure failed:
The last 5 lines in the log file:
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
libxml
을 설치한 후에 실행할 때 환경변수를 잡아주면 됩니다.LIBXML_CFLAGS=-I/usr/local/opt/libxml2/include LIBXML_LIBS=-L/usr/local/opt/libxml2/lib phpbrew install 7.4.8
자바스크립트로 직접 만들면서 배우는 - 자료구조와 알고리즘 강의 바로 가기
실습으로 마스터하는 OAuth 2.0: 기본부터 보안 위험까지 - OAuth 2.0 강의 바로 가기
기계인간 이종립, 소프트웨어 개발의 지혜 - Git 강의 바로 가기
코드숨에서 매주 스터디를 진행하고 있습니다. 메일을 등록하시면 새로운 스터디가 시작될 때 알려드릴게요!