Compiling Assisstance? (Debian Buster)

  • Hi all,
    I’m trying to compile Kopano Core from the master branch and encountering some problems. The compilation itself goes fine, however fails when I perform make install.

    I’m building this inside of a docker container with the ultimate goal of installing to a directory where I could tar the results and copy it into another Docker Image, however even just a straight install fails.

    OS: Debian Buster
    Configure options --enable-release (I have tried others including this with same results:

        PYTHON3=/usr/bin/python3 ./configure \
                                              --prefix / \
                                              --exec-prefix=/usr \
                                              --localstatedir=/var \
                                              --libdir=/usr/lib \
                                              --sysconfdir=/etc \
                                              --sbindir=/usr/bin \
                                              --datarootdir=/usr/share \
                                              --includedir=/usr/include \
                                              --enable-epoll \
                                              --enable-kcoidc \

    Upon completion of the configuration scripts, I perform a make which seemingly compiles with no errors.
    Upon executing make install I am presented with errors when it attempts to execute in the Kopano Backup tool. I can however enter into the filesystem manually, execute on my own and it seemingly performs the install of the backup tool, however I would prefer if it happened in the same make install command. Output here:

    renamed '/etc/logrotate.d/kopano.logrotate' -> '/etc/logrotate.d/kopano'
    make[5]: Leaving directory '/usr/src/kopano-core/installer/linux'
    make[4]: Leaving directory '/usr/src/kopano-core/installer/linux'
    make[3]: Leaving directory '/usr/src/kopano-core/installer/linux'
    make[2]: Leaving directory '/usr/src/kopano-core/installer/linux'
    Making install in ECtools/backup
    make[2]: Entering directory '/usr/src/kopano-core/ECtools/backup'
    make[3]: Entering directory '/usr/src/kopano-core/ECtools/backup'
     /bin/mkdir -p '/usr/bin'
     /usr/bin/install -c kopano-backup '/usr/bin'
    rm -Rf staging
    /bin/mkdir -p staging
    cp -a ./ ./setup.cfg ./kopano_backup staging/
    cp -a kopano_backup/ staging/kopano_backup/
    cd staging/ && \
    	build --build-base="/usr/src/kopano-core/ECtools/backup/build" \
    	install -f ${DESTDIR+--root=} \
    	--prefix="/" --install-purelib=""
    /bin/bash: line 1: command not found
    make[3]: Leaving directory '/usr/src/kopano-core/ECtools/backup'
    make[3]: *** [Makefile:623: install-exec-local] Error 127
    make[2]: *** [Makefile:509: install-am] Error 2
    make[2]: Leaving directory '/usr/src/kopano-core/ECtools/backup'
    make[1]: *** [Makefile:5190: install-recursive] Error 1
    make[1]: Leaving directory '/usr/src/kopano-core'
    make: *** [Makefile:5665: install] Error 2

    Am I missing any important patches that need to be applied here to make this successfully complete?

  • Kopano

  • Many thanks. I’ll walk through the Jenkins file and figure out where I’m going wrong!

  • PYTHON3 was definitely the problem. I was able to successfully build! Having a weird issue with it not taking PYTHON_PATH/PYTHON_EXEC_PATH variables to send the python packages to somewhere other than site-packages (I’m looking for dist-packages), but I have a rather embearassing hack in place to move them manually after install. Thanks for your assistance.