I don't think anyone here knows what a "scanline shader" is.

MAME already ships with shaders, and you just need to enable them, there's no need to install anything.

What platform are you running MAME on? That would be a good start.