ronanguilloux / php-gpio

A PHP library to play with the Raspberry PI's GPIO pins
MIT License
270 stars 59 forks source link

"git was not found" when installing from composer #4

Closed ronanguilloux closed 11 years ago

ronanguilloux commented 11 years ago

(received from David P., I write it back here in case it serves to others users )

I have tried to install the php gpio library and I seem to be running into a problem. Please forgive me, I am a beginner. I'm sure I'm missing something very fundamental :)

Following instructions at https://github.com/ronanguilloux/php-gpio

When I try to execute

php composer.phar create-project --stability='dev' ronanguilloux/php-gpio intoYourPath

I get an error

[RuntimeException] Failed to clone http://github.com/ronanguilloux/php-gpio.git, git was not found, check that it is installed and in your PATH env.

sh: 1: git: not found I also get errors in my PHP when I try to

<?php

require 'vendor/autoload.php';

Basic php seems to work OK in a web page.

Can you point me in the right direction?

ronanguilloux commented 11 years ago

git is needed to install php-gpio from sources => updated README => closed