Before input 'gpio readall', need install wiringPi
download "wiringPi":git clone git://git.drogon.net/wiringPi
enter the file of wiringPi
build and install: ./build