zfi

Experience

5,690

1 Best Reply Awards

  • Member Since 1 Year Ago
  • 49 Lessons Completed
  • 0 Favorites

26th December, 2016

zfi left a reply on Sh: Composer: Command Not Found • 9 months ago

It appears that using an alias for composer is not the right thing to do. I removed the alias and then renamed /usr/local/bin/composer.phar to /usr/local/bin/composer. Now running 'laravel new blog' runs without any errors. The new site has a .env file and a defined site key.

zfi left a reply on Syntax Error Or Access Violation: 1069 Too Many Keys Specified; Max 64 Keys Allowed • 9 months ago

I would encourage you to re-evaluate your database design to avoid the limit. Building Mysql from source is outside my wheelhouse but there is plenty of information available to help you with that. For example:

http://askubuntu.com/questions/309677/mysql-5-6-12-installation-from-source-code

zfi left a reply on Syntax Error Or Access Violation: 1069 Too Many Keys Specified; Max 64 Keys Allowed • 9 months ago

It would appear that you will need to modify your schemes design if you are unable or unwilling to recompile. Perhaps you can help us understand why you require so many indices.

zfi left a reply on Sh: Composer: Command Not Found • 9 months ago

If I may bump this issue, I have encountered the same set of circumstances.

I have a fresh installation of macOS 10.12.2; Installed both laravel/installer and laravel/valet. The composer.phar is installed in the /usr/local/bin/directory. I have created an alias to run composer.

composer is aliased to `php /usr/local/bin/composer.phar'

Running

laravel new blog

generates this response

Crafting application...
sh: composer: command not found
Application ready! Build something amazing.

The site does not run. In order to get the site to work, I had to run these additional steps:

cd blog
composer install —no-scripts
cp .env.example .env
php artisan key:generate

If I create the site using composer, the site works as expected.

composer create-project --prefer-dist laravel/laravel blog

I am fairly certain that the error from composer: command not found is where .env file is created and keyed. It is also where the dependancies are installed. Does anyone have thoughts on where to begin to troubleshoot this?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.