Problems with Composer, mcrypt and Laravel on Ubuntu 14.04

Asked

Viewed 76 times

1

I already have a pre-existing project and I need to install the Lockable in it, however it gives this:

$ 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 solve?

  • could not delete the content within the existing Folder or move it to another location as backup?

  • What’s the matter with mcrypt?

1 answer

0

The error says that the "Laravel" directory already exists. Create a project by setting another name. For example:

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

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

About Mcrypt, you need to insltalar a lib mcrypt (the lib itself and the lib pro PHP):

apt-get install libmcrypt4 php5-mcrypt

A complete article about Composer can be seen here: http://rberaldo.com.br/composer-php/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.