레이블이 pkgutil인 게시물을 표시합니다. 모든 게시물 표시
레이블이 pkgutil인 게시물을 표시합니다. 모든 게시물 표시

mac os 업데이트

# macOS 를 Monterey(12.1) 로 업데이트 했다.

# brew 설치 커맨드 실행하면 xcode 가 오래됐으니 신규버전을 설치하라고 한다.
Error: Your Xcode (12.3) is too outdated.
Please update to Xcode 13.1 (or delete it).
Xcode can be updated from the App Store.

# 하지만 app sotre 에서 xcode 를 update 하면 1시간이 넘도록 진행하다 실패한다.
# xcode 는 아래 apple 홈페이지에서 다운 받아 설치하는 것이 더 빠르다.
# xcode_13.2.1.xip 파일을 다운 후 실행하면 xcode.app 가 풀리고 Applications 로 이동(설치)하면 된다.

# 그리고 CommLineTools 도 삭제하고 다시 설치해야 한다.
# 위 URL 에서 Command Line Tools for Xcode 13.2 다운받아 설치하거나
# xcode-select 로 설치한다.
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
# 버전 확인
pkgutil --pkg-info com.apple.pkg.CLTools_Executables

mac mojave 업데이트 후 ld warning 문제

# 맥 OS mojave 버전업을 하고 go1.11 으로 빌드시
# ld(linker) 수행에서 다음과 같은 에러가 발생한다.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.

# warning 이라 빌드는 되지만 매번 warning 메시지로 불편하다.
# 기존 버전을 삭제하고 xcode 개발툴을 다시 설치한다.
# 해결방법
# CommLineTools 를 삭졔(임시이동후)하여
sudo rm -rf /Library/Developer/CommandLineTools

# xcode 개발툴 다시 설치
xcode-select --install

# 패키지 리스트 보기
pkgutil --pkgs

# pkgutil(맥 패키지 설치 툴)로 CLTools 버전 확인
pkgutil --pkg-info com.apple.pkg.CLTools_Executables

# 또는 xcode build 로 버전 확인
xcodebuild -version

# 위 방법으로도 해결되지 않으면 go 1.11.2 버전을 설치한다.
wget https://dl.google.com/go/go1.11.2.darwin-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -zxvf go1.11.2.darwin-amd64.tar.gz

# 또는 brew 사용시
brew upgrade go

# go version 으로 버전 확인
go version go1.11.2 darwin/amd64