The upgrade fails because LD_LIBRARY_PATH is not set during the eDirectory upgrade.
To workaround this issue, set LD_LIBRARY_PATH with the eDirectory lib directories and then start the upgrade.