【doghead】mac: clion2024.1启动崩溃

embedded/2024/9/25 4:33:02/
  • doghead 是在mac 下跑各种数据的
  • 因此,在配置了环境后, 进行mac 构建
    【doghead】mac构建,
  • 首先对mac的clion进行安装

mac 下安装clion2024.1

  • 之前可能装过crack的clion
  • 教育优惠的clion跟之前的应该不同
  • clion2024.1 在mac的新系统下崩溃
  • google下竟然没有人遇到,
  • 感觉不是mac系统的问题

有大神建议先清理各种环境配置

  • 看了下我的环境跟jetbrain没有啥关联:

 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  ~  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'
 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/MacOSzhangbin@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账户也是如此:
 ✘ 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.plistzhangbin@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.Terminalzhangbin@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

  • 发现这位大神的情况跟我类似 :
  • 大神建议仅删除这个就可以:
/Users/chenhuigu/Library/Application Support/JetBrains/IntelliJIdea2020.2/idea.vmoptions
  • 我看了下 有个2020.2还有个2024.1 的:
  • 这个我直接删掉了整个目录:
/Users/zhangbin/Library/Application\ Support/JetBrains/CLion2020.2 

http://www.ppmy.cn/embedded/33181.html

相关文章

多模态大模型是新一代人工智能技术范式

大家好,我是爱编程的喵喵。双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中。从事机器学习以及相关的前后端开发工作。曾在阿里云、科大讯飞、CCF等比赛获得多次Top名次。现为CSDN博客专家、人工智能领域优质创作者。…

Ubuntu18.04 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 解决方法

解决办法: ssh-keygen -R 192.168.11.11 注意根据自己的实际地址 参考博客:【linux】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 解决方法_warning: remote host identification has changed!-CSDN博客

Web后端开发中对三层架构解耦之控制反转与依赖注入

内聚与耦合 内聚 比如说我们刚刚书写的员工的实现类 在这里我们仅仅书写的是和员工相关的代码 而与员工无关的代码都没有放到这里 说明内聚程度较高 耦合 以后软件开发要高内聚 低耦合 提高程序灵活性 扩拓展性 分析代码 如何解耦 创建容器 提供一个容器 存储东西 存储E…

C语言之数据结构之栈和队列的运用

目录 1. 用队列实现栈1.1 思路讲解1.2 代码实现 2. 用栈实现队列1.1 思路讲解1.2 代码实现 总结 •͈ᴗ•͈ 个人主页:御翮 •͈ᴗ•͈ 个人专栏:C语言数据结构 •͈ᴗ•͈ 欢迎大家关注和订阅!!! 1. 用队列实现栈 题目描述: 请你仅使用两个…

秋招后端开发面试题 - Java IO

目录 Java IO前言面试题Java IO 流?字节流 vs 字符流区别?字节缓冲流 vs 字符缓冲流?打印流?System.out.println() 是什么?随机访问流?管道流?讲讲 Filter 流?常见的 IO 模型&#x…

stable diffusion controlnet前处理中的图像resize

在SD controlnet应用中,一般都要先安装controlnet_aux,并在项目代码中import相关前处理模块,如下所示。 在对control image进行前处理(比如找边缘,人体特征点)之前,往往会图像进行resize&#x…