during the late 1800s , french engineers who were inspired and cajoled by ferdinand de lesseps , the mastermind of egypt 's suez canal , spent 20 years in panama trying to excavate a sea-level waterway .