ubuntu - Downloading Dependencies with Composer in Vagrant Virtual Machine causes Broken Folders -
i have ubuntu 12.04.5 virtual machine running vagrant box.
i want install composer dependencies. here composer.json
:
{ "name": "sample/website", "require": { "php": ">=5.3.0", "ext-curl": "*", "ext-json": "*", "paypal/rest-api-sdk-php" : "*" } }
everything works out fine, when navigate to:
/vagrant/site/vendor/paypal/rest-api-sdk-php/lib
and run ls -la
presented this:
ls: cannot access paypal: no such file or directory total 0 drwxr-xr-x 1 vagrant vagrant 102 oct 23 19:16 ./ drwxr-xr-x 1 vagrant vagrant 510 oct 23 19:16 ../ ?????????? ? ? ? ? ? paypal
i cannot cd
, rm
or chmod
or chown
directory. places suggest trying alter permissions because may not have permissions exectue file, cannot perform operation.
i can access fine host machine (osx 10.9.5).
this happened when cloned paypal repo straight github.
any clues?
this turned out part of wider problem whereby vagrant loses track of synced folders. problem detailed here: https://github.com/mitchellh/vagrant/issues/985
the solution grabbed link follow this: http://blog.csanchez.org/2012/05/03/automatically-download-and-install-virtualbox-guest-additions-in-vagrant/
you need install latest version of invitee additions:
vagrant gem install vagrant-vbguest
then in vagrantfile
, add
vagrant::config.run |config| # set auto_update false, if not want check right additions # version when booting machine config.vbguest.auto_update = false end
ubuntu paypal permissions vagrant composer-php
No comments:
Post a Comment