【问题标题】:Drupal Install Fails with Lando BLT使用 Lando BLT 安装 Drupal 失败
【发布时间】:2020-12-08 16:32:56
【问题描述】:

背景和设置

我正在尝试使用此 Lando BLT Tutorial 从 drupal 启动本地开发环境,以证明 concpet/simple setup 以查看其工作原理,但遇到以下错误。

我目前正在使用以下内容:

  • macOS Big Sur 11.0.1
  • Docker 桌面 2.5.0.1
  • PHP 7.3
  • 作曲家 1.10.19

错误输出

为了便于阅读,我解析了堆栈跟踪

 [info] Sites directory sites/default already exists - proceeding.
 [info] Executing: mysql --defaults-file=/private/tmp/drush_fwtkwh --database=drupal --host=localhost --port=3306 --silent -A < /private/tmp/drush_LyVjVm
 [info] Executing: mysql --defaults-file=/private/tmp/drush_jEVO19 --database=information_schema --host=localhost --port=3306 --silent -A < /private/tmp/drush_Xugn6U
 [warning] Failed to drop or create the database. Do it yourself before installing. dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/mysql
  Reason: image not found
sh: line 1: 71580 Abort trap: 6           mysql --defaults-file=/private/tmp/drush_jEVO19 --database=information_schema --host=localhost --port=3306 --silent -A < /private/tmp/drush_Xugn6U

 [notice] Starting Drupal installation. This takes a while.
/**
 * Database configuration.
 */
  [notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
 [info] Undefined index: value install.core.inc:2303
 [info] Array to string conversion install.core.inc:2303

In install.core.inc line 2307:
                                                        
  [Drupal\Core\Installer\Exception\InstallerException]  
  Database settings:                                    
                                                        
  Array                                                 
                                                        

我的尝试

  • 我曾尝试使用 brew 重新启动 mysql,如果我记得是 brew restart mysql

  • 我也试过mysql.server start

  • 还有brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb。 * 当我运行 brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb 时,它会从 brew 中得到一个使用错误。

  • 当我运行 mysql -u root -p 时,我收到以下信息:

    dyld:库未加载:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib
     引用自:/usr/local/bin/mysql
     原因:找不到图片
     zsh: 中止 mysql -u root -p

如何绕过或解决此错误?如果您想了解更多信息,请告诉我

【问题讨论】:

    标签: php mysql docker drupal lando


    【解决方案1】:

    我遇到了类似的问题,但刚刚更新到 Big Sur 11.1 和最新版本的 Lando (v3.0.24)。我的规格,fwiw:

    • 最新版 Big Sur (11.1)
    • Lando 最新版本 (v3.0.24)
    • 最新版 Docker (3+)
    • 作曲家 1.10.19

    不确定这是否正确,但在所有这些更新之后,我没有运气在容器中使用 mysql——不得不在容器外部使用 Lando 命令使用它。

    【讨论】:

    • 你使用什么版本的 Drupal?那么php呢?我打算今天晚些时候检查一下,看看会发生什么
    • Drupal:8.9.11 / PHP:7.3.25。祝你好运:-)
    猜你喜欢
    • 1970-01-01
    • 2013-07-20
    • 2021-10-28
    • 2022-11-19
    • 2019-01-10
    • 2014-04-06
    • 2014-06-10
    • 2016-01-07
    • 1970-01-01
    相关资源
    最近更新 更多