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