Closed
Description
I got the following error message when I had ran the command bash init_project.sh
on Windows10 64bit:
D:/dev/magento2/lib/php/php.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
$ bash init_project.sh
+ bash /d/dev/magento2/scripts/host/check_requirements.sh
+ '[' -f /d/dev/magento2/lib/php/php.exe ']'
+ php_executable=php
+ echo php
+ php -v
/d/dev/magento2/scripts/host/check_requirements.sh: line 9: php: command not found
+ grep -q Copyright
+ bash /d/dev/magento2/scripts/host/install_php.sh
+ [[ Windows == \W\i\n\d\o\w\s ]]
+ curl http://windows.php.net/downloads/releases/archives/php-5.6.9-nts-Win32-VC11-x86.zip -o /d/dev/magento2/lib/php.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20.1M 100 20.1M 0 0 2802k 0 0:00:07 0:00:07 --:--:-- 3308k
+ unzip -q /d/dev/magento2/lib/php.zip -d /d/dev/magento2/lib/php
+ rm -f /d/dev/magento2/lib/php.zip
+ cp /d/dev/magento2/lib/php/php.ini-development /d/dev/magento2/lib/php/php.ini
+ sed -i.back 's|; extension_dir = "ext"|extension_dir = "ext"|g' /d/dev/magento2/lib/php/php.ini
+ sed -i.back 's|;extension=php_openssl.dll|extension=php_openssl.dll|g' /d/dev/magento2/lib/php/php.ini
+ rm -rf /d/dev/magento2/lib/php/php.ini.back
++ bash /d/dev/magento2/scripts/host/get_path_to_php.sh
+ '[' -f /d/dev/magento2/lib/php/php.exe ']'
+ php_executable=/d/dev/magento2/lib/php/php
+ echo /d/dev/magento2/lib/php/php
+ php_executable=/d/dev/magento2/lib/php/php
+ /d/dev/magento2/lib/php/php -v
+ grep -q Copyright
D:/dev/magento2/lib/php/php.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
+ set +x
Automatic PHP installation is not available for your host OS. Please install any version of PHP to allow Magento dependencies management using Composer. Check out http://php.net/manual/en/install.php