18

I have a JetBrains PhpStorm 7.1 and I want to install it in Ubuntu 14.04 so I installed wine for windows compatibility and I run PhpStorm-7.1.exe then it was successfully installed (I guess). But when I run the installed PhpStorm it gives me an error it says

Failed to create JVM: error code -1

How can I fix this?

Seth
  • 58,122

9 Answers9

25

Instructions here: https://web.archive.org/web/20161207101644/http://sysads.co.uk:80/2014/08/08/install-phpstorm-7-on-ubuntu-14-04/

Please note that PhpStorm is not FREE, this is a 30-day trial!

Install dependencies

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer oracle-java8-set-default

Install PhpStorm

wget http://download-cf.jetbrains.com/webide/PhpStorm-2017.1.4.tar.gz
tar -xvf PhpStorm-2017.1.4.tar.gz
cd PhpStorm-171.4694.2/bin/
./phpstorm.sh
Melebius
  • 11,431
  • 9
  • 52
  • 78
4

JetBrains are publishing their entire IDE portfolio as snaps, including PHPStorm. Snaps work on all supported versions of Ubuntu, including 14.04. Some of the advantages of the JetBrains snaps are that they are always up to date, will automatically stay updated and are very easy to install.

Install PHPStorm on Ubuntu 14.04:

sudo apt install snapd
sudo snap install phpstorm --classic
Zanna
  • 70,465
  • not sure why --classic option in this case ? Anyway should be considered as best answer now ! – Kojo Jul 31 '18 at 17:22
  • You can also use this method to install previous versions (i.e. if you need to drop back to the perpertual fallback license version). You just need to set the appropriate channel: snap install phpstorm --channel=2019.3/stable --classic – William Mortada Dec 07 '20 at 18:05
  • --classic is needed because this snap was built that way and "may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to" – William Mortada Dec 07 '20 at 18:06
3

Install dependencies

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer oracle-java7-set-default

Install PhpStorm

wget http://download-cf.jetbrains.com/webide/PhpStorm-7.1.3.tar.gz
tar -xvf PhpStorm-7.1.3.tar.gz
cd PhpStorm-133.982/bin
./phpstorm.sh
David Foerster
  • 36,264
  • 56
  • 94
  • 147
KAS
  • 155
1

For new versions:

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

wget http://download-cf.jetbrains.com/webide/PhpStorm-2016.2.tar.gz
tar -xvf PhpStorm-2016.2.tar.gz
cd PhpStorm-145.258.2/bin
./phpstorm.sh

note: if the link is broken try a higher version, current version is 2 as of July 2016. So next version will be PhpStorm-2016.3.tar.gz. And of course make sure that you cd into the right version cd PhpStorm-xxxx/bin

-1

just make sure you pick up the latest phpStorm version. January 27th 2018 - version PhpStorm-2017.3.3.tar.gz

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
wget https://download-cf.jetbrains.com/webide/PhpStorm-2017.3.3.tar.gz

tar -xvf PhpStorm-2017.3.3.tar.gz
cd PhpStorm-173.4301.34/bin
./phpstorm.sh
-1

Install dependencies

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Latest version till July, 29

wget http://download-cf.jetbrains.com/webide/PhpStorm-2016.2.tar.gz
tar -xvf PhpStorm-2016.2.tar.gz
cd PhpStorm-162.1121.38/bin
./phpstorm.sh
Eric
  • 17
-1

If you have java sdk installed (Like Oracle JDK 7/8 or Open JDK 7/8), skip this step and proceed to #3

  1. Open Terminal (CTRL+ALT+T)
  2. Install Open JDK 8

Note:
it is recommended to use Oracle JDK, but Open JDK 8 will do (I am using it now, as well as with my IntelliJ Idea for Java)

$ sudo apt-get install openjdk-8

(enter SUDO password)

  1. You may use the latest version of PHP Storm:
  • Download latest PHP Storm for Linux

    wget https://download-cf.jetbrains.com/webide/PhpStorm-2016.2.2.tar.gz**
    
  • Extract downloaded tar.gz file

    tar -xvf PhpStorm-2016.2.2.tar.gz
    
  • Navigate to bin's folder where phpstorm shell script is located

    cd PhpStorm-162.2380.11/bin/
    
  • Run shell script

    ./phpstorm.sh
    

Good Luck!

Zanna
  • 70,465
-1

Previous links are broken because now is required https. The links with http are dead!

Up to this moment, the latest PHPStorm could be found here:

https://download-cf.jetbrains.com/webide/PhpStorm-2017.2.2.tar.gz

-1

similar script for install or update(auto) jetbrains products like phpstorm, webstorm, IntelliJ Idea and other. + dependencies + non latin hotkeys fixes https://gist.github.com/zabidok/8418c4f679741f585ac9ce90b16fb8a5

zabidok
  • 11