This question already has answers here:
CakePHP 3.0 installation: intl extension missing from system
(17 answers)
Closed 5 years ago.
I have installed cakephp using composer.
But while running it showing the following error.
Warning: require(D:\xampp\htdocs\my_app_name/vendor/autoload.php): failed to open stream: No such file or directory in D:\xampp\htdocs\my_app_name\webroot\index.php on line 27
Fatal error: require(): Failed opening required 'D:\xampp\htdocs\my_app_name/vendor/autoload.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\my_app_name\webroot\index.php on line 27
Could you please help me ?
Lenovo-User#Lenovo MINGW64 /d/xampp/htdocs
$ composer self-update
You are already using composer version 1.4.2 (stable channel).
Lenovo-User#Lenovo MINGW64 /d/xampp/htdocs
$ composer create-project --prefer-dist cakephp/app mylogin
Installing cakephp/app (3.4.2)
- Installing cakephp/app (3.4.2): Loading from cache
Created project in mylogin
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.4.9 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.8 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.7 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.6 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension i
ntl is missing from your system.
- cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked libra
ry icu has the wrong version installed or is missing from your system, make sure
to have the extension providing it.
- cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked libra
ry icu has the wrong version installed or is missing from your system, make sure
to have the extension providing it.
- cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked libra
ry icu has the wrong version installed or is missing from your system, make sure
to have the extension providing it.
- Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/c
akephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.4.9].
To enable extensions, verify that they are enabled in your .ini files:
- D:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.
Lenovo-User#Lenovo MINGW64 /d/xampp/htdocs
$
Thanks,
Run following command first (you might need to prepend this with sudo if composer was installed globally)
composer self-update
then again
composer create-project --prefer-dist cakephp/app my_app_name
Related
I wanted to install eloquent-sluggable but I get this type of error
and my laravel version =5.5 and my php version is 7.0 but I don't know what can I do with this error.
If u know please help me.
My error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- illuminate/support v5.6.3 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.2 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.1 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.0 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- cviebrock/eloquent-sluggable 4.5.0 requires illuminate/support ~5.6.0 -> satisfiable by illuminate/support[v5.6.0, v5.6.1, v5.6.2, v5.6.3].
- Installation request for cviebrock/eloquent-sluggable 4.5 -> satisfiable by cviebrock/eloquent-sluggable[4.5.0].
Installation failed, reverting ./composer.json to its original content.
-------
I followed the related site but I can solve it.
Thanks.
Yes, you should be able to do that. The problem is pretty simple: As the error message says, these packages need at least PHP 7.1.3, while you have PHP 7.0.10 installed:
requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement
Updating your PHP version would to the trick. How this is done depends on how your development environment is setup.
When I try to install CakePHP, I get an error that intl is missing:
$ composer self-update && composer create-project --prefer-dist cakephp/app blog
You are already using composer version 1.5.2 (stable channel).
Installing cakephp/app (3.5.0)
- Installing cakephp/app (3.5.0): Loading from cache
Created project in blog
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.5.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp 3.5.* -> satisfiable by cakephp/cakephp[3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5].
When I try to install php56-intl, I get a message that it's already installed:
$ brew install php56-intl
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/php).
==> New Formulae
bchunk dps8m e2tools heartbeat kaitai-struct-compiler simg2img
==> Updated Formulae
abcmidi debianutils getdns homebrew/php/php55-molten inspircd mdds ompl scalaenv terragrunt
asciidoc dssim geth homebrew/php/php56-molten itstool mikutter ortp scalastyle tintin
bazel erlang gofabric8 homebrew/php/php70-molten kerl mupdf pandoc scm-manager vapoursynth
bit exploitdb grafana homebrew/php/php71-molten libgsf mupdf-tools poco sjk wireguard-tools
cmake faas-cli grakn i2p libmaxminddb mypy poppler sourcekitten yara
convox firebase-cli gsmartcontrol imagemagick libpqxx nativefier prometheus swiftformat
cppad gegl homebrew/php/php54-molten imagemagick#6 libuv node-build resty swiftlint
==> Renamed Formulae
newsbeuter -> newsboat
Warning: homebrew/php/php56-intl 5.6.32_10 is already installed
Why is this happening? What can I do to fix it?
Edit: I'm on Mac OS X. Running which php returns PHP 5.6.28 ...
Cannot complete the install because one or more required items could not be found.
Software being installed: Tern Toolings 1.1.0.201511082254 (tern.eclipse.ide.tools.feature.feature.group 1.1.0.201511082254)
Missing requirement: Tern - Eclipse 1.1.0.201511082254 (tern.eclipse 1.1.0.201511082254) requires 'bundle org.eclipse.swt 3.7.0' but it could not be found
Cannot satisfy dependency:
From: Tern - Eclipse - Core IDE 1.1.0.201511082254 (tern.eclipse.ide.core 1.1.0.201511082254)
To: bundle tern.eclipse 0.0.0
The key here is the "requires 'bundle org.eclipse.swt 3.7.0'" message - version 3.7.0 or newer of SWT is required.
It looks like your version of Eclipse is out of date, you need Eclipse 3.7 or 3.8 or Eclipse 4.2 or later.
Am trying to download cakephp using the following code frome the terminal - php composer.phar create-project --prefer-dist cakephp/app bookmarker
but it tells me am missing some extensions in my system -
Problem 1
- cakephp/cakephp 3.2.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Any suggestions please.
- cakephp/cakephp 3.2.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.2 -> satisfiable by cakephp/cakephp[3.2.0, 3.2.0-RC1, 3.2.1, 3.2.x-dev].
You have to enable intl extension from php.ini
if you use xampp see this
Otherwise find php.ini
search intl.dll
remove semiclone infront of it (for xampp)
remove # (for wampp)
Save it and restart server
After this process try to download again
I run into the same problem while installing CakePHP for a new project. What I did was the following:
1) Upgrade the PHP to 5.6 (http://coolestguidesontheplanet.com/upgrade-php-on-osx) and check my phpinfo() file for intl to be enabled. As it was enabled I thought that the default Mac OS PHP in use was not the one I was checking in phpinfo(). Indeed when prompting on the terminal php -v or which php I realised the CLI was using PHP 5.5.3 so I modified my ~/.profile and ~/.bash_profile...
2)vim ~/.profile
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH
PATH=/usr/local/php5/bin:$PATH
3) source ~/.profile
4) vim ~/.bash_profile
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/usr/local/php5/bin:$PATH
5) Close and reopen the terminal.
6) Check again php -v or which php and PHP 5.6 appeared.
7) Run again php composer.phar create-project --prefer-dist cakephp/app app_name and the error was gone.
It turns out that some months ago I had installed homebrew and with it another PHP version got installed as the default Mac OS PHP with no intl enabled.
[root#skadi:/var/www/mailinglist]$ composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Problem 2
- cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- cakephp/debug_kit 3.0.x-dev requires cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- Installation request for cakephp/debug_kit 3.0.*-dev -> satisfiable by cakephp/debug_kit[3.0.x-dev].
Try this
sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
on Ubuntu 13.10 and later there is a problem for migration of php modules configuration from /etc/php5/conf.d to /etc/php5/mods-available
If you don't solve verify the mcrypt library
updatedb
locate mcrypt.so
locate mcrypt.ini
Just for the record, as I didn't find a solution anywhere for Arch Linux: If you happen to use composer from the extra repository (extra/php-composer), it's actually not enough to enable the mcrypt extension in /etc/php/php.ini because the global composer script uses its own ini-file (/usr/share/php-composer/php.ini).
To fix the mcrypt error, you can either:
Enable mcrypt extension globally and run composer using php /usr/bin/composer.
Add mcrypt extension to /usr/share/php-composer/php.ini and prevent pacman from overwriting your changes by adding NoUpgrade = usr/share/php-composer/php.ini to /etc/pacman/pacman.conf.
I had this problem when I tried to install laravel with composer on my MAC Yosemite.
This was the error message I got from the terminal:
laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP
extension mcrypt is missing from your system.
I followed these instructions to install mcrypt on my MAC:
http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/
And that fixed the problem
Composer was blocking my install of cakephp because of a dependency on mcrypt, despite the fact that mcrypt was installed and working in my php configuration.
I finally realized that Composer was checking the cli mode of php, and I resolved the dependency by simply copying mcrypt.ini from /etc/php5/conf.d to /etc/php5/cli/conf.d.