vSphere CLI libeay32.dll error on 64bit Windows 7

If you install the latest build of vSphere CLI 4.1 on Windows 7 x64 some of the commands will fail, with perl.exe throwing the following error:

The ordinal 3212 could not be located in the dynamic link library LIBEAY32.dll

There isn’t much to go on when you look up the error – just a lot of people saying you should delete all older copies of LIBEAY32.dll from your system.

Fortunately there is a neater solution, and I’m surprised VMware haven’t fixed this problem yet (4.0 also had the same issue).

  • Open your CLI command prompt as Administrator. Type ppm and hit enter (Perl Package Manager).
  • Now look for a module called Crypt-SSLeay. You’ll see that CLI’s bundled ActivePerl distribution includes version 0.53, but there is a newer version 0.57 available:ActiveState Perl PPM
  • Remove this as shown, then go to File -> Run Marked Actions
  • Click on the grey box icon on the left of the toolbar. These are available packages which are not currently installed. Search for Crypt-SSLeay once again, install, and Run Marked Actions. Exit.

Problem solved!

12 Responses to vSphere CLI libeay32.dll error on 64bit Windows 7

  1. Lee says:

    Thanks for this post. It worked for me.

  2. TM says:

    Great. Worked like a charm for me. Thanks Patters

  3. PS says:

    simply awesome. Thank you.

  4. Sirak says:

    This is great. It worked. Thank you

  5. Glitch says:

    Yup, worked for me too – thanks.

  6. Bernhard says:

    had the problem on a Windows 7 32bit machine. but I only had to right click and select “Install Crypt-SSLeay 0.57″ – not remove.

  7. Kevin Rhodes says:

    Had the problem on a Windows 2003 32bit machine. but I only had to right click and select “Install Crypt-SSLeay 0.57″ not remove first.

  8. Agostino says:

    Great. Thanks a lot. Worked for me too on Windows XP 32bit.

  9. Michael says:

    Thank you Thank you Thank you, I was looking all over to correct this DLL issue and nothing worked until I came across your post. I appreciate your help.

  10. werner says:

    Saved my day :-) My win 7 allways crashed with appcrash perl.exe when i try to use vihostupdate.pl with esxi 4.1 -> with 5.0 i haven’t that probs (ok it is a little bit other command)

    great job thank you

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 74 other followers