question

Andrew E2 avatar image
0 Likes"
Andrew E2 asked Jordan Johnson commented

libpq.dll: The specified module could not be found

I am wondering if people are having this same problem in FlexSim 2021:

I have been able to connect to our PostgreSQL database just fine in earlier versions of FlexSim, but when I downloaded FlexSim 2021 I got this error when trying to connect:

Connection Failed with Error: libpq.dll: The specified module could not be found. pq.dll: The specified module could not be found.

Is this a bug in the newer version of FlexSim or did I somehow corrupt my dll file?

FlexSim 21.0.3
flexsim 21.0.3dll error
1615322843528.png (23.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

if it worked with FlexSim20, then it has probably something to do with Product Roadmap Announcement.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Andrew E2, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

Unfortunately we haven't seen or heard from anyone else having that error. Is there any more information you can provide? What have you tried so far?

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

I suggest you search the internet for “Connection Failed with Error: libpq.dll”.

If you can confirm that is related to “libeay32.dll”,because the openSSL library is loaded by the driver, then please search for this dll here at this answers.site again.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Andrew E2 avatar image
3 Likes"
Andrew E2 answered Jordan Johnson commented

We figured out the problem. You have to edit environment variables and add C:\Program Files\FlexSim 2021\modules\Emulation\openssl to the system's PATH.

The error is actually a generic error and it is specifically looking for 2 dll files in the openssl file, libeay32.dll and ssleay32.dll. After adding the openssl file to the PATH it worked fine. This is an error that is new in FlexSim 2021 that we didn't see previously in FlexSim 2020 and earlier. @Ben Wilson, could this be automatically done on installation of FlexSim 2021?

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jordan Johnson avatar image Jordan Johnson ♦♦ commented ·

We're adding a case to the dev list about this issue. Thanks for passing this information along, it's very helpful.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.