LoginSignup
0
0

More than 5 years have passed since last update.

vagrant(ホストがwindows)のsynced_folder上でSymfonyをインストールできない時の対応方法

Posted at

vagrant(ホストがwindows)のsynced_folder上でSymfonyをインストールできない時の対応方法

Symfonyを下記コマンドでインストールしようとしたらRuntimeExceptionエラーとなった

[root@vagrant-centos65 vagrant]# composer create-project symfony/framework-standard-edition my_project_name "2.8.3"


[RuntimeException]
  Could not delete /vagrant/my_project_name/vendor/symfony/symfony/6601b6eabe2135f7d417614c11d56528: date_default_timezone_get(): It is not safe to rely on the syste
  m's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and y
  ou are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to sele
  ct your timezone.

原因

synced_folder上ではシンボリックリンクが使えないため
Symfonyのissueに上がってた

対応

Vgrantfileでsynced_folderを無効にする
sambaをインストールしてこの共有フォルダを使ってSymfonyをインストールする

参考リンク

windows+vagrantでSymfony2プロジェクトの開発環境を作るノウハウ的なもの(Re:Vagrant で Symfony 開発)
VagrantでSymfony2開発 Symfony勉強会#9でLTしてきた
vagrantでsambaのインストール方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0