When i'm trying to install composer
i got following error.Actually all modules are installed.
As per my knowledge there will be two configuration files(apache2 & cli).
in both of the configuration files modules are enabled.still I'm facing this issue.
Problem 1
- The requested PHP extension ext-gd * is missing from your system.
Problem 2
- The requested PHP extension ext-mcrypt * is missing from your system.
Problem 3
- The requested PHP extension ext-curl * is missing from your system.
Problem 4
- The requested PHP extension ext-intl * is missing from your system.
Problem 5
- The requested PHP extension ext-xsl * is missing from your system.
Problem 6
- The requested PHP extension ext-mbstring * is missing from your system.
Problem 7
- Installation request for braintree/braintree_php 2.39.0 -> satisfiable by braintree/braintree_php[2.39.0].
- braintree/braintree_php 2.39.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 8
- Installation request for pelago/emogrifier v0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1].
- pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
when i'm trying to update/install
sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-curl is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-46 linux-headers-3.13.0-46-generic
linux-image-3.13.0-46-generic linux-image-extra-3.13.0-46-generic
sendmail-base sendmail-cf sensible-mda
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
update:
php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll' - /usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll' - /usr/lib/php/extensions/no-debug-zts-20121212/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.5.9 (cli) (built: Sep 8 2015 18:01:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
Try using php -m to make sure the modules have been enabled in your php installation.
If they are not in the list, you will have to add them in your php.ini.
Related
I have a Mac running Catalina. This includes PHP 7.3.11 which was installed by default - I haven't modified this in any way.
% php -v
PHP 7.3.11 (cli) (built: Jun 5 2020 23:50:40) ( NTS )
I was trying to run composer install to set up a CakePHP 4 project locally. This errors with
% composer install
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 cakephp/cakephp 4.1.6 -> satisfiable by cakephp/cakephp[4.1.6].
- cakephp/cakephp 4.1.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
- cakephp/cakephp 4.1.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/debug_kit 4.3.7 requires cakephp/cakephp ^4.1 -> satisfiable by cakephp/cakephp[4.1.6].
- Installation request for cakephp/debug_kit 4.3.7 -> satisfiable by cakephp/debug_kit[4.3.7].
I've created /etc/php.ini and I can see this is being loaded:
% php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
The php.ini I created was a copy of php.ini.default which came with my Mac. This had the following line commented out
;extension=intl
I've uncommented this and saved as /etc/php.ini.
Now, I'm getting another error when executing php which says:
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
How do you get intl extension installed under this environment? I've read that it should be included anyway by default in this version of PHP. Is this some Apple specific problem, or is there a workaround?
I found a solution (https://medium.com/#agaetis/solved-install-intl-php-extension-for-xampp-and-magento-for-macos-mojave-41fa42336fc6) using brew but this is for PHP 7.1, and doesn't work in this case.
You can use a docker image with apache and php (google : docker apache php github), set your project as a volume of your docker container with an external database or use this docker to build a new image with a DB.
I'm facing problem on installing Contao on my Mac.
I run the command that I get from here
composer create-project contao/managed-edition
but I am getting this error
hasnainshafqat#Hasnains-MBP project % composer create-project contao/managed-edition
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
Creating a "contao/managed-edition" project at "./managed-edition"
Installing contao/managed-edition (4.9)
- Installing contao/managed-edition (4.9): Loading from cache
Created project in /Users/hasnainshafqat/contao/project/managed-edition
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
- contao/newsletter-bundle 4.9.2 requires contao/core-bundle 4.9.2 -> satisfiable by contao/core-bundle[4.9.2].
- contao/newsletter-bundle 4.9.1 requires contao/core-bundle 4.9.1 -> satisfiable by contao/core-bundle[4.9.1].
- contao/newsletter-bundle 4.9.0 requires contao/core-bundle 4.9.0 -> satisfiable by contao/core-bundle[4.9.0].
- contao/core-bundle 4.9.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- contao/core-bundle 4.9.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- contao/core-bundle 4.9.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for contao/newsletter-bundle ^4.9 -> satisfiable by contao/newsletter-bundle[4.9.0, 4.9.1, 4.9.2].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
I've enable the extension from php.ini file but still I don't know what I am doing wrong.
Here is the video of my installation . please let me know what I've to fix
php version is
hasnainshafqat#Hasnains-MBP project % php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )
I'm using macOS Catalina version 10.15. At the beginning, I was able to use MAMP PRO with Port 80. However, after I failed to run composer install inside a project at /applications/mamp/htdocts/project/ because of a missing extension ext-zip of PHP as below:
Problem 1
- Installation request for phpoffice/phpspreadsheet 1.10.0 -> satisfiable by phpoffice/phpspreadsheet[1.10.0].
- phpoffice/phpspreadsheet 1.10.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
Problem 2
- phpoffice/phpspreadsheet 1.10.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- maatwebsite/excel 3.1.17 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.10.0].
- Installation request for maatwebsite/excel 3.1.17 -> satisfiable by maatwebsite/excel[3.1.17].
I decided to install php via homebrew in Terminal. After successfully installed by the following commmand
brew install php#7.3
# php -v
PHP 7.3.8 (cli) (built: Aug 24 2019 19:38:14) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies
#which php
/usr/bin/php
As a result, I cannot use MAMP PRO with Port 80 anymore nor does it resolve the missing extension ext-zip problem.
I have a couple questions that cannot wrap my head around:
If the built-in php has been always there, how could I use the Port 80 in the beginning?
is the built-in php with macOS always running? How to know inside of a project that which php is being used? (macOS or MAMP)??
What I have tried:
- Attempt to uninstall php version that I have installed by brew uninstall php#7.3 --force.
Ports from 1 to 1024 cannot be used by normal users without root credentials.
You would be able to use sudo to bind to port 80, but be aware, there could be some security risks when starting a program with root credentials, so use a wrapper which binds to your privileged port and relaxes the user credentials to a normal user.
i've tried many times to install couchbase client using this tutorial : http://trondn.blogspot.ro/2013/04/couchbase-php-xampp-and-windows.html ,, but is not working,,
when i run composer update i get the following errors
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_couchbase.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_couchbase.dll' - The specified module could not be found.
in Unknown on line 0
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
- ytake/laravel-couchbase 0.5.7 requires ext-couchbase ^2.2.2 -> the requested PHP extension couchbase is missing from your system.
- ytake/laravel-couchbase 0.5.6 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
- ytake/laravel-couchbase 0.5.5 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
- ytake/laravel-couchbase 0.5.3 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
- ytake/laravel-couchbase 0.5.2 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
- ytake/laravel-couchbase 0.5.1 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
- Installation request for ytake/laravel-couchbase ^0.5 -> satisfiable by ytake/laravel-couchbase[0.5.1, 0.5.2, 0.5.3, 0.5.5, 0.5.6, 0.5.7].
what should i do? please i need help
Official PHP SDK binaries for Windows published on
https://developer.couchbase.com/server/other-products/release-notes-archives/php-sdk
Make sure you put php_couchbase.dll into your extensions directory, and libcouchbase.dll into your SAPI PATH (or process current directory).
I face below issue when trying to run composer install:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll' - dlopen(/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/no-debug-non-zts-20151012/php_intl.dll, 9): image not found in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation request for magento/magento2-base 2.1.1 -> satisfiable by magento/magento2-base[2.1.1].
magento/magento2-base 2.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
Installation request for magento/product-community-edition 2.1.1 -> satisfiable by magento/product-community-edition[2.1.1].
magento/product-community-edition 2.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
To enable extensions, verify that they are enabled in those .ini files:
- /usr/local/etc/php/7.0/php.ini
- /usr/local/etc/php/7.0/conf.d/ext-mcrypt.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
How can I fix this?
Issue
I don't have the slightest clue, how you managed to end up with a Windows DLL on Mac, but...
/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/
indicates that you are using Mac/Homebrew.
no-debug-non-zts-20151012/php_intl.dll indicates that you are trying to load a Windows DLL
The extension you are trying to use is build/compiled for another operating system. PHP can't load that file.
That's the reason for the Warning: PHP Startup: Unable to load dynamic library.
Solution
Install via Homebrew
brew update
brew install icu4c
or Install via PECL
sudo pecl update-channels
sudo pecl install intl
Then add extension=php_intl.so to your php.ini,
Or that full path mess: extension=/usr/local/Cellar/php70/7.0.14_7/lib/php/extensions/no-debug-non-zts-20151012/php_intl.so