Error building Fdroid server

fdroidserver

#1

Hi!
I’m installing the fdroid server on a centos server using all steps into the documentation:
https://f-droid.org/en/docs/Installing_the_Server_and_Repo_Tools/#installing-the-latest-code-any-platform

When i try to execute this command

python3 setup.py install
I have the following error:
error: can't copy 'locale/bo/LC_MESSAGES/fdroidserver.mo': doesn't exist or not a regular file

I notice that in all locale/*/LC_MESSAGES folders there isn’t the fdroidserver.mo

Into the git repository there is no fdroidserver.mo
https://gitlab.com/fdroid/fdroidserver/tree/master/locale/bo/LC_MESSAGES

How I can fix the problem and install the fdroid server?

Tnx!


#2

Hmm, I thought it should do it automatically, but I guess not. Try running this:
make -C locale compile


#3

Hi!

make -C locale compile
make: Entering directory `/usr/fdroidserver/locale'
msgmerge --sort-output --add-location=file --update de/LC_MESSAGES/fdroidserver.po fdroidserver.pot
msgmerge: option "--add-location" doesn't allow an argument
Try 'msgmerge --help' for more information.
make: *** [de/LC_MESSAGES/fdroidserver.po] Errore 1
make: Leaving directory `/usr/fdroidserver/locale'

Any idea?


#4

Looks like you have an old version of gettext. You can just remove --add-location=file from locale/Makefile and run again.


#5

Actually, make sure you have python3-babel installed, then python3 setup.py install should handle this correctly.


#6

Hi! I can’t solve the problem, so i’m installing the old version and it works!


#7

I was off by a little bit, you need to do:

python3 setup.py compile_catalog install

Or you can use the release version, where this is all taken care of:

pip install fdroidserver

#8