我是ubuntu.i的新手已安装phpstorm并尝试运行composer但它没有运行

时间:2015-06-12 11:30:16

标签: php ubuntu laravel migration artisan

我在ubuntu 14.04中安装了phpstorm 当我尝试使用命令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)  

当我尝试使用命令编辑器更新时发生以下错误:

    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].

我不知道为什么这段代码会骂我......

1 个答案:

答案 0 :(得分:7)

错误说您需要PHP的“gd”扩展名。您应该可以像这样安装它:

height