cooperhammond / irs

:guitar: :notes: A music downloader that understands your metadata needs.
MIT License
381 stars 26 forks source link

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

Closed daraul closed 3 years ago

daraul commented 3 years ago

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 commented 3 years ago

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

daraul commented 3 years ago

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

cooperhammond commented 3 years ago

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

daraul commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Any luck fixing it?

daraul commented 3 years ago

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

daraul commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Yes, it works on popos. I figured it might be an OS specific issue, but i wasn't sure where else to start looking for solutions. I don't know of any other crystal projects, I think this might be the first I've encountered.

On Thu, 15 Jul 2021, 10:53 Cooper Hammond, @.***> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cooperhammond/irs/issues/80#issuecomment-880761161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAST6D67RD3NZ4NSEDCF3ZLTX3Y7TANCNFSM477QXUXQ .

cooperhammond commented 3 years ago

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!