Closed techhazard closed 6 years ago
For the 0.7 binary, what's the output of running ldd
on the binary?
0.6.2 sounds like it's running correctly. If want a background, you need to add the program (wc-bg) manually. Consult the configuration file to see and modify keybindings.
For the 0.7.0
one ldd
gives the following:
$ ldd $(which way-cooler)
linux-vdso.so.1 => (0x00007ffe95aaa000)
liblua.so.5.3 => not found
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007ff2cf4fa000)
libwlc.so.0 => not found
libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007ff2cf2ba000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007ff2cf098000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007ff2cee44000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff2ceb33000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff2ce92f000)
libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007ff2ce61a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff2ce412000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff2ce1f5000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff2cdfde000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff2cdc14000)
/lib64/ld-linux-x86-64.so.2 (0x000055c2c1b92000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007ff2cdb8f000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007ff2cd98a000)
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007ff2cd602000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff2cd2f9000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007ff2cd0f0000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff2cce80000)
libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007ff2ccbd8000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007ff2cc994000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff2cc6ea000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007ff2cc4c5000)
libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007ff2cc2c0000)
libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007ff2cc0b6000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff2cbe94000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007ff2cbc89000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff2cb94f000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007ff2cb73d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff2cb522000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007ff2cb300000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ff2cb0dd000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007ff2cadfc000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff2cabe1000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff2ca9b7000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff2ca7b3000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff2ca5ac000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007ff2ca398000)
It seem it can't find liblua
, which is odd, since I have installed the liblua-5.3-0
package. Installing the dev package (liblua5.3-dev
) didn't help either, even after running ldconfig
.
It seems like libwlc
is missing as well, which is probably not good, but there's no package in apt for either libwlc
or wlc
That's weird you're missing wlc if you were able to run sway... You don't have a sway that's statically linked to wlc do you? Running ldd $(which sway)
should show the same thing, but if it can find it that's very strange...
Can you find
the Lua and wlc dynamic libraries on your system? It's possible their in a weird place, like /usr/local/
. We've had problems in the past with Ubuntu finding the shared libraries.
ldd $(which sway)
returns: not a dynamic executable
, I installed it via the PPA.
With my limited knowledge, liblua5.3 seems to be at the correct location
$ find / -iname '*lua*so' 2>/dev/null
/usr/lib/x86_64-linux-gnu/liblua5.3-c++.so
/usr/lib/x86_64-linux-gnu/liblua5.3.so
Also, I'm running Ubuntu 16.04 if that's any help
Installing wlc
from source, changes this line:
libwlc.so.0 => /usr/local/lib/libwlc.so.0 (0x00007f45a9528000)
It's just liblua.so.5.3
now
$ sudo ldconfig -v | grep -i lua5.3
liblua5.3.so.0 -> liblua5.3.so.0.0.0
liblua5.3-c++.so.0 -> liblua5.3-c++.so.0.0.0
$ ls -la /usr/lib/x86_64-linux-gnu/ | grep liblua5.3.so
lrwxrwxrwx 1 root root 18 apr 14 2016 liblua5.3.so -> liblua5.3.so.0.0.0
lrwxrwxrwx 1 root root 18 apr 14 2016 liblua5.3.so.0 -> liblua5.3.so.0.0.0
-rw-r--r-- 1 root root 224104 apr 14 2016 liblua5.3.so.0.0.0
$ cd /usr/lib/x86_64-linux-gnu
$ ln -s liblua5.3.so.0.0.0 liblua.so.5.3
This fixed it :tada: (at least I have a background :slightly_smiling_face:)
I'm not sure why the name is different, and if that's ubuntu's error, or way-cooler's
Now on to figure out how I can spawn an alacritty terminal in way-cooler :smiley:
Thanks for detailing your fix! Not sure why you had problems linking to Lua... I'll have to investigate this later.
TBH there's a million and one problems with Ubuntu, so I'll probably just eventually make a PPA and point all future problem-havers to that instead.
That's a great idea! Travis will probably make it very easy to add new builds to the ppa. Here's some resources I found: Making a PPA create deb packages with cargo
Description
I installed way-cooler via the installer script. but it won't start.
Version
way-cooler --version
crashes with the below error message. But when I dowloaded the binary version0.7.0
it crashes with the same error.Debug log
I am able to run sway, so that's not it.
0.6.2
This version missed a few dependencies as well, but after installing those it shows a blank screen at runtime; both from within unity, as from a tty.