Tidal icon indicating copy to clipboard operation
Tidal copied to clipboard

tidal-listener: error while loading shared libraries

Open ndr-brt opened this issue 2 years ago • 3 comments

where

OS: Ubuntu 22.10

what

tidal-listener doesn't start, it returns:

./tidal-listener: error while loading shared libraries: libHStidal-listener-0.1.0.0-inplace-ghc9.0.1.so: cannot open shared object file: No such file or directory

how

  1. download tidal-listener artifact from actions ( I tried both the one built just after #996 and the latest one, same erro)
  2. extract it
  3. execute with ./tidal-listener

@polymorphicengine maybe you could help out. thanks

ndr-brt avatar Mar 21 '23 09:03 ndr-brt

Hey! This is more or less due to the following issue: https://github.com/haskell-hint/hint/issues/156, which we are really hoping to get fixed, but it is not looking good unfortunately.

This basically forces the dynamic flag in the compilation for it to work properly, which means that the binary that is generated by the workflow is not completely packaged..

the only way to use the listener right now is to compile it yourself (with the dynamic flag)

polymorphicengine avatar Mar 21 '23 09:03 polymorphicengine

I followed the documentation and did:

cd tidal-listener
cabal install

but I got

cabal: Cannot build the package tidal-listener-0.1.0.0 because none of the
components are available to build: the executable 'tidal-listener' and the
library are all marked as 'buildable: False'

ndr-brt avatar Mar 21 '23 10:03 ndr-brt

ah sorry, it should be cabal build.

the error you are getting is weird though.. you don't have an old tidal-listener.cabal file somehow, right? can you check if it says buildable: False, somewhere in there?

just tried it on my machine (ubuntu 22.04.1) and it works for me

polymorphicengine avatar Mar 21 '23 10:03 polymorphicengine