-
(맥개발초보팁) gcc toolchain 설치하기개발 팁/맥 2017. 11. 2. 00:29반응형
1) gcc 툴체인 pre-built 바이너리가 있는 아래 주소에 접속한다.
https://launchpad.net/gcc-arm-embedded
2) 화면 오른쪽 'Downloads'에서 'gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2' 다운로드
3) sudo -s 명령으로 루트 권한을 얻고 아래 실행
$ mkdir /usr/local/gcc-arm
$ tar -xjf gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2 -C /usr/local/gcc-arm4) .bash_profile을 아래를 참고하여 수정한다.
export PATH="/usr/local/gcc-arm/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi/bin:/usr/local/gcc-arm/gcc-arm-none-eabi-5_4-2016q3/bin:/anaconda2/bin:$PATH"
5) path 셋팅이 잘 되는지 확인한다.
arm-none-eabi-gcc --version
참고
Mac OS X에 nRF51 개발 환경 설정하기, http://openmicrolab.com/mac-os-x에-nrf51-개발-환경-설정하기/
GNU ARM Embedded Toolchain, https://launchpad.net/gcc-arm-embedded
OSX 터미널에서 su 명령어 사용하기, http://www.coolio.so/osx-터미널에서-su-명령어-사용하기/
반응형'개발 팁 > 맥' 카테고리의 다른 글
맥 High-Sierra에 brew 설치시 permission denied 에러 발생할 때 처리 방법 (0) 2017.12.08 2018 맥북 Xcode 수동 삭제/제거 방법 (0) 2017.12.07 (맥개발초보팁) 맥용 git gui 클라이언트 추천 (2017년 기준) (0) 2017.11.01 (맥개발초보팁) 맥 어플리케이션 설치시 '확인되지 않은 개발자가 배포했기 때문에..' 오류시 설치 방법 (0) 2017.11.01 (맥개발초보팁) 맥용 아나콘다 파이썬 설치 (0) 2017.11.01