I installed pycharm normally via bin/pycharm.sh, but the mistake I made was doing bash pycharm.sh while the pycharm directory has inside the D
bin/pycharm.sh
bash pycharm.sh
sudo vim `which charm`
Now edit the RUN_PATH.
RUN_PATH