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

typo ? leads to failure to compile #50

Open
dkragen opened this issue Mar 13, 2024 · 5 comments
Open

typo ? leads to failure to compile #50

dkragen opened this issue Mar 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@dkragen
Copy link

dkragen commented Mar 13, 2024

Description

Tried to install using installer.sh. Repeatedly, resulted in two errors. First was that config directory wasn't created. After I created one manually, the installer made it past that error.

However, then failed at the stage where ld is gathering items. ld was unable to find keybinder-3.0("note: /usr/bin/ld: cannot find -lkeybinder-3.0"), which I believe is actually one of the following:
/usr/lib64/libkeybinder-3.0.so.0.0.0
/usr/lib64/libkeybinder-3.0.so.0
/usr/lib64/girepository-1.0/Keybinder-3.0.typelib
probably the last, in Fedora 38.

System information

  • Findex Version: 0.8.1

Output of rustc --version --verbose:

rustc 1.76.0 (07dca489a 2024-02-04)
binary: rustc
commit-hash: 07dca489ac2d933c78d3c5158e3f43beefeb02ce
commit-date: 2024-02-04
host: x86_64-unknown-linux-gnu
release: 1.76.0
LLVM version: 17.0.6

Log/Output (if applicable)

.findex-logs doesn't exist.

@dkragen dkragen added the bug Something isn't working label Mar 13, 2024
@mdgaziur
Copy link
Owner

Can you provide a bit more information about the first error? Was that a silent one?

@mdgaziur
Copy link
Owner

Does it compile successfully when you run cargo build --release?

@dkragen
Copy link
Author

dkragen commented Mar 14, 2024 via email

@mdgaziur
Copy link
Owner

I am not really sure what might be causing this as I've never used Fedora. I think you can try prebuilt binaries instead. For now, you have to manually copy and install it. I'll add the capability to install prebuilt binaries sooner or later.

@trinitronx
Copy link
Contributor

trinitronx commented Jun 30, 2024

= note: /usr/bin/ld: cannot find -lkeybinder-3.0: No such file or directory

This error indicates that the system you are compiling this on is missing libkeybinder-3.0. I encountered this same issue until I installed the libkeybinder3 package. Usually, it means that ld can't find the library to link against. The -lkeybinder3 is not a typo, it's the way that the gcc linker args work. For example, to link against libfoo, you would issue gcc -lfoo ....

  • On Arch Linux based distros, run:

    sudo pacman -Sy libkeybinder3
    
  • On Debian-based distros, run:

    sudo apt install libkeybinder-3.0-dev libkeybinder-3.0-0
    
  • On RHEL-based distros, run:

    sudo dnf install keybinder3 keybinder3-devel
    
  • For other distros, search for the libkeybinder 3.0 package name and install it using the appropriate package manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants