Skip to content

Instantly share code, notes, and snippets.

@davidxia
Created September 7, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidxia/0cb1940e4738d0e2467a9d4290b4a06d to your computer and use it in GitHub Desktop.
Save davidxia/0cb1940e4738d0e2467a9d4290b4a06d to your computer and use it in GitHub Desktop.
Pycharm installation via Homebrew doesn't install CLI commands
dxia@Davids-MacBook-Pro ~> brew install --cask pycharm-ce (base)
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
age cppzmq
==> Updated Formulae
Updated 40 formulae.
==> New Casks
archi far2l
==> Updated Casks
Updated 46 casks.
==> Downloading https://download.jetbrains.com/python/pycharm-community-2021.2.1-aarch64.dmg
==> Downloading from https://download-cdn.jetbrains.com/python/pycharm-community-2021.2.1-aarch64.dmg
######################################################################## 100.0%
==> Installing Cask pycharm-ce
==> Moving App 'PyCharm CE.app' to '/Applications/PyCharm CE.app'
🍺 pycharm-ce was successfully installed!
# No CLI commands created
dxia@Davids-MacBook-Pro ~> which charm (base)
dxia@Davids-MacBook-Pro ~ [1]> which pycharm (base)
dxia@Davids-MacBook-Pro ~ [127]> brew info pycharm-ce (base)
pycharm-ce: 2021.2.1,212.5080.64 (auto_updates)
https://www.jetbrains.com/pycharm/
/opt/homebrew/Caskroom/pycharm-ce/2021.2.1,212.5080.64 (124B)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/pycharm-ce.rb
==> Names
Jetbrains PyCharm Community Edition
PyCharm CE
==> Description
IDE for Python programming - Community Edition
==> Artifacts
PyCharm CE.app (App)
==> Analytics
install: 1,324 (30 days), 3,480 (90 days), 12,239 (365 days)
# Let's try creating a symlink
dxia@Davids-MacBook-Pro ~ [1]> ln -fs /opt/homebrew/Caskroom/pycharm-ce/2021.2.1,212.5080.64/PyCharm\ CE.app/Contents/MacOS/pycharm /opt/homebrew/bin/pycharm (base)
dxia@Davids-MacBook-Pro ~> la /opt/homebrew/bin (base)
total 8
drwxrwxr-x 13 dxia admin 416B Sep 7 10:47 .
drwxr-xr-x 31 dxia admin 992B Sep 6 13:31 ..
-rw-r--r-- 1 dxia admin 0B Sep 6 13:33 .keepme
-rwxr-xr-x 1 dxia admin 3.9K Sep 6 13:31 brew
lrwxr-xr-x 1 dxia admin 52B Sep 6 18:56 conda -> /opt/homebrew/Caskroom/miniforge/base/condabin/conda
lrwxr-xr-x 1 dxia admin 29B Sep 6 13:33 fish -> ../Cellar/fish/3.3.1/bin/fish
lrwxr-xr-x 1 dxia admin 36B Sep 6 13:33 fish_indent -> ../Cellar/fish/3.3.1/bin/fish_indent
lrwxr-xr-x 1 dxia admin 40B Sep 6 13:33 fish_key_reader -> ../Cellar/fish/3.3.1/bin/fish_key_reader
lrwxr-xr-x 1 dxia admin 72B Sep 6 13:36 github -> /Applications/GitHub Desktop.app/Contents/Resources/app/static/github.sh
lrwxr-xr-x 1 dxia admin 40B Sep 6 13:33 pcre2-config -> ../Cellar/pcre2/10.37_1/bin/pcre2-config
lrwxr-xr-x 1 dxia admin 37B Sep 6 13:33 pcre2grep -> ../Cellar/pcre2/10.37_1/bin/pcre2grep
lrwxr-xr-x 1 dxia admin 37B Sep 6 13:33 pcre2test -> ../Cellar/pcre2/10.37_1/bin/pcre2test
lrwxr-xr-x 1 dxia admin 92B Sep 7 10:47 pycharm -> /opt/homebrew/Caskroom/pycharm-ce/2021.2.1,212.5080.64/PyCharm CE.app/Contents/MacOS/pycharm
# Hm doesn't work
dxia@Davids-MacBook-Pro ~> cd /tmp (base)
dxia@Davids-MacBook-Pro /tmp> pycharm . (base)
2021-09-07 10:47:22.244 pycharm[2503:22618] allVms required (null)
2021-09-07 10:47:22.245 pycharm[2503:22618] Can't find bundled java.The folder doesn't exist: /opt/homebrew/bin/Contents/jbr
2021-09-07 10:47:22.245 pycharm[2503:22618] Can't get bundled java version. It is probably corrupted.
2021-09-07 10:47:22.246 pycharm[2503:22618] Info.plist is corrupted, Absent JVMOptions key.
dxia@Davids-MacBook-Pro /tmp [255]> pycharm . (base)
2021-09-07 10:47:47.110 pycharm[2532:23236] allVms required (null)
2021-09-07 10:47:47.110 pycharm[2532:23236] Can't find bundled java.The folder doesn't exist: /opt/homebrew/bin/Contents/jbr
2021-09-07 10:47:47.110 pycharm[2532:23236] Can't get bundled java version. It is probably corrupted.
2021-09-07 10:47:47.113 pycharm[2532:23236] Info.plist is corrupted, Absent JVMOptions key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment