You probably want to post this in a MapServer forum, since there is nothing wrong
with your ArcSDE install, and the question is about MapServer customization.
If you had provided a link to the documentation, or a list of the needed libraries,
we might have been able to help, but whatever Esri libraries are needed will only
be in your Esri installation media, not freely available on the web.
- V