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

Cannot initialize ruby plugin: failed to load ruby library #2023

Closed
ghost opened this issue Mar 11, 2022 · 5 comments · Fixed by #2475
Closed

Cannot initialize ruby plugin: failed to load ruby library #2023

ghost opened this issue Mar 11, 2022 · 5 comments · Fixed by #2475

Comments

@ghost
Copy link

ghost commented Mar 11, 2022

This message is being thrown on a fully updated Arch system using DFHack 0.47.05-r4
libruby.so is present in the /hack directory.
Any advice?

@lethosor
Copy link
Member

Anything in stderr.log?

@myk002
Copy link
Member

myk002 commented Mar 12, 2022

Also, just to check, this is newly broken, right? It worked in DFHack 0.47.05-r3?

What is the output of ldd libruby.so? What is the output of LD_LIBRARY_DIR=df_linux/libs ldd df_linux/hack/plugins/libruby.so? (I think I got that lib dir correct, but double check that it exists and has shared objects in it)

@permaloom
Copy link

I had the same issue. Running ldd libruby.so on my Arch system informed me that the file libcrypt.so.1 was not found. After installing the libxcrypt-compat package via pacman, the issue seems to have been resolved.

@ghost
Copy link
Author

ghost commented Mar 12, 2022

Anything in stderr.log?

I've attached a copy, feel free to peruse.

Also, just to check, this is newly broken, right? It worked in DFHack 0.47.05-r3?

I thought that might be worth looking into, and no, it's broken on r3 as well. A completely clean install on a clean copy of DF. Same error.

What is the output of ldd libruby.so? What is the output of LD_LIBRARY_DIR=df_linux/libs ldd df_linux/hack/plugins/libruby.so? (I think I got that lib dir correct, but double check that it exists and has shared objects in it)

The output of a 'ldd libruby.so' within the /hack directory yields...

ldd: warning: you do not have execution permission for `./libruby.so'
	linux-vdso.so.1 (0x00007ffe9bdbc000)
	librt.so.1 => /usr/lib/librt.so.1 (0x00007fe669278000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fe669270000)
	libcrypt.so.1 => not found
	libm.so.6 => /usr/lib/libm.so.6 (0x00007fe669188000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007fe668bf0000)
	/usr/lib64/ld-linux-x86-64.so.2 (0x00007fe6692a8000)

The output of 'LD_LIBRARY_DIR=df_linux/libs ldd df_linux/hack/plugins/libruby.so' exactly as written yields...

ldd: df_linux/hack/plugins/libruby.so: No such file or directory

I had the same issue. Running ldd libruby.so on my Arch system informed me that the file libcrypt.so.1 was not found. After installing the libxcrypt-compat package via pacman, the issue seems to have been resolved.

Indeed, installing libxcrypt-compat has seemingly resolved the issue for me as well.

@myk002
Copy link
Member

myk002 commented Mar 14, 2022

Maybe we can document this dependency on https://github.com/DFHack/dfhack/blob/develop/docs/Compile.rst#linux

@myk002 myk002 added this to To Do in 0.47.05-r5 via automation Mar 19, 2022
@lethosor lethosor mentioned this issue Apr 7, 2022
27 tasks
@lethosor lethosor added the ruby label Apr 7, 2022
@myk002 myk002 removed this from To Do in 0.47.05-r5 May 1, 2022
@myk002 myk002 added this to To do in 0.47.05-r6 via automation May 9, 2022
@myk002 myk002 moved this from To do to Bug shortlist in 0.47.05-r6 May 29, 2022
@myk002 myk002 moved this from Bug shortlist to To do in 0.47.05-r6 May 31, 2022
@myk002 myk002 removed this from To do in 0.47.05-r6 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants