Seems like geth.ipc path is not set. When you installed geth, it is necessary to add the IPC path.
If you have initialized the genesis block correctly then you should have the file in ./data directory. Anyways you can find it like this:
It will show the location and then use that location
geth attach ipc:/<path to file>/geth.ipc console