【问题标题】:I am new to ubuntu.i have installed phpstorm and try to run composer but it's not running我是 ubuntu 的新手。我已经安装了 phpstorm 并尝试运行 composer 但它没有运行
【发布时间】:2015-08-28 09:36:22
【问题描述】:

我已经在 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].

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

【问题讨论】:

    标签: php ubuntu laravel migration laravel-artisan


    【解决方案1】:

    错误提示您需要 PHP 的“gd”扩展。你应该可以这样安装它:

    sudo apt-get install php5-gd
    

    【讨论】:

    • 它适用于作曲家更新,但仍然存在迁移连接问题...谢谢
    • 你确定你已经正确安装和配置了你的 MySQL 服务器吗? mysql服务器是否正在运行? (你可以看到sudo service mysql status
    • 它正在运行.. mysql 启动/运行,进程 1050
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-18
    • 1970-01-01
    相关资源
    最近更新 更多