Not only should you, you have to. An equipment grounding conductor (EGC) is required to connect the metal frames and all metal racking, to the inverter, which itself has an equipment grounding conductor, that is ultimately connected to the service grounding system, and grounding electrode. It is common that the racking integrates the grounding connection to each panel, so you don't need a wire to run to each individual panel, but you still have at least one ground wire from the racking to the inverter, or your metal wiring method serving the same purpose.
The purpose of an EGC, is to provide a return path to the source for any faults. Unless you have a purely non-metal system, with all plastic and/or wood racking, you have to provide an EGC.