He intentado instalar clang_select
en macOS 13.4.1 de esta manera:
> sudo port install clang_select
---> Cleaning clang_select
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
pero cuando uso este comando en la terminal:
> clang_select 16
zsh: command not found: clang_select
Ya he añadido la ruta /opt/local/bin
, ¿por qué sigue existiendo este problema? estas son las configuraciones de $PATH
:
> echo $PATH
/opt/local/bin:/opt/local/sbin:/Users/xiaoqiangjiang/Library/pnpm:/Users/xiaoqiangjiang/.yarn/bin:/Users/xiaoqiangjiang/.config/yarn/global/node_modules/.bin:/Users/xiaoqiangjiang/anaconda3/bin:/Users/xiaoqiangjiang/.sdkman/candidates/java/current/bin:/Users/xiaoqiangjiang/.nvm/versions/node/v16.14.2/bin:/Users/xiaoqiangjiang/fvm/default/bin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/ruby/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/xiaoqiangjiang/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/xiaoqiangjiang/Library/Application Support/JetBrains/Toolbox/scripts:/Users/xiaoqiangjiang/.orbstack/bin:/Users/xiaoqiangjiang/Library/Python/3.10/bin:/Users/xiaoqiangjiang/.local/bin:/Users/xiaoqiangjiang/.pub-cache/bin:/Users/xiaoqiangjiang/.yarn/bin:/Users/xiaoqiangjiang/source/third-party/depot_tools:/Users/xiaoqiangjiang/Library/Python/3.10/bin:/Users/xiaoqiangjiang/.local/bin
esta es la versión de port
:
> port version
Version: 2.9.3
También he intentado esto:
> echo 'export PATH="/opt/local/bin:/opt/local/sbin:$PATH"' >> ~/.zshrc
> source .zshrc
> clang_select
zsh: command not found: clang_select
todavía no puedo usar el comando clang_select
.