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

Install FLAVOR=notf onto previous 211118 Release keeping tensorflow #30

Closed
dml33 opened this issue Dec 3, 2021 · 3 comments
Closed

Comments

@dml33
Copy link

dml33 commented Dec 3, 2021

Hi.
I figured to compile 211130 Release with FLAVOR=notf. But, afterwards, when I tried to install it, it conflicted with previous 211118 release:

root@Emby2:~/photoprism-freebsd-port_211118 # make FLAVOR=notf install
===>  Installing for photoprism-notf-g20211130
===>  Checking if photoprism-notf is already installed
===>   Registering installation for photoprism-notf-g20211130
[Emby2] Installing photoprism-notf-g20211130...
pkg-static: photoprism-notf-g20211130 conflicts with photoprism-g20211018 (installs files into the same place).  Problematic file: /usr/local/bin/photoprism
*** Error code 1

Stop.
make[1]: stopped in /root/photoprism-freebsd-port_211118
*** Error code 1

Stop.

Then, I deinstalled the previous release:

root@Emby2:~/photoprism-freebsd-port_211118 # make deinstall photoprism
===>  Deinstalling for photoprism
===>   Deinstalling photoprism-g20211018
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        photoprism: g20211018

Number of packages to be removed: 1

The operation will free 398 MiB.
[Emby2] [1/1] Deinstalling photoprism-g20211018...
[Emby2] [1/1] Deleting files for photoprism-g20211018: 100%
make: don't know how to make photoprism. Stop

make: stopped in /root/photoprism-freebsd-port_211118

But, when I reinstalled the new 211130 release, tensorflow is not present:

root@Emby2:/ # photoprism --assets-path=/var/db/photoprism/assets --storage-path=/var/db/photoprism/storage --originals-path=/var/db/photoprism/storage/originals --import-path=/var/db/photoprism/storage/import passwd
ld-elf.so.1: Shared object "libtensorflow.so.1" not found, required by "photoprism"

How can we solve this situation, where the new release shall be installed, the previous one removed, but tensorflow shall remain untouched?

Thanks!

@huo-ju
Copy link
Owner

huo-ju commented Dec 3, 2021

I think you can use make FLAVOR=notf reinstall to keep the tensorflow lib and install new version binary photoprism.

deinstall will remove all files from the previous release, included the tensorflow lib.

@dml33
Copy link
Author

dml33 commented Dec 3, 2021

Thanks for the comment, but it does not work either, because the package has different name:

root@Emby2:~/photoprism-freebsd-port # make FLAVOR=notf reinstall
===>  Deinstalling for photoprism-notf
===>   photoprism-notf not installed, skipping
===>  Installing for photoprism-notf-g20211130
===>  Checking if photoprism-notf is already installed
===>   Registering installation for photoprism-notf-g20211130
[Emby2] Installing photoprism-notf-g20211130...
pkg-static: photoprism-notf-g20211130 conflicts with photoprism-g20211018 (installs files into the same place).  Problematic file: /usr/local/bin/photoprism
*** Error code 1

Stop.
make[2]: stopped in /root/photoprism-freebsd-port
*** Error code 1

Stop.
make[1]: stopped in /root/photoprism-freebsd-port
*** Error code 1

Stop.
make: stopped in /root/photoprism-freebsd-port

@huo-ju
Copy link
Owner

huo-ju commented Dec 3, 2021

oooops, my bad. Looks like it can't be updated except users can backup the tensorflow lib…the FLAVOR does not work as expected. Sorry for that. So please rebuild all of them as the previous release, I will figure out another way to skip the tensorflow building.

@huo-ju huo-ju closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants