Problems with composer, mcrypt and laravel in ubuntu 14.04

1

I already have a preexisting project and I need to install laravel on it, however:

$ php ../composer.phar create-project laravel/laravel
Installing laravel/laravel (v4.2.11)



  [InvalidArgumentException]                                                 
  Project directory /opt/lampp/htdocs/balaozinho/src/laravel/ is not empty.  



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]

How can I resolve?

    
asked by anonymous 10.01.2015 / 07:39

1 answer

0

The error says that the "laravel" directory already exists. Create a project by defining a different name. For example:

composer create-project laravel/laravel your-project-name --prefer-dist

Change "your-project-name" to the directory name

On Mcrypt, you need to inscribe lib mcrypt (the lib itself and lib pro PHP):

apt-get install libmcrypt4 php5-mcrypt

A very complete article on Composer can be seen here: link

    
14.06.2015 / 18:05