I am new to ubuntu.i have installed phpstorm and try to run composer but it's not running

2.5k views Asked by At

I have installed phpstorm in ubuntu 14.04 Error when i try to acces to database using command php artisan migrate:

 wwwsabininfonp@wwwsabininfonp-Aspire-E1-471:/opt/lampp/htdocs/fine-arts$ php artisan migrate                                                                                                             
  [PDOException]                                                                                               
  SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)  

and when i tried to use command composer update following error occurs:

    Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - gregwar/captcha dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - gregwar/captcha dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - Installation request for gregwar/captcha dev-master -> satisfiable by gregwar/captcha[dev-master].

I dont know why is this code is scolding me.....

1

There are 1 answers

3
taddeus On BEST ANSWER

The error says that you need the "gd" extension for PHP. You should be able to install it like this:

sudo apt-get install php5-gd