Help needed starting hammerdbcli #671
-
Hello all, when trying to start ./hammerdbcli on my VirtualBox VM running Fedora Server 39, I get the following error: "While loading module "Thread". . . I've been trying to get to the bottom of this problem, unfortunately without any success yet. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This error comes from HammerDB not being able to find the lib directory. Make sure you run HammerDB from the HammerDB home directory. hammerdbcli is a shell script that will set the library path to:
and then run the executable so it will need to find the libraries in You can troubelshoot by running the tclsh directly as follows and see the same thing. So if we don't have
Now if we export our library path at the command shell to put
and then run from the HammerDB directory where we have
Now running hammerdbcli will work as well. This dependency on running from the home directory and finding the correct paths is discussed here #597 and plans are in progress to build a single file executable that will prevent this issue. |
Beta Was this translation helpful? Give feedback.
OK, so you definitely shouldn't modify hammerdbcli it will not work with a system installed tclsh as it has been modified.
Change this back to
./bin/tclsh8.6
then cd to the HammerDB directory and run./hammerdbcli
if there is not a tclsh8.6 executable in the HammerDB bin directory then now we have this new error another possible cause you may have is that you have downloaded the HammerDB source from GitHub and are trying to run it without compiling it first and not the pre-compiled executable available as a release file.If this is the case, you need to download the executable version instead from here https://www.hammerdb.com/download.html.
Alternatively, you can use a pre-built Docker …