Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load: libnimhcr.so when compiling examples from hcr guide (Arch) #21691

Open
demetera opened this issue Apr 19, 2023 · 1 comment
Open

Comments

@demetera
Copy link

Description

Example from https://nim-lang.org/docs/hcr.html compiled with the switch -d:nimDebugDlOpen arg is okay, but running ./mymain throws the EM.

Nim Version

demetera@demeterapc ~/P/N/hcr> nim -v
Nim Compiler Version 1.6.12 [Linux: amd64]
Compiled at 2023-03-10
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 1aa9273640c0c51486cf3a7b67282fe58f360e91
active boot switches: -d:release

Current Output

libnimhcr.so: cannot open shared object file: No such file or directory
could not load: libnimhcr.so

Expected Output

No response

Possible Solution

No response

Additional Information

I didn't find libnimhcr.so on my system nowhere.
I was looking on the same issue before, found at least one of them closed: #13999

@ghost ghost added the Hot Code Reloading label Apr 21, 2023
@miguelmartin75
Copy link

Look under the "Native code targets" in the tutorial, you need to compile nimhcr and nimrtl runtimes

nim c --outdir:$PWD ~/.choosenim/toolchains/nim-#devel/lib/nimhcr.nim
nim c --outdir:$PWD ~/.choosenim/toolchains/nim-#devel/lib/nimrtl.nim

I cloned nim and compiled via source, you can change the choosenim dir to where you have nim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants