Monday, October 14, 2013

Re: Installation via composer

I had better luck replacing the bash command with cmd /C, so that it would run the cake bake in a cmd shell, and then terminate when complete.

On Monday, 14 October 2013 17:30:56 UTC+10, Reuben wrote:
I thought I'd try out installing CakePHP via composer.

After having a bit of fun setting up PHP 5.4, Apache 2.4 and FastCGI in my windows environment, I finally got composer installed, and then ran php composer.phar install.

Output was a follows:

Loading composer repositories with package information
Initializing PEAR repository http://pear.cakephp.org
Installing dependencies (including require-dev)
  - Installing pear-pear.cakephp.org/cakephp (2.4.1)
    Downloading: 100%
    Skipped installation of bin/cake.bat for package pear-pear.cakephp.org/cakephp: name conflicts with an existing file
Writing lock file
Generating autoload files

Then I went to run Vendor\bin\cake bake project C:\dev\projects\portal\src, as was the location of the project I was going to set up.  But apparently 'bash' is not recognised as an internal or external command. Indeed.

On inspection of Vendor\bin\cake.bat, it's trying to invoke bash.

bash might be valid if you're running Cygwin or in a Git shell, but shouldn't a .bat file stick to basic Windows command line commands, like cmd, rather than bash?

Regards
Reuben Helms

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: