문제

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?

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top