Linux install broken #31
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#31
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kubuntu 20.04
After running
install-home.sh
from the Linux binary install https://cwtch.im/releases/cwtch-v1.0.0-16-gb1f81e4/cwtch-v1.0.0-16-gb1f81e4.tar.gz, running cwtch fails withI ran into the same problem for
install-sys.sh
on Debian 10.10.The workaround for it was using ldconfig:
But that won't work for the local installation with
install-home.sh
.Also, this is something the install script should have handled in some way, right?
Are you running cwtch through the .desktop file / menu, or by executing the binary? The .desktop file sets LD_LIBRARY_PATH, so I ended up putting the binary in /usr/lib/cwtch/ and making /usr/bin/cwtch a shell script:
Good call, thanks, I can switch the binary to an alt name, and move the LD_LIBRARY_PATH to a shell script so that it's invokable from the command line still!
Directly executing the binary, so library path is clearly not set, nor is the library in any of the "standard" places.
fwiw: The library (libraries!) are correctly installed to ~/.local/lib/cwtch so there's no problem there.
Including another report I received below which is related to the linux install process (though not libraries, but tor itself:
Cwtch Beta Testing #3
Cwtch has trouble finding the Tor executable
Running
And then opening Cwtch from the GNOME application search, gives the following warning
However, running
successfully launches the bundled Tor executable.
After installing Tor with
sudo apt install tor -y
, the launcher finds Tor (from/usr/sbin/tor
;$ which tor
points to that binary).The problem seems to be the
.desktop
launcher doesn't look for the downloaded Tor outsidecwd
, and if Tor isn't present in pre-existing$PATH
s, it won't be found.I managed to fix this by appending one of the following snippets to the
install-home.sh
:or
Neither is ideal. The latter one requires sudo privileges. I selected the path
/usr/local/bin
as it can be overridden by the Tor APT installation, at least on Ubuntu that has/usr/sbin/tor
listed first inPATH
. I can't comment on behalf of other distros.As for the first one, I tried different ways to export
~/.local/bin/
toPATH
from within the shell script file but didn't succeed to fix the need to log out and back in. Shell scripting is definitely not my forte however, so there might be a way to get it working.If using the bundled
tor
is desired, it may be best to just install both the cwtch and tor binaries to /usr/lib/cwtch/bin/ or ~/.local/share/cwtch/bin/, and install a script as/usr/bin/cwtch
that sets bothLD_LIBRARY_PATH
andPATH
.That avoids potential conflicts with a
tor
installed with apt/dnf/pacman/etc.On the other hand, you may want to use the system
tor
if it's newer? Maybe have the script runtor --version
and run e.g./usr/lib/cwtch/bin/cwtch --tor="$tor_binary_path"
Another tangent: The install script should really write
/usr/lib/cwtch/bin/uninstall-cwtch.sh
or something, I hate having to figure out what an installer did so I can manually remove an app.#95
should go a long way to addressing these concerns :)
the bundled tor is installed in the respective lib/cwtch directory, along with the cwtch binary. a simple shell script setting hte LD_LIBRARY_PATH is installed in the appropriate bin directory.
no more reports of this so I'm closing it :)
if anyone is still having problems please reopen and comment!