Your requirements could not be resolved to an installable set of packages. for running an application

436

PHP is missing mcrypt extension - install and enable it and it will work.

Share:
436
Daniyal
Author by

Daniyal

Updated on November 29, 2022

Comments

  • Daniyal
    Daniyal over 1 year

    I tried to run this project but get follow error by running composer install as developer said

    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.4 -> satisfiable by laravel/framework[v5.0.4].
        - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
      Problem 2
        - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
        - laracasts/flash 1.3.3 requires illuminate/support ~5.0 -> satisfiable by laravel/framework[v5.0.4].
        - Installation request for laracasts/flash 1.3.3 -> satisfiable by laracasts/flash[1.3.3].
    

    composer.json file:

    {
        "name": "laravel/laravel",
        "description": "The Laravel Framework.",
        "keywords": ["framework", "laravel"],
        "license": "MIT",
        "type": "project",
        "require": {
            "laravel/framework": "5.0.*",
            "doctrine/dbal": "~2.5",
            "illuminate/html": "~5.0",
            "laracasts/flash": "~1.3"
        },
        "require-dev": {
            "phpunit/phpunit": "~4.0",
            "phpspec/phpspec": "~2.1"
        },
        "autoload": {
            "classmap": [
                "database"
            ],
            "psr-4": {
                "App\\": "app/"
            }
        },
        "autoload-dev": {
            "classmap": [
                "tests/TestCase.php"
            ]
        },
        "scripts": {
            "post-install-cmd": [
                "php artisan clear-compiled",
                "php artisan optimize"
            ],
            "post-update-cmd": [
                "php artisan clear-compiled",
                "php artisan optimize"
            ],
            "post-create-project-cmd": [
                "php -r \"copy('.env.example', '.env');\"",
                "php artisan key:generate"
            ]
        },
        "config": {
            "preferred-install": "dist"
        }
    }
    

    Seems the version of Laravel used in this project is dev. Can you please tell me how can I run this project? I've no problem with installing a fresh Laravel.

    • Ali Golestan
      Ali Golestan over 7 years
      did you check ubuntu.com/download ?
    • John
      John over 7 years
      Of course! The first thing I did, but it seems like it is not there, or they named it differently
    • roaima
      roaima over 7 years
      Are you assuming the LiveCD ISO size is smaller? It's not.
    • John
      John over 7 years
      It should be, since I do not need option 'Install Ubuntu'
  • John
    John over 7 years
    I understand that Standard Ubuntu can be used this way. The problem is I neen boot Client through Server using PXE, and Standard Iso is 1.5 Gb, for Client's RAM is it way too much, so I need just Live CD with no option 'Install Ubuntu'
  • jakob-wenzel
    jakob-wenzel over 7 years
    @John - Edited to provide some more useful options. I apologize for not understanding your original question.
  • ivanivan
    ivanivan over 7 years
    You could also extract the FS and have it available via NFS so the clients don't need to hold it all in RAM.
  • John
    John over 7 years
    ivanivan, how to do that? Can you please give me a guide link?