I am beginner in laravel in ubuntu 14.04.
I try to run this following commend for install laravel.
composer create-project laravel/laravel --prefer-dist
and i got following error.
i am also try to install ncrypt but i got same error.
Installing laravel/laravel (v5.0.1)
- Installing laravel/laravel (v5.0.1)
Loading from cache
Created project in /opt/lampp/htdocs/laravel
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
- laravel/framework v5.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0, v5.0.1, v5.0.2].
i am also try to run this command but i got this same error.
sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart
Thanks in advance..
I am open this file
gedit /etc/php5/cli/php.ini
put one line in to this file
extension=mcrypt.so
and this run successfully.
any ways thanks again.
This is how I solved on Mac Yosemite. I have one php.ini in /etc/, and I have mcrypt instaIled. But I faced the same problem.
Run this to find another php.ini.
php -i|grep ini
It returned the followings.
System => Darwin Myname-MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
Configuration File (php.ini) Path => /usr/local/etc/php/5.5
Loaded Configuration File => /usr/local/etc/php/5.5/php.ini
....
I open /usr/local/etc/php/5.5/php.ini and added extension=mcrypt.so to the file.
I hope this will help someone in future.
Mac users with brew just run in CLI:
brew install php56-mcrypt
Doinion Rings.
Related
I tried to install Laravel with Composer on my Debian 9 terminal with
composer global require laravel/installer
But I get the following errors:
Using version ^3.0 for laravel/installer
./composer.json has been created
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
- 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].
To enable extensions, verify that they are enabled in your .ini files:
- /opt/lampp/etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, deleting ./composer.json.
I tried to install the PHP ext Zip extension with:
apt-get install php7.4-zip
and
apt-get install php-zip
and also edit the php.ini file uncommenting the following lines:
extension=php_zip.dll
extension="zip.so"
But nothing works and I have the same errors...
Make sure to restart the webserver after the change
php -m to list the compiled modules
it happened to me once (on plesk) that composer was using a different php version than to use php itself
You could try php composer.phar(the location of that) and check the results
If Installing laravel is what matters here
here are some possible solutions
composer create-project laravel/laravel [dir]
or git clone https://github.com/laravel/laravel.git then cd to that directory, usually laravel, so cd laravel then composer install
I had the same problem as you.
I could see that I was lacking the zip extension by doing
php -m
I did
apt search php | grep zip
to see if there was a package I could install, I found php-zip, so I did
sudo apt install php-zip
after which php -m showed zip in the list.
Then I tried the command to install Laravel again
composer global require laravel/installer
and it succeeded.
I'm trying to get an old Laravel project running, but when I try running composer install, I get this error:
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 laravel/framework v5.0.32 -> satisfiable by laravel/framework[v5.0.32].
- laravel/framework v5.0.32 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Problem 2
- laravel/framework v5.0.32 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- barryvdh/laravel-ide-helper v2.0.3 requires illuminate/console 5.0.x -> satisfiable by laravel/framework[v5.0.32].
- Installation request for barryvdh/laravel-ide-helper v2.0.3 -> satisfiable by barryvdh/laravel-ide-helper[v2.0.3].
The php executable I'm using is located here:
/usr/local/Cellar/php#5.6/5.6.30_6/bin/php
And I've added extension=mcrypt.so to every php.ini I could find (including one I put at the root of the Laravel project).
I have no idea if this is related (there appears to be a dozen or more php versions scattered throughout my Mac).
So I've been trying to install mcrypt but every answer I've found seems to be outdated. This is what I've tried:
brew install homebrew/php/php56-mcrypt
Output: Error: No available formula with the name "homebrew/php/php56-mcrypt"
brew install php#5.6 -with-mcrypt=mcrypt
This seems to install successfully but doesn't fix the error.
brew update
brew upgrade
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php56-mcrypt
Output: Error: No available formula with the name "php56-mcrypt"
How am I supposed to install php56-mcrypt on a Mac?
Try with this:- brew install php56-mcrypt --without-homebrew-php
And add this extension in your /private/etc/php.ini :-
extension="/usr/local/Cellar/php56-mcrypt/5.6.x/mcrypt.so"
Edit:- Try adding tap first as follows:- brew tap homebrew/homebrew-php and than run the install command.
error in install package baibaratsky/php-webmoney in Ubuntu server 14.0.4 in ssh with this code:
composer require baibaratsky/php-webmoney
root#euv:/var/www/my# composer require baibaratsky/php-webmoney
Key kartik-v/yii2-widget-fileinput is a duplicate in ./composer.json at line 25
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.15.1 for baibaratsky/php-webmoney
./composer.json has been updated
Key kartik-v/yii2-widget-fileinput is a duplicate in ./composer.json at line 25
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
- linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for linslin/yii2-curl (locked at 1.0.8, required as *) -> satisfiable by linslin/yii2-curl[1.0.8].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php5/cli/php.ini
- /etc/php5/cli/conf.d/05-opcache.ini
- /etc/php5/cli/conf.d/10-pdo.ini
- /etc/php5/cli/conf.d/20-gd.ini
- /etc/php5/cli/conf.d/20-intl.ini
- /etc/php5/cli/conf.d/20-json.ini
- /etc/php5/cli/conf.d/20-mysql.ini
- /etc/php5/cli/conf.d/20-mysqli.ini
- /etc/php5/cli/conf.d/20-pdo_mysql.ini
- /etc/php5/cli/conf.d/20-readline.ini
- /etc/php5/cli/conf.d/20-xsl.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
i installed this package but dont fix error.
sudo apt-get install php5-gd
sudo apt-get install php5-intl
sudo apt-get install php5-xsl
install CURL fix this error
sudo apt-get install php5-curl
You will need to restart the server afterwards:
sudo service apache2 restart
Alternatively, if you are using php-fpm, you'll need to restart php5-fpm instead
sudo service php5-fpm restart
I am trying to get started with laravel on windows and here is the command I tried:
rahul#rahulserver MINGW64 /d/PhpIdeaProjects/LaravelLearning
$ composer create-project laravel/laravel learning-laravel-5
Here is the output I get:
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22)
Loading from cache
Created project in learning-laravel-5
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 danielstjules/stringy 1.9.0 -> satisfiable by danielstjules/stringy[1.9.0].
- danielstjules/stringy 1.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
So how shall I move on and have it working?
The requested dependencies require the php extension mbstring as the error explains.
the requested PHP extension mbstring is missing from your system
So install the extension and it should install flawless.
mbstring is built in the libapache2-mod-php5 package. Run
sudo apt-get install libapache2-mod-php5
For windows environments check your php.ini and uncomment the line ;extension=php_mbstring.dll to extension=php_mbstring.dll - then restart your webserver.
So at work, I've been tasked to learn and start to use some Laravel, so I've been following the documentation and some tutorials on Youtube, but I cannot seem to get it working. I am using composer and MAMP to install Laravel. When I use the command (in the terminal) "composer create-project laravel/laravel TestLaravel" while in htdocs. It quickly comes up with this error:
➜ htdocs composer create-project laravel/laravel TestLaravel
Installing laravel/laravel (v5.0.1)
- Installing laravel/laravel (v5.0.1)
Loading from cache
Created project in TestLaravel
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
- laravel/framework v5.0.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.3 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0, v5.0.1, v5.0.2, v5.0.3, v5.0.4, v5.0.5].
I was wondering if anyone would have a solution to this problem for me.
Thank you.
Joshua Johnson
Mac OS X Yosemite
the requested PHP extension mcrypt is missing from your system
I fixed this error by running the following commands in my Terminal :
brew update
brew upgrade
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php54-mcrypt
Mostly this problem comes when your MAMP PHP Version not match with command version php. Please have a look in terminal by type php -v then it will show version like php 5.5.*
The problem is you have to set your MAMP PHP Path in ~/.bash_profile like this :
sudo nano ~/.bash_profile
PATH="/Applications/MAMP/bin/php/php5.6.7/bin:$PATH"
That's all, or install mcrypt lib if you want to use your default system php.
The way that I got around this was to install Homestead and make sure to log in to the Homestead Virtual Machine before running any commands. MCrypt is not installed on your local machine, but it is in Homestead.
There's a PHP extension named mcrypt that's often not distributed with stock PHP packages. The mcrypt extension is the defacto standard PHP extension for encryption and hashing functionality. Laravel uses mcrypt.
The built in PHP on OS X does not come with mcrypt installed. This means you either need to
Build and install the mcrypt extension yourself for OS X's built in PHP
Use homebrew to build and install PHP with mycrypt
Use a "pre-compiled for OS X" PHP package.
Use a vagrant virtual machine to run your development stack
I usually chose the third option, and use the lipp.ch package. This is a long running project, and has it's roots in the old entropy.ch packages managed by Marc Liyanage from even further back.