Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems installing Pycharm

I am trying to install pycharm on my linux OS. following the instructions pycharm/dowload. Since I run a linux machine I made sure the pychrarm files in the current directory:

ietX220:~$ ls
Desktop pycharm-community-4.0.1
Documents Music
pycharm-community- 4.0.1.tar.gz
Downloads New Folder Templates
Dropbox octave-workspace Videos
examples.desktop Pictures VirtualBox VMs
jdk1.8.0_25 Public Win7-PV2hh-6c3HY-
QJHM9-8RJJH-P86W8.iso

ietX220:~$ pycharm-*.tar.gz
pycharm-community-4.0.1.tar.gz: command not found

As you can see the pycharm file is in the current(home) directory but is not found.

Then I opened the tar file made pycharm.sh executable:

chmod +x pycharm.sh

And then ran:

~/pycharm-community-4.0.1/bin$ ./pycharm.sh

Startup Error: Application cannot start in headless mode

What am I doing wrong?

like image 530
icypy Avatar asked Jan 01 '15 02:01

icypy


1 Answers

I am having the same issue. It looks like maybe you and I both have a minimal (headless) Java install on our systems. Use your system's method for finding installed packages and search for Java, and i'll bet you find only openjdk-headless

yum list installed | grep openjdk
# or on debian-based systems
# dpkg --get-selections | grep openjdk
# =>java-1.7.0-openjdk-headless

Solution then is to install the same package without the "-headless" suffix.

Here's where I am getting my information for the solution: https://bugzilla.redhat.com/show_bug.cgi?id=1177379

like image 73
mkprz Avatar answered Sep 20 '22 02:09

mkprz