huo-ju / photoprism-freebsd-port

The photoprism port for FreeBSD
BSD 2-Clause "Simplified" License
69 stars 15 forks source link

Make Config Failure #41

Closed EmperorMurfy closed 2 years ago

EmperorMurfy commented 2 years ago

Hello! So I tried installing Photoprism into TrueNAS core and it didn't exactly work. Now since TrueNAS core is based on FreeBSD, most people directed me here to install it. I've tried to do this in a clone jail shell and just normal shell in the ui, but it simply didn't work.

The git clone worked most of the time, but I couldn't execute make config or make && make install. It just simply didn't work and gave me an error. I don't know what I've done wrong.

I've attached a screenshot to the error I get down below. Screenshot 2022-08-08 193208

EmperorMurfy commented 2 years ago

I am happy to help if you need me to be more specific in certain area's to help solve this bug.

huo-ju commented 2 years ago

Do you have a copy of ports installed? Try to run ls /usr/ports/Mk/ in the jails. You can use portsnap fetch extract to get the port tree if there are no files.

EmperorMurfy commented 2 years ago

I'll try to do that. I'll keep you posted!

EmperorMurfy commented 2 years ago

I could not run ls /usr/port/Mk as it said there was no files. So, I ran portsnap fetch extract which did in fact run and completed without error.

EmperorMurfy commented 2 years ago

Make config did basically nothing but it didn't result in an error. Make && make install did run and had some gui's which I just resulted to default and didn't touch anything.

huo-ju commented 2 years ago

@EmperorMurfy Thanks for the reminder. The make config should be remove from the README. The make config is using for set the options to build the tensorflow in the previous releases, but we depends on the official libtensorflow ports instead of build it by ourself.

The README has been updated.

EmperorMurfy commented 2 years ago

BTW, I used nano to edit rc.conf. Is that ok?

EmperorMurfy commented 2 years ago

I'm kinda stuck now. I put in everything for rc.conf and saved it. I then tried setting up a password by pasting the line into shell and didn't do much and didn't run. I then tried running photoprism, which just said photoprism does not exist in /etc/rc.d or the local startup

Directories (/usr/local/etc/rc.d), or is not executable

huo-ju commented 2 years ago

Did you run the command make install successful? The photoprism should be build and install to /usr/local/bin/photoprism, then you can setup the password, and you can run photoprism directly.

EmperorMurfy commented 2 years ago

Yes, I did run it successfully

On Tue, Aug 9, 2022 at 4:27 PM Ju Huo @.***> wrote:

Did you run the command make install successful? The photoprism should be build and install to /usr/local/bin/photoprism, then you can setup the password, and you can run photoprism directly.

— Reply to this email directly, view it on GitHub https://github.com/huo-ju/photoprism-freebsd-port/issues/41#issuecomment-1209840046, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2N2ONA5HPYMJ7D3M6LQJUTVYK5J3ANCNFSM5562GKPA . You are receiving this because you were mentioned.Message ID: @.***>

EmperorMurfy commented 2 years ago

When I do ls /usr/local/bin/photoprism it just say's no such file or directory

EmperorMurfy commented 2 years ago

I think after the download and install, I start running into issues. I edited the config with nano and just copied and pasted this into rc.config: photoprism_enable="YES" photoprism_assetspath="/var/db/photoprism/assets" photoprism_storagepath="/var/db/photoprism/storage"

I didn't rly know where to put the password (fresh install) code so I just entered into into a the jail's shell and did nothing.

service photoprism start - had an error. Screenshot include

Screen Shot 2022-08-09 at 5 47 30 PM

d

EmperorMurfy commented 2 years ago

Do you mind running me through how to install this into truenas core jails? I want to compare it with my current understanding of how to install this. Perhaps I did something wrong in the installation instead of the code being broken.

huo-ju commented 2 years ago

There are no different between this port and other ports, just install the libtensorflow1 from official port tree, then make this ports, then make install if the build successful.

You may like to install the pre-build release: https://github.com/psa/photoprism-freebsd-port/releases

EmperorMurfy commented 2 years ago

How can I install the pre-build release? Please be patient with me as I am new to github and freebsd (truenas core)

EmperorMurfy commented 2 years ago

Would it be possible for you to make a .json file of this? Like something like these files: https://github.com/ix-plugin-hub/iocage-plugin-index

EmperorMurfy commented 2 years ago

How can I fetch the pre-build release? I did: fetch https://github.com/psa/photoprism-freebsd-port/releases and it didn't work.

huo-ju commented 2 years ago

Just download the pkg file, and use the pkg add command to install it locally.

Please read the FreeBSD document. https://www.freebsd.org/cgi/man.cgi?pkg-add(8)