Error: Operation not permitted @ dir_s_mkdir - /var/empty/Library

$ brew install jpeg

Error: Operation not permitted @ dir_s_mkdir - /var/empty/Library

Warning: Bottle installation failed: building from source.

Error: An exception occurred within a child process:

Errno::EPERM: Operation not permitted @ dir_s_mkdir - /var/empty/Library

Not even root can modify /var/empty… What do I do to brew again? brew doctor says all is well.

Mojave for what it’s worth and I’ve installed many things before today.

What does brew config say?

I got the same run down… So after I clean installed…