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

Can't find libevent-2.1.so.6 #80

Closed
daraul opened this issue Jul 7, 2021 · 13 comments
Closed

Can't find libevent-2.1.so.6 #80

daraul opened this issue Jul 7, 2021 · 13 comments

Comments

@daraul
Copy link

daraul commented Jul 7, 2021

When I try to install irs, I get error while loading shared libraries: libevent-2.1.so.6. I realize this is an issue on my OS (popos), but maybe there's some package I should be installing?

I tried searching the ubuntu repos for the file, but no luck.

https://packages.ubuntu.com/search?searchon=contents&keywords=libevent-2.1.so.6&mode=exactfilename&suite=hirsute&arch=any

@cooperhammond
Copy link
Owner

Hmm, this is interesting, are you building from source?

@daraul
Copy link
Author

daraul commented Jul 11, 2021

Nope, I just download the latest release, unzip it, symlink the irs binary to ~/.local/bin, and try to run it.

@cooperhammond
Copy link
Owner

Try to give the newest release a try, I'm not expecting it to fix much, but maybe...

@daraul
Copy link
Author

daraul commented Jul 12, 2021

That doesn't do it, but maybe I've misconfigured the "binary_directory" variable. I just realized I had it set to ~/.irs/bin, when I was dropping the binary into ~/.local/bin. Do you think that might be it?

@cooperhammond
Copy link
Owner

That's certainly a problem, but it shouldn't be giving you an error like that. I believe there's some form of catch that would tell you whether you had your config misconfigured.

https://stackoverflow.com/questions/17110844/error-while-loading-shared-libraries-libevent-1-4-so-2-cannot-open-shared-obje

https://pkgs.org/download/libevent-2.1.so.6()(64bit)

https://www.programmersought.com/article/54035038658/

These are some links I found, hopefully, they can help. Most pertinent seems to be the last one, but give them all a look and see if they can help you out.

@cooperhammond
Copy link
Owner

Any luck fixing it?

@daraul
Copy link
Author

daraul commented Jul 13, 2021

Haven't made another attempt at it yet. When I do I'll drop you a line here.

@daraul
Copy link
Author

daraul commented Jul 14, 2021

This just gets weirder and weirder. I installed memcached on my arch machine, which replaced this error with error while loading shared libraries: libpcre.so.3. So now it can't find that. I installed memcached on my popos machine, and that did nothing to fix the error. I'll try just downloading the libraries and symlinking them to the appropriate place and get back to you.

@daraul
Copy link
Author

daraul commented Jul 14, 2021

Wait, my mistake. I just uninstalled memcached and arch still complained about libpcre.so.3, so it seems like installing memcached didn't do anything there either.

@daraul
Copy link
Author

daraul commented Jul 14, 2021

Right, I downloaded the deb file from here, and installed it. That works on my popos machine.

It doesn't seem like this is expected to happen, though. So, did I do something wrong?

@cooperhammond
Copy link
Owner

Wait, so just to be clear it is running now? I don't think you did anything wrong, I think it's probably just some form of environment error/misconfig.

Also, it might be worth testing whether any other Crystal lang binaries will run on your machine because I'm doubtful it's a problem unique to the binaries this project produces.

@daraul
Copy link
Author

daraul commented Jul 15, 2021 via email

@cooperhammond
Copy link
Owner

Yeah Crystal is a bit obscure still and I don't know about popos so it might be in the same boat, bad luck I guess :/ Glad you got it working!

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