pic16f877a.INC is a MPASM file. Do you have MPLAB installed?
If not you can compile using PM.
If you are using Micro code Studio and have MPASM checked as the assembler and MPASM is not installed then you would not be able to assemble for the 877.

Can you give more info about your setup?