- doghead 是在mac 下跑各种数据的
- 因此,在配置了环境后, 进行mac 构建
【doghead】mac构建, - 首先对mac的clion进行安装
mac 下安装clion2024.1
- 之前可能装过crack的clion
- 教育优惠的clion跟之前的应该不同
- clion2024.1 在mac的新系统下崩溃
- google下竟然没有人遇到,
- 感觉不是mac系统的问题
有大神建议先清理各种环境配置
-
看了下我的环境跟jetbrain没有啥关联:
bash
zhangbin@zhangbin-mbp-2 ~/Library/LaunchAgents ls
com.google.GoogleUpdater.wake.plist
com.google.keystone.agent.plist
com.google.keystone.xpcservice.plist
com.jetbrains.toolbox.plist
com.tencent.Lemon.trash.plist
homebrew.mxcl.grafana.plist
homebrew.mxcl.mongodb-community@4.0.plist
homebrew.mxcl.rabbitmq.plist
bash
zhangbin@zhangbin-mbp-2 ~ cat ~/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/zhangbin/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#export PATH="/usr/local/opt/mongodb-community@3.6/bin:$PATH"
export PATH="/usr/local/opt/mongodb-community@4.0/bin:$PATH"
alias g++='g++ -std=c++17'
bash
zhangbin@zhangbin-mbp-2 ~ cat ~/.bash_profile
export PATH=/usr/local/opt/gettext/bin:/Users/zhangbin/tet/webrtc_build/depot_tools:/usr/local/opt/mongodb-community@4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS
zhangbin@zhangbin-mbp-2 ~ cat ~/.zshrc.pre-oh-my-zsh
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/zhangbin/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
zhangbin@zhangbin-mbp-2 ~
zhangbin@zhangbin-mbp-2 ~ cd /Users/zhangbin/Library/Application\ Support/JetBrains/CLion2020.2
- 换到root账户也是如此:
bash
✘ zhangbin@zhangbin-mbp-2 ~/Library/PreferencePanes cd /Users/zhangbin/Library/LaunchAgents
zhangbin@zhangbin-mbp-2 ~/Library/LaunchAgents ls
com.google.GoogleUpdater.wake.plist
com.google.keystone.agent.plist
com.google.keystone.xpcservice.plist
com.jetbrains.toolbox.plist
com.tencent.Lemon.trash.plist
homebrew.mxcl.grafana.plist
homebrew.mxcl.mongodb-community@4.0.plist
homebrew.mxcl.rabbitmq.plist
zhangbin@zhangbin-mbp-2 ~/Library/LaunchAgents export
DISPLAY=/private/tmp/com.apple.launchd.5Kn9xiF0wW/org.macosforge.xquartz:0
HOME=/Users/zhangbin
LANG=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8
LESS=-R
LOGNAME=zhangbin
LSCOLORS=Gxfxcxdxbxegedabagacad
OLDPWD=/Users/zhangbin/Library/PreferencePanes
PAGER=less
PATH='/usr/local/opt/mongodb-community@4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS'
PWD=/Users/zhangbin/Library/LaunchAgents
SHELL=/bin/zsh
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.AUErjvFUJE/Listeners
TERM=xterm-256color
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=445.1
TERM_SESSION_ID=AFD40EEE-F784-4F9D-A83F-86330916A6CF
TMPDIR=/var/folders/c6/dg7ltn4n69g1sxkxc10wzjfr0000gn/T/
USER=zhangbin
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
ZSH=/Users/zhangbin/.oh-my-zsh
__CFBundleIdentifier=com.apple.Terminal
zhangbin@zhangbin-mbp-2 ~/Library/LaunchAgents cd root
cd: no such file or directory: root
✘ zhangbin@zhangbin-mbp-2 ~/Library/LaunchAgents sudo su
Password:
sh-3.2# export
export DISPLAY="/private/tmp/com.apple.launchd.5Kn9xiF0wW/org.macosforge.xquartz:0"
export HOME="/var/root"
export LANG="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
export LOGNAME="root"
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export MAIL="/var/mail/root"
export OLDPWD
export PATH="/usr/local/opt/mongodb-community@4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS"
export PWD="/Users/zhangbin/Library/LaunchAgents"
export SHELL="/bin/sh"
export SHLVL="1"
export SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.AUErjvFUJE/Listeners"
export SUDO_COMMAND="/usr/bin/su"
export SUDO_GID="20"
export SUDO_UID="501"
export SUDO_USER="zhangbin"
export TERM="xterm-256color"
export USER="root"
export __CF_USER_TEXT_ENCODING="0x0:25:52"
sh-3.2# ls ~
.CFUserTextEncoding .npm Desktop
.InstallAnywhere .oracle_jre_usage Documents
.bash_history .sh_history Downloads
.config .ssh Library
.forward .viminfo Parallels
.gem Application Support go
sh-3.2# exit
exit
IntelliJIdea2020.2
- 发现这位大神的情况跟我类似 :
- 大神建议仅删除这个就可以:
bash
/Users/chenhuigu/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
- 我看了下 有个2020.2还有个2024.1 的:
- 这个我直接删掉了整个目录:
bash
/Users/zhangbin/Library/Application\ Support/JetBrains/CLion2020.2