###前提・実現したいこと
既存ソースを元に、PHP(CakePHP)の環境をLinux(Ubuntu)上に作ろうとしています。
composer.json,composer.lockファイルが存在していたため、
composer installを実行したのですが、
エラーが出てしまいます。
当方、Composerどころか、PHP、CakePHP、Linuxの知識もなく、
なかなか解決できずにいます。
当エラーの解決のヒントを頂けるとありがたいです。
どうぞ宜しくお願いいたします。
###発生している問題・エラーメッセージ
[ErrorException] Undefined variable: baseDir
###composer.json
JSON
1 "require": { 2 "php": ">=5.4.16", 3 "cakephp/cakephp": "~3.0", 4 "mobiledetect/mobiledetectlib": "2.*", 5 "cakephp/migrations": "~1.0", 6 "cakephp/plugin-installer": "*" 7 },
###試したこと
(1)composer installを実行。下記が表示されました。
(migrationsのinstallで失敗?)
Installing cakephp/migrations (1.1.1) Loading from cache [ErrorException] Undefined variable: baseDir
(2)composer install -vvvを実行。下記が表示されました。
(Exceptionの前後のみ抜粋しています)
vendor/cakephp-plugins.php exists. [ErrorException] Undefined variable: baseDir Exception trace: () at /var/www/html/myProject/vendor/cakephp-plugins.php:2 Composer\Util\ErrorHandler::handle() at /var/www/html/myProject/vendor/cakephp-plugins.php:2 include() at /var/www/html/myProject/vendor/cakephp/plugin-installer/src/Installer/PluginInstaller.php:368 Cake\Composer\Installer\PluginInstaller->updateConfig() at /var/www/html/myProject/vendor/cakephp/plugin-installer/src/Installer/PluginInstaller.php:313 Cake\Composer\Installer\PluginInstaller->install() at phar:///home/xxxxx/bin/composer/src/Composer/Installer/InstallationManager.php:173 Composer\Installer\InstallationManager->install() at phar:///home/xxxxx/bin/composer/src/Composer/Installer/InstallationManager.php:160 Composer\Installer\InstallationManager->execute() at phar:///home/xxxxx/bin/composer/src/Composer/Installer.php:584 Composer\Installer->doInstall() at phar:///home/xxxxx/bin/composer/src/Composer/Installer.php:223 Composer\Installer->run() at phar:///home/xxxxx/bin/composer/src/Composer/Command/InstallCommand.php:119 Composer\Command\InstallCommand->execute() at phar:///home/xxxxx/bin/composer/vendor/symfony/console/Command/Command.php:257 Symfony\Component\Console\Command\Command->run() at phar:///home/xxxxx/bin/composer/vendor/symfony/console/Application.php:850 Symfony\Component\Console\Application->doRunCommand() at phar:///home/xxxxx/bin/composer/vendor/symfony/console/Application.php:193 Symfony\Component\Console\Application->doRun() at phar:///home/xxxxx/bin/composer/src/Composer/Console/Application.php:227 Composer\Console\Application->doRun() at phar:///home/xxxxx/bin/composer/vendor/symfony/console/Application.php:124 Symfony\Component\Console\Application->run() at phar:///home/xxxxx/bin/composer/src/Composer/Console/Application.php:100 Composer\Console\Application->run() at phar:///home/xxxxx/bin/composer/bin/composer:52 require() at /home/xxxxx/bin/composer:24
###補足情報(言語/FW/ツール等のバージョンなど)
Linux(Ubuntu) 14.04
PHP 5.5.9-1ubuntu4.20 (cli)
CakePHP 3.0.6
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/30 02:44
2017/01/30 02:47
2017/01/30 04:21
2017/01/30 04:53