Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

running nextcloud on ubuntu 16.04 fails #34

Closed
Corvan opened this issue Oct 13, 2016 · 13 comments
Closed

running nextcloud on ubuntu 16.04 fails #34

Corvan opened this issue Oct 13, 2016 · 13 comments

Comments

@Corvan
Copy link

Corvan commented Oct 13, 2016

Hey,

I managed building nextcloud, but after make and make install running /usr/local/bin/nextcloud fails

this is my make install output:

[  2%] Built target cstdlib
[  9%] Built target ocsync
[  9%] Automatic moc for target nextcloudsync
[  9%] Built target nextcloudsync_automoc
[ 29%] Built target nextcloudsync
[ 29%] Automatic moc for target nextcloud
[ 29%] Built target nextcloud_automoc
[ 30%] Automatic moc for target updater
[ 30%] Built target updater_automoc
[ 32%] Built target updater
[ 97%] Built target nextcloud
[ 97%] Automatic moc for target nextcloudcmd
[ 97%] Built target nextcloudcmd_automoc
[100%] Built target nextcloudcmd
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/etc/Nextcloud/sync-exclude.lst
-- Installing: /usr/local/lib/x86_64-linux-gnu/nextcloud/libocsync.so.2.2.4
-- Installing: /usr/local/lib/x86_64-linux-gnu/nextcloud/libocsync.so.0
-- Installing: /usr/local/lib/x86_64-linux-gnu/nextcloud/libocsync.so
-- Installing: /usr/local/include/nextcloudsync/mirall/account.h
-- Installing: /usr/local/include/nextcloudsync/mirall/syncengine.h
-- Installing: /usr/local/include/nextcloudsync/mirall/configfile.h
-- Installing: /usr/local/include/nextcloudsync/mirall/networkjobs.h
-- Installing: /usr/local/include/nextcloudsync/mirall/progressdispatcher.h
-- Installing: /usr/local/include/nextcloudsync/mirall/syncfileitem.h
-- Installing: /usr/local/include/nextcloudsync/mirall/syncjournaldb.h
-- Installing: /usr/local/include/nextcloudsync/mirall/syncresult.h
-- Installing: /usr/local/include/nextcloudsync/creds/abstractcredentials.h
-- Installing: /usr/local/include/nextcloudsync/creds/httpcredentials.h
-- Installing: /usr/local/lib/x86_64-linux-gnu/libnextcloudsync.so.2.2.4
-- Installing: /usr/local/lib/x86_64-linux-gnu/libnextcloudsync.so.0
-- Installing: /usr/local/lib/x86_64-linux-gnu/libnextcloudsync.so
-- Set runtime path of "/usr/local/lib/x86_64-linux-gnu/libnextcloudsync.so.2.2.4" to "/usr/local/lib/x86_64-linux-gnu/nextcloud"
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/22x22/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud.png
-- Installing: /usr/local/share/icons/hicolor/512x512/apps/Nextcloud.png
-- Installing: /usr/local/share/nextcloud/i18n/client_sl.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_es.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_cs.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_ca.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_uk.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_nb_NO.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_it.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_zh_TW.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_TW.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_pl.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_pt_BR.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_eu.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_sr.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_sk.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_sv.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_es_AR.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_pt.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_ja.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_fa.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_en.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_ru.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_fi.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_nl.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_fr.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_gl.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_hu.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_th.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_tr.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_de.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_et.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_el.qm
-- Installing: /usr/local/share/nextcloud/i18n/client_zh_CN.qm
-- Installing: /usr/local/bin/nextcloud
-- Set runtime path of "/usr/local/bin/nextcloud" to "/usr/local/lib/x86_64-linux-gnu/nextcloud"
-- Installing: /usr/local/share/applications/nextcloud.desktop
-- Installing: /usr/local/bin/nextcloudcmd
-- Set runtime path of "/usr/local/bin/nextcloudcmd" to "/usr/local/lib/x86_64-linux-gnu/nextcloud"
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/128x128/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/256x256/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_sync.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_sync_shared.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_error.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_ok.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_warn_shared.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_warn.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_error_shared.png
-- Installing: /usr/local/share/icons/hicolor/72x72/apps/Nextcloud_ok_shared.png
-- Installing: /usr/local/share/nautilus-python/extensions/syncstate.py
-- Installing: /usr/local/share/nemo-python/extensions/syncstate.py

and this is the output calling /usr/local/bin/nextcloud

/usr/local/bin/nextcloud
/usr/local/bin/nextcloud: error while loading shared libraries: libnextcloudsync.so.0: cannot open shared object file: No such file or directory

additionally the desktopfile in /usr/local/share/applications does not bring nextcloud to the unity dashboard it has to be in /usr/share/applications

@Corvan
Copy link
Author

Corvan commented Oct 14, 2016

I got it working with creating symlinks, but that's not the way it should be

@mzehrer
Copy link

mzehrer commented Oct 16, 2016

You can add a configuration to /etc/ld.so.conf.d/... that includes the path /usr/local/lib/x86_64-linux-gnu

@rullzer
Copy link
Member

rullzer commented Oct 17, 2016

As @mzehrer said. Probabaly your distro doesn't allow (by default) to load libs from /usr/local/..

@Corvan
Copy link
Author

Corvan commented Oct 17, 2016

No that is not the problem, the Problem is that the libs are installed into /usr/local/lib/x86_64-linux-gnu but the client expects them to be in /usr/local/lib/x86_64-linux-gnu/nextcloud

@pasbec
Copy link

pasbec commented Oct 17, 2016

For me, changing CMAKE_INSTALL_DIR to /usr instead of the default /usr/local worked just fine

@elpraga
Copy link

elpraga commented Jan 8, 2017

... or just copy / link the libs to /usr/lib

@enoch85
Copy link
Member

enoch85 commented May 9, 2017

Is this still an issue? Otherwise please close. Thanks!

@elpraga
Copy link

elpraga commented May 10, 2017

I just upgraded to the last version using PPA (I don't see any additional version number apart from 2.3.1) and the issue still persist. (Even though it seemed to have been fixed before this today's update).

Cannot close. Still persist.

@ivaradi
Copy link
Collaborator

ivaradi commented May 10, 2017

I have the client installed from the PPA, and while the library is in /usr/lib/x86_64-linux-gnu and the client first looks for it in /usr/lib/x86_64-linux-gnu/nextcloud/, when it fails, it looks for the library in the previously mentioned directory. See the strace output:

8539 open("/usr/lib/x86_64-linux-gnu/nextcloud/libnextcloudsync.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
8539 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
8539 open("/usr/lib/x86_64-linux-gnu/libnextcloudsync.so.0", O_RDONLY|O_CLOEXEC) = 3
8539 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3201\4\0\0\0\0\0"..., 832) = 832
8539 fstat(3, {st_mode=S_IFREG|0644, st_size=1224736, ...}) = 0
8539 mmap(NULL, 3320448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f749c8dc000

And it does so with all the other libraries. So I think it must be some local configuration problem. Which distribution do you use?

@elpraga
Copy link

elpraga commented May 10, 2017

I'm currently using Ubuntu 17.04, upgraded from 16.04; I was able to find the exact version of the client I have installed, it is 2.3.1-20170510.104358~zesty1. Please note, I have never had any kind of ownCloud software installed on this machine.

Could the problem be that there is some string forgotten to be translated (or changed to Nextcloud instead of ownCloud)? Possibly something related to the notification server?

@enoch85
Copy link
Member

enoch85 commented May 10, 2017

I run nextcloud-client (2.3.1-20170510.175459~zesty1 on Ubuntu 17.04 Budgie without any issues at all.

@enoch85
Copy link
Member

enoch85 commented Jun 5, 2017

This issue has been inactive for some time now.

Is this issue related to the ownCloud client, (thus not an theming isssue) please close it and report the issue here instead.
Is this issue related to this repo but solved, please close it and if possible let us know what solved the issue.
Is this issue still not solved, please let us know as well.

If I don't hear anything from the one who created this issue within 2 weeks, I will close the issue.

@enoch85
Copy link
Member

enoch85 commented Jun 25, 2017

Closing since it was over 2 weeks since anyone responded. Please reopen if this issue still persists. Thanks!

@enoch85 enoch85 closed this as completed Jun 25, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants