Gary Cooper and Burt Lancaster were in a movie called Vera Cruz. Its been so long I cant remember the particulars. You might check it out.
I’ve been looking for a movie too, from the 50’s in color.
It had “the Green Pirate” and I think something about the Barbary Coast.
The Green Pirate had a very fast xebec-style ship with green sails.
I remember the cinematography was spectacular.