Previously I used the hombrew package manager, everything was okay.
I reinstalled my iMac, and now I use the Macports package manager.
first I installed the composer and it worked, then installed laravel but failed:
Problem 1
- laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1]
then I installed the latest version of php using macports, but when I installed the laravel I got this message :
Changed current directory to /Users/DELE/.composer
PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/Mbstring.php:713
Stack trace:
#0 phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/bootstrap.php(48): Symfony\Polyfill\Mbstring\Mbstring::mb_strwidth(' [Composer\Exc...', 'ASCII')
#1 phar:///Users/DELE/composer.phar/vendor/symfony/console/Helper/Helper.php(54): mb_strwidth(' [Composer\Exc...', 'ASCII')
#2 phar:///Users/DELE/composer.phar/vendor/symfony/console/Application.php(646): Symfony\Component\Console\Helper\Helper::strlen(' [Composer\Exc...')
#3 phar:///Users/DELE/composer.phar/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException(Object(Composer\Exception\NoSslException), Object(Symfony\Component\Console\Output\StreamOutput))
#4 phar:///Users/DELE/composer.phar/src/Composer/Console/Application.php(113): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\StringI in phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/Mbstring.php on line 713
Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/Mbstring.php:713
Stack trace:
#0 phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/bootstrap.php(48): Symfony\Polyfill\Mbstring\Mbstring::mb_strwidth(' [Composer\Exc...', 'ASCII')
#1 phar:///Users/DELE/composer.phar/vendor/symfony/console/Helper/Helper.php(54): mb_strwidth(' [Composer\Exc...', 'ASCII')
#2 phar:///Users/DELE/composer.phar/vendor/symfony/console/Application.php(646): Symfony\Component\Console\Helper\Helper::strlen(' [Composer\Exc...')
#3 phar:///Users/DELE/composer.phar/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException(Object(Composer\Exception\NoSslException), Object(Symfony\Component\Console\Output\StreamOutput))
#4 phar:///Users/DELE/composer.phar/src/Composer/Console/Application.php(113): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\StringI in phar:///Users/DELE/composer.phar/vendor/symfony/polyfill-mbstring/Mbstring.php on line 713
then I tried to reinstall the composer and get this message :
PHP Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
PHP Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
Warning: copy(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
PHP Warning: copy(https://getcomposer.org/installer): failed to open stream: No such file or directory in Command line code on line 1
Warning: copy(https://getcomposer.org/installer): failed to open stream: No such file or directory in Command line code on line 1
Please help.