On Oct 17, 2011, at 09:00, Derk Blokhuis wrote: > Just installed CakePHP 2.0 stable release on a QNAP NAS server. > However when I try to run the console it gives > me the following error(see below). With 1.3 it worked fine. I don't > have a real expertise on this erea so hopefully somebody could help me > out. > > Thanks! > > Cheers, > Derk Blokhuis > > ./cake > BusyBox v1.01 (2011.08.03-17:51+0000) multi-call binary > > Usage: dirname FILENAME
Evidently, your QNAP NAS uses BusyBox [1] to provide its implementation of the "dirname" command, and BusyBox's dirname does not support the "--" flag. The "--" flag in most programs means "everything that follows is a filename, even if it looks like a flag (i.e. begins with a '-')". So, unless you have directories whose names begin with a "-" (which nobody in their right mind would do), you can work around the problem by editing these files: app/Console/cake lib/Cake/Console/cake lib/Cake/Console/Templates/skel/Console/cake and changing every occurrence of "dirname --" to just "dirname". The same may need to be done for "basename". The real fix would be for the script to properly detect whether "dirname" and "basename" support "--", and if not, don't use it. [1] http://busybox.net/about.html -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
