Skip to content

Commit 2f20477

Browse files
authored
Merge pull request #82 from emqx/0417-unixodbc-dev-headers-in-el9
fix: no unixODBC-devel package for el9, build from source
2 parents ebe344a + e63b07c commit 2f20477

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

el9/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ RUN dnf -y install \
99
openssl-devel \
1010
perl-FindBin \
1111
python3-pip \
12+
procps-ng \
1213
systemd \
13-
unixODBC \
1414
vim \
1515
wget \
1616
which
@@ -35,6 +35,14 @@ WORKDIR /
3535
COPY get-cmake.sh /get-cmake.sh
3636
RUN /get-cmake.sh build
3737

38+
RUN wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.11.tar.gz && \
39+
tar xzf unixODBC-2.3.11.tar.gz && \
40+
cd unixODBC-2.3.11 && \
41+
./configure && make && make install && \
42+
cd .. && \
43+
rm -rf unixODBC-2.3.11 && \
44+
rm -f unixODBC-2.3.11.tar.gz
45+
3846
# cleanup
3947
RUN dnf clean all && \
4048
rm -rf /tmp/* && \

0 commit comments

Comments
 (0)