Skip to content

Commit

Permalink
Merge pull request #82 from emqx/0417-unixodbc-dev-headers-in-el9
Browse files Browse the repository at this point in the history
fix: no unixODBC-devel package for el9, build from source
  • Loading branch information
id authored Apr 17, 2023
2 parents ebe344a + e63b07c commit 2f20477
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion el9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN dnf -y install \
openssl-devel \
perl-FindBin \
python3-pip \
procps-ng \
systemd \
unixODBC \
vim \
wget \
which
Expand All @@ -35,6 +35,14 @@ WORKDIR /
COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build

RUN wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.11.tar.gz && \
tar xzf unixODBC-2.3.11.tar.gz && \
cd unixODBC-2.3.11 && \
./configure && make && make install && \
cd .. && \
rm -rf unixODBC-2.3.11 && \
rm -f unixODBC-2.3.11.tar.gz

# cleanup
RUN dnf clean all && \
rm -rf /tmp/* && \
Expand Down

0 comments on commit 2f20477

Please sign in to comment.