Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp Cake command returns No such file or directory

I have been using the cake command on my linux server for 2 years. but now im trying to move to a new server and some how the cake command gives back the error: No such file or directory

even if i give the entire path to the cake command file chmod 777 it stil wont work.

like image 881
jurrieb Avatar asked Dec 06 '22 04:12

jurrieb


1 Answers

I found the solution: All I had to do is use the program dos2unix the cake file for CakePHP 2.4.2 has wrong endings when you download it with Ubuntu 13.10

I used the following command:

sudo dos2unix /path/to/cake/lib/Cake/Console/cake
like image 186
jurrieb Avatar answered Jan 11 '23 16:01

jurrieb