Installing nextcloud on fedora is not trivial as you first need to download the code, install some dependencies and compile it.
git clone https://github.com/nextcloud/client_theming.git git submodule update --init --recursive sudo dnf install cmake gcc-c++ openssl-devel sqlite-devel qt5-qtwebkit-devel libqt5keychain-devel mkdir build-linux cd build-linux cmake -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client make sudo make install
Without installing the dependencies you would get the following error messages:
- No CMAKE_CXX_COMPILER could be found.
- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
OPENSSL_INCLUDE_DIR) (Required is at least version “1.0.0”)
- No package ‘sqlite3’ found. Could NOT find SQLite3 (missing: SQLITE3_LIBRARIES SQLITE3_INCLUDE_DIRS)
(Required is at least version “3.8.0”)
- Could NOT find Qt4 (missing: QT_QTWEBKIT_INCLUDE_DIR QT_QTWEBKIT_LIBRARY) (found suitable version “4.8.7”, minimum required is “4.7.0”)
Qt QTWEBKIT library not found.
- Could NOT find QtKeychain (missing: QTKEYCHAIN_LIBRARY
Before you can start it you need to add the following line in ~/.bashrc and restart the system
otherwise you get the error nextcloud: error while loading shared libraries: libnextcloudsync.so.0: cannot open shared object file: No such file or directory
Also don’t forget to uninstall the old client:
sudo dnf remove owncloud-client
On the first start the Nextcloud Connection Wizard opens. You can now enter the Server Adress, Username and Password. Then you need to select the folders that you want to sync and as local folder you chose the same folder as you configured with owncloud. If you do this, the option “Keep local data” appears and if you check it, the data will be taken over.