Hi @richard@ben
I have the same issue i have php -v 5.6.30 so i have tried to install php 7 on my system with : curl -s https://php-osx.liip.ch/install.sh | bash -s 7.1
but i still get php -v 5.6.30 in my terminal
also, in my .bash_profile i have those lines :
export PATH="/Applications/MAMP/Library/bin:$PATH"
alias composer="php /usr/local/bin/composer.phar"
alias wpinstall="~/Scripts/wpinstall.sh"
export NVM_DIR="/Users/Mecanographik/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# This loads nvm
#source ~/.bashrc
export PATH="$HOME/.yarn/bin:$PATH"
composer create-project roots/sage your-theme-name dev-master runs to:
Installing roots/sage (dev-master b4421be2696bd6021a11eb6893bb6fbb8a949d15)
- Installing roots/sage (dev-master master)
Cloning master
Created project in your-theme-name
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for illuminate/support v5.4.27 -> satisfiable by illuminate/support[v5.4.27].
- illuminate/support v5.4.27 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for squizlabs/php_codesniffer 2.9.1 -> satisfiable by squizlabs/php_codesniffer[2.9.1].
- squizlabs/php_codesniffer 2.9.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
Problem 3
- illuminate/support v5.4.27 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- illuminate/console v5.4.27 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[v5.4.27].
- Installation request for illuminate/console v5.4.27 -> satisfiable by illuminate/console[v5.4.27].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Some of these have been depreciated. A helpful, more recent blog post here:
Came across this problem this morning on a fresh install of Sage where the error similar to cannot satisfy requirements because I had php7.1 locally and needed greater than that.
Also didn’t realise composer was looking at my system’s php, not the virtual machine’s…