Blockquote
copying tests/test_bug_gc.py → build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_bugX000.py → build/lib.linux-x86_64-2.7/psycopg2/tests
running build_ext
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in ‘setup.cfg’.
make[2]: *** [packages/python-modules/python-modules.make:238: /home/git/checkmk-master/omd/build/stamps/python-modules-1.7.0i1.cre-build] Error 1
make[2]: Leaving directory ‘/home/git/checkmk-master/omd’
error: Bad exit status from /var/tmp/rpm-tmp.glKlS3 (%install)
RPM build errors:
Macro expanded in comment on line 15: %define _missing_doc_files_terminate_build 0
Macro expanded in comment on line 16: %define _unpackaged_files_terminate_build 0
Bad exit status from /var/tmp/rpm-tmp.glKlS3 (%install)
make[1]: *** [Makefile:235: rpm] Error 1
make[1]: Leaving directory ‘/home/git/checkmk-master/omd’
make: *** [Makefile:113: rpm] Error 2
Blockquote
I get the below error… can you help me out to check for the missing info
If you really want to build by yourself and without the Docker build environment.
The following steps where working at my system.
clone repo
go to buildscripts\infrastructure\build-nodes
select the system where you build your packages
inside the Dockerfile you find all dependencies needed to build the package
In the root of your git clone
make setup
--> installs many packages
apt install alien postgresql-server-dev-all libjpeg-dev zlib1g-dev
<- was missing after make setup
edit the files - remove the enterprise includes
/build/checkmk/web/htdocs/themes# find . -name "theme.scss"
./modern-dark/theme.scss
./facelift/theme.scss
./classic/theme.scss
touch ./agents/windows/check_mk.user.yml
make dist
--> takes some time :)
make deb
--> takes again some time
1 Like
What user account do you use for compile?
I only checked with Ubuntu 18.04 LTS and it was working without problem after installing all dependencies.
If you have no access to proc then you are no root at the moment of compile.
i am using ubuntu 18.04 as well. when i try to build the deb package i get the above error.
Yes this is clear, but if you cannot access /proc then you are not root.
1 Like
root@383762055c13:/home/git/checkmk# tail -n 100 /home/git/checkmk/agents/windows/chroot/WinAgent/15/debootstrap/debootstrap.log
gpgv: Signature made Fri 27 Apr 2018 05:08:40 AM IST
gpgv: using RSA key 3B4FE6ACC0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>"
mount: /proc: permission denied.
root@383762055c13:/home/git/checkmk#
i have been able to clear all the errors for make dist, other than the mount… any update on this would help.
figured out the problem… the problem was that i was trying to build the package from a docker… moved to normal server… was able to move forward
1 Like
now i have the following error
tar: windows/check_mk_agent-64.exe: Cannot stat: No such file or directory
tar: windows/check_mk_agent.exe: Cannot stat: No such file or directory
tar: windows/check_mk_agent.msi: Cannot stat: No such file or directory
tar: windows/python-3.8.zip: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
cd agents ; tar czf ../check_mk-1.7.0i1/agents.tar.gz --owner=root --group=root --exclude=.svn --exclude=*~ --exclude=.gitignore --exclude=*.swp --exclude=.f12 \
--exclude check_mk_agent.spec \
--exclude special/lib \
cfg_examples \
plugins \
sap \
special \
z_os \
check-mk-agent_*.deb \
check-mk-agent-*.rpm \
check_mk_agent.* \
check_mk_caching_agent.linux \
CONTENTS \
mk-job* \
waitmax \
windows/cfg_examples \
windows/check_mk_agent-64.exe \
windows/check_mk_agent.exe \
windows/check_mk_agent.msi \
windows/python-3.8.zip \
windows/check_mk.example.ini \
windows/check_mk.user.yml \
windows/CONTENTS \
windows/mrpe \
windows/plugins
tar: windows/check_mk_agent-64.exe: Cannot stat: No such file or directory
tar: windows/check_mk_agent.exe: Cannot stat: No such file or directory
tar: windows/check_mk_agent.msi: Cannot stat: No such file or directory
tar: windows/python-3.8.zip: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Makefile:177: recipe for target 'check_mk-1.7.0i1.tar.gz' failed
make: *** [check_mk-1.7.0i1.tar.gz] Error 2
have been able to move past this once excluding the once with error from the makefile