1 | initial version |
First
cd ~/slurm-22.05.6/src/plugins/cgroup/v2
make clean
md5-6771ea3916fdb26be4f5388a29869678
make
md5-d781c41b0c6c3606eac704bcb600b057
sudo apt-get install libdbus-1-dev
md5-822040ebfc17b0ba1a2e84c3deed9243
AM_CPPFLAGS = -I$(top_srcdir)/slurm -DSLURM_PLUGIN_DEBUG -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
md5-b8473c1fb2d9d4e71d63d8b04c569d4d
sudo cp ~/slurm-22.05.6/src/plugins/cgroup/v2/.libs/cgroup_v2.so /usr/lib64/slurm/
2 | No.2 Revision |
First
cd ~/slurm-22.05.6/src/plugins/cgroup/v2
make clean
md5-6771ea3916fdb26be4f5388a29869678
make
md5-d781c41b0c6c3606eac704bcb600b057
md5-312d99238aa879a2249ac611c2cbd3e8
sudo apt-get install libdbus-1-dev
md5-822040ebfc17b0ba1a2e84c3deed9243
AM_CPPFLAGS = -I$(top_srcdir)/slurm -DSLURM_PLUGIN_DEBUG -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
md5-b8473c1fb2d9d4e71d63d8b04c569d4d
sudo cp ~/slurm-22.05.6/src/plugins/cgroup/v2/.libs/cgroup_v2.so /usr/lib64/slurm/
3 | No.3 Revision |
FirstFirst:
cd ~/slurm-22.05.6/src/plugins/cgroup/v2
make clean
md5-6771ea3916fdb26be4f5388a29869678
clean; make
md5-312d99238aa879a2249ac611c2cbd3e8
When you run in the following error:
-g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT cgroup_v2.lo -MD -MP -MF .deps/cgroup_v2.Tpo -c -o cgroup_v2.lo cgroup_v2.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -DSLURM_PLUGIN_DEBUG -I../../../.. -I../../../../src/common -g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT cgroup_v2.lo -MD -MP -MF .deps/cgroup_v2.Tpo -c cgroup_v2.c -fPIC -DPIC -o .libs/cgroup_v2.o In file included from cgroup_v2.c:62: ../../../../src/plugins/cgroup/v2/cgroup_dbus.h:40:10: fatal error: dbus/dbus.h: No such file or directory 40 | #include <dbus dbus.h=""> | ^~~~~~~~~~~~~ compilation terminated.
You can fix it with the following steps under Ubuntu 22.04:
sudo apt-get install libdbus-1-dev
md5-822040ebfc17b0ba1a2e84c3deed9243
Edit the Makefile and replace the line starting with AM_CPPFLAGS
by
AM_CPPFLAGS = -I$(top_srcdir)/slurm -DSLURM_PLUGIN_DEBUG -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
md5-b8473c1fb2d9d4e71d63d8b04c569d4d
Make sure that these are the correct include paths of `dbus.h
and dbus-arch-deps.h
Now the build should work.
Copy the shared library:
sudo cp ~/slurm-22.05.6/src/plugins/cgroup/v2/.libs/cgroup_v2.so /usr/lib64/slurm/
4 | No.4 Revision |
First:
cd ~/slurm-22.05.6/src/plugins/cgroup/v2
make clean; make
When you run in the following error:
-g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT cgroup_v2.lo -MD -MP -MF .deps/cgroup_v2.Tpo -c -o cgroup_v2.lo cgroup_v2.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -DSLURM_PLUGIN_DEBUG -I../../../.. -I../../../../src/common -g -O2 -fno-omit-frame-pointer -pthread -ggdb3 -Wall -g -O1 -fno-strict-aliasing -MT cgroup_v2.lo -MD -MP -MF .deps/cgroup_v2.Tpo -c cgroup_v2.c -fPIC -DPIC -o .libs/cgroup_v2.o In file included from cgroup_v2.c:62: ../../../../src/plugins/cgroup/v2/cgroup_dbus.h:40:10: fatal error: dbus/dbus.h: No such file or directory 40 | #include <dbus dbus.h=""> | ^~~~~~~~~~~~~ compilation terminated.
You can fix it with the following steps under Ubuntu 22.04:
sudo apt-get install libdbus-1-dev
Edit the Makefile and replace the line starting with AM_CPPFLAGS
by
AM_CPPFLAGS = -I$(top_srcdir)/slurm -DSLURM_PLUGIN_DEBUG -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
Make sure that these are the correct include paths of `dbus.h
and dbus-arch-deps.h
Now the build should work.
Copy the shared library:
sudo cp ~/slurm-22.05.6/src/plugins/cgroup/v2/.libs/cgroup_v2.so /usr/lib64/slurm/
/usr/local/lib/slurm
Make sure that this is the directory of your slurm installation.