Laravel 安装 UBUNTU 12.04 LTS

Laravel Installtion UBUNTU 12.04 LTS

我想在包含 UBUNTU 12.04 LTS 的机器中配置 laravel。我已将作曲家 .phar 放在我的 /usr/local/bin 文件夹中,并遵循 laravel.com

中 laravel 的文档

现在我尝试通过他们网站上提到的下载安装 laravel,我已经下载了最新版本的 laravel zip 并将其解压缩到我的桌面上,然后执行以下命令和我在那里看到一个错误,日志是:

 ahsan@ahsan-Inspiron-N5110:~/Desktop/Development/laravell/laravel-master$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing symfony/translation (v2.5.9)
    Loading from cache

  - Installing symfony/security-core (v2.5.9)
    Loading from cache

  - Installing symfony/routing (v2.5.9)
    Loading from cache

  - Installing symfony/process (v2.5.9)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing symfony/debug (v2.5.9)
    Loading from cache

  - Installing symfony/http-foundation (v2.5.9)
    Loading from cache

  - Installing symfony/event-dispatcher (v2.6.3)
    Loading from cache

  - Installing symfony/http-kernel (v2.5.9)
    Loading from cache

  - Installing symfony/finder (v2.5.9)
    Loading from cache

  - Installing symfony/dom-crawler (v2.5.9)
    Loading from cache

  - Installing symfony/css-selector (v2.5.9)
    Loading from cache

  - Installing symfony/console (v2.5.9)
    Loading from cache

  - Installing symfony/browser-kit (v2.5.9)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.3.1)
    Loading from cache

  - Installing stack/builder (v1.0.3)
    Loading from cache

  - Installing predis/predis (v0.8.7)
    Loading from cache

  - Installing phpseclib/phpseclib (0.3.9)
    Loading from cache

  - Installing patchwork/utf8 (v1.1.26)
    Loading from cache

  - Installing nesbot/carbon (1.13.0)
    Loading from cache

  - Installing monolog/monolog (1.12.0)
    Loading from cache

  - Installing nikic/php-parser (v0.9.5)
    Loading from cache

  - Installing jeremeamia/superclosure (1.0.1)
    Loading from cache

  - Installing filp/whoops (1.1.3)
    Loading from cache

  - Installing ircmaxell/password-compat (v1.0.4)
    Loading from cache

  - Installing d11wtq/boris (v1.0.8)
    Loading from cache

  - Installing symfony/filesystem (v2.6.3)
    Loading from cache

  - Installing classpreloader/classpreloader (1.0.2)
    Loading from cache

  - Installing laravel/framework (v4.2.16)
    Loading from cache

symfony/translation suggests installing symfony/config ()
symfony/translation suggests installing symfony/yaml ()
symfony/security-core suggests installing symfony/validator (For using the user password constraint)
symfony/security-core suggests installing symfony/expression-language (For using the expression voter)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
predis/predis suggests installing ext-curl (Allows access to Webdis when paired with phpiredis)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a wide variety of cryptographic operations.)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get phpseclib working on PHP < 4.3.3.)
patchwork/utf8 suggests installing ext-intl (Use Intl for best performance)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
laravel/framework suggests installing doctrine/dbal (Allow renaming columns and dropping SQLite columns.)
Writing lock file
Generating autoload files
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error



  [RuntimeException]  
  Error Output:       



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]

您可以在日志中看到错误输出,请指导我哪里出错了。

谢谢

注意:我正在使用 UBUNTU 12.04 LTS 64 BIT

通过以下操作检查您是否拥有 mcrypt:

php -i | grep mcrypt

如果你没有那么:

试试这个:

sudo apt-get install php5-mcrypt
sudo opt/lampp/lampp restart

其他:

export PATH="/opt/lamp/php-bin-path:$PATH"

运行以下,然后尝试安装。

sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt