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 build version 3.3.3 on Debian 11 #3795

Closed
71GA opened this issue Sep 14, 2021 · 1 comment
Closed

Can't build version 3.3.3 on Debian 11 #3795

71GA opened this issue Sep 14, 2021 · 1 comment
Labels

Comments

@71GA
Copy link

71GA commented Sep 14, 2021

Version of Nextcloud that comes with the Debian 11 by default is buggy. Also the official .appimage file from here is buggy.

So I the last resort for me is to build from source. I choose to take release 3.3.3 from here and we download it in .tar.gz compressed file:

┌───┐
│ $ │ ziga > ziga--workstation > Downloads
└─┬─┘ /dev/pts/2
  └─> wget https://github.com/nextcloud/desktop/archive/refs/tags/v3.3.3.tar.gz
  
┌───┐
│ $ │ ziga > ziga--workstation > Downloads
└─┬─┘ /dev/pts/2
  └─> tar -xzf v3.3.3.tar.gz 
  
┌───┐
│ $ │ ziga > ziga--workstation > Downloads
└─┬─┘ /dev/pts/2
  └─> cd desktop-3.3.3/
  
┌───┐
│ $ │ ziga > ziga--workstation > desktop-3.3.3
└─┬─┘ /dev/pts/2
  └─> mkdir build

┌───┐
│ $ │ ziga > ziga--workstation > desktop-3.3.3
└─┬─┘ /dev/pts/2
  └─> cd build

┌───┐
│ $ │ ziga > ziga--workstation > build
└─┬─┘ /dev/pts/2
  └─> sudo apt install pkgconf libqt5webenginewidgets5 cmake g++ qt5-default openssl libssl-dev libzip-dev qtbase5-private-dev qtdeclarative5-dev qtwebengine5-dev qt5keychain-dev qttools5-dev sqlite3 libsqlite3-dev libqt5svg5-dev zlib1g-dev libqt5websockets5-dev qtquickcontrols2-5-dev shared-mime-info inkscape libnextcloudsync-dev
  
┌───┐
│ $ │ ziga > ziga--workstation > build
└─┬─┘ /dev/pts/2
  └─> cmake .. -DCMAKE_INSTALL_PREFIX=/opt/nextcloud/ -DCMAKE_BUILD_TYPE=Debug

┌───┐
│ $ │ ziga > ziga--workstation > build
└─┬─┘ /dev/pts/2
  └─> sudo make install
  
┌───┐
│ $ │ ziga > ziga--workstation > bin
└─┬─┘ /dev/pts/0
  └─> sudo ln -s /opt/nextcloud/bin/nextcloud /usr/local/bin/nextcloud

Running the Nextcloud will produce an error:

┌───┐
│ $ │ ziga > ziga--workstation > bin
└─┬─┘ /dev/pts/0
  └─> nextcloud 
nextcloud: error while loading shared libraries: libnextcloudsync.so.0: cannot open shared object file: No such file or directory

Attention:
This can be solved by installing package libnextcloudsync-dev, but then a new error will occur:

┌───┐
│ $ │ ziga > ziga--workstation > bin
└─┬─┘ /dev/pts/0
  └─> nextcloud 
nextcloud: error while loading shared libraries: libnextcloud_csync.so.0: cannot open shared object file: No such file or directory

This one can't be fixed, because there is no package to fix this. Probably Debian 11 does not have it. How to fix this???

@71GA 71GA added the bug label Sep 14, 2021
@FlexW
Copy link

FlexW commented Sep 14, 2021

You installed the client to /opt/nextcloud. That means the shared libraries that the desktop client ships like libnextcloud_csync and so on will also be installed in directories below /opt/nextcloud. When you start the Nextcloud desktop client, the dynamic linker searches for the shared libraries that the desktop client needs. The search will fail because the shared libraries that the desktop client needs will be in directories that dynamic linker does not search. Installing the package libnextcloudsync-dev will be not a good idea because then you would not use the shared libraries that you compiled yourself. You would again use the libraries from your distro which you wanted to avoid.

You have the following possibilites:

  • Configure the dynamic linker to search in the correct directories
  • Installl the desktop client in a way that the shared libraries will be in a directory that is on the search list of the dynamic linker.
  • Tell the dynamic linker with the LD_LIBRARY_PATH environment variable where it should search for the shared libraries.

Here you can learn more about shared libraries https://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

Having said that, I'm not sure compiling the desktop client yourself will solve your problems. It's the same version.
I will close the ticket because your issue is not a bug, but rather a support question. For support questions you can go to https://help.nextcloud.com

@FlexW FlexW closed this as completed Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants