Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install laravel 5 on windows via composer

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?

like image 491
rahulserver Avatar asked Nov 26 '15 08:11

rahulserver


People also ask

How can we install Laravel by the composer?

Via Download. Once Composer is installed, download the 4.2 version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer. phar install (or composer install ) command to install all of the framework's dependencies.

Which PHP version is required for Laravel 5?

Server Requirements The Laravel framework has a few system requirements: PHP >= 5.4, PHP < 7. Mcrypt PHP Extension.

Is composer required for Laravel?

Installing Laravel Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.


1 Answers

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.

like image 146
ins0 Avatar answered Oct 07 '22 20:10

ins0