Open MPI broken after upgrading to Mac OS X 10.14.6 After upgrading to 10.14.6, openmpi no longer works on my MacBook Air (2019). Attempting to run any related commands mpicxx or mpiexec produce the error

    dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.1.6.dylib


I reinstalled the latest versions of openmpi (4.0.1) and libevent (2.1.11) (this wasn't necessary in the previous openmpi installation, but  openmpi could not make without it). However, even though the installation of openmpi was successful, it still seems to be still corrupted and fails with the same error as above when running mpiexec.

Any ideas what is causing this, or how to get this working again?
Open MPI 4.0.3 is now available from homebrew. brew upgrade openmpi will solve the problem.