码迷,mamicode.com
首页 > 系统相关 > 详细

mac go环境报警告

时间:2019-01-04 21:27:38      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:git   get   gre   ase   and   linking   dev   rod   car   

go get -u github.com/beego/bee

报警告:

# github.com/beego/bee
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.

 

解决办法:

Option 1:

sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.old
xcode-select --install
sudo rm -rf /Library/Developer/CommandLineTools.old

Option 2:

touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
PROD=$(softwareupdate -l |
  grep "\*.*Command Line" |
  head -n 1 | awk -F"*" ‘{print $2}|
  sed -e ‘s/^ *//|
  tr -d ‘\n)
softwareupdate -i "$PROD" --verbose;
rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;

Option 2 has the benefit of working even without a logged in UI and without any scary/slightly dangerous rm -rfs. Option 1 has the benefit of being simpler. The choice is yours.

我试了下都不行  

 

mac go环境报警告

标签:git   get   gre   ase   and   linking   dev   rod   car   

原文地址:https://www.cnblogs.com/mikeluwen/p/10222298.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!