我需要你的帮助。我正在尝试在我的ubuntu20.04机器上安装电子商务。
我按照https://doc.oroinc.com/backend/setup/installation/给出的指令,从orocommerce下载了代码目录(没有git,没有作曲家)。根据isntructions,在配置了我的parameters.yml文件之后,我执行了脚本"sudo php bin/ oro:install -env=prod-timeout=2000-sample=y“,以在我的环境中继续安装,但几秒钟后,安装显示了一个错误。
PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orocommerce.oro_config' doesn't exist in /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117你能帮我理解为什么如果我从零开始安装它需要一个现有的桌子?
我的参数文件
# This file is auto-generated during the composer install
parameters:
database_driver: pdo_mysql
database_host: 'localhost'
database_port: '3306'
database_name: 'orocommerce'
database_user: 'Intcomex'
database_password: 'Intcomex'
database_server_version: '10.3.34'
database_driver_options: { }
mailer_dsn: ''
websocket_bind_address: 0.0.0.0
websocket_bind_port: 8080
websocket_frontend_host: '*'
websocket_frontend_port: 8080
websocket_frontend_path: ''
websocket_backend_host: '*'
websocket_backend_port: 8080
websocket_backend_path: ''
websocket_backend_transport: tcp
websocket_backend_ssl_context_options: { }
web_backend_prefix: /admin
session_handler: session.handler.native_file
secret: 'Intcomex'
installed: false
message_queue_transport: dbal
message_queue_transport_config: null
enable_price_sharding: '0'
deployment_type: null
liip_imagine.jpegoptim.binary: null
liip_imagine.pngquant.binary: null
env(ORO_DB_HOST): 127.0.0.1
env(ORO_DB_PORT): 3306
env(ORO_DB_NAME): orocrm
env(ORO_DB_USER): Intcomex
env(ORO_DB_PASSWORD): Intcomex
env(ORO_DB_VERSION): null
env(ORO_MAILER_DSN): 'native://default'
env(ORO_SECRET): ThisTokenIsNotSoSecretChangeIt
env(ORO_ENABLE_PRICE_SHARDING): '0'安装命令执行后的部分堆栈跟踪
Installing Oro Application.
Check system requirements
In NodeJsVersionChecker.php line 13:
Oro\Bundle\AssetBundle\NodeJsVersionChecker::satisfies(): Argument #1 ($nodeJsExecutable) must be of type string, null given, called
in /var/www/html/orocommerce/vendor/oro/platform/src/Oro/Bundle/InstallerBundle/Provider/PlatformRequirementsProvider.php on line 5
11
oro:check-requirements
PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'orocommerce.oro_config' doesn't exist in /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
Stack trace:
#0 /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(117): PDOStatement->execute()
#1 /var/www/html/orocommerce/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1303): Doctrine\DBAL\Driver\PDOStatement->execute()
......发布于 2022-09-01 08:46:15
您似乎还没有安装NodeJS,这是OroCommerce所必需的。有一个关于ubuntu的本地环境设置的说明,在安装之前您可以按照它来满足所有的系统要求:https://doc.oroinc.com/backend/setup/dev-environment/docker-and-symfony/ubuntu/。
安装所有附加软件后,请确保在重新尝试安装之前清除缓存。可以通过在应用程序根目录中运行rm -rf var/cache/*命令来做到这一点。
https://stackoverflow.com/questions/73562056
复制相似问题