Pergunta

I'm trying to install Propel 2.0 on my Mavericks (OS X 10.9). I followed the Git approach from the installation instructions, thus:

$ git clone git://github.com/propelorm/Propel2 vendor/propel

However, whenever I want to test my Propel installation by typing "propel" in Terminal, I'm getting this:

Fatal error: Class 'Symfony\Component\Finder\Finder' not found in /Users/Dawid/vendor/propel/bin/propel.php on line 16

What is the easiest way to make it work?

Foi útil?

Solução

So, you had cloned the Propel Git repository, and were finding that the console command does not work out of the box. This is because the repo was missing its dependencies - other libraries that Propel itself uses to work.

In the olden days, we'd just do git submodule init && git submodule update --recursive, and boom, all (Git) dependencies would be set up and downloaded. Now the hipster kids have switched to Composer, there's more faffing to be done (though, to be fair, it can retrieve deps from a much wider range of sources).

To install from Composer, one would normally do:

wget http://getcomposer.org/composer.phar
php composer.phar install

However, in your case, sudo was required for the last step - perhaps you're working in a folder to which your usual user does not have write access?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top