how to open dtrace function when I build rpm from rpm source package
Posted by:
h h
Date: February 26, 2019 09:04PM
my os version is CentOS Linux release 7.6.1810 (Core) , and I want to use bcc tools to trace mysql problem ,but rpm come from mysql do not open dtrace function, and I download the src.rpm , now problem is I do not know how can I modify it to add the option -DENABLE_DTRACE=1
I try add like this ,but compile error in both centos7.4 and 7.6
# Build full release
mkdir release
(
cd release
cmake%{?el5:28}%{?el6:28} ../%{src_dir} \
-DBUILD_CONFIG=mysql_release \
-DENABLE_DTRACE=1 \
-DINSTALL_LAYOUT=RPM \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DWITH_BOOST=.. \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
%if 0%{?systemd}
-DWITH_SYSTEMD=1 \
%endif
Subject
Views
Written By
Posted
how to open dtrace function when I build rpm from rpm source package
1170
February 26, 2019 09:04PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.