Open mkmoisen opened 11 months ago
I am getting the same error on amazonlinux:2
sh-4.2# make install
Install librdkafka to /usr/local
d $DESTDIR/usr/local/include/librdkafka
/bin/sh: d: command not found
make: [lib-install] Error 127 (ignored)
d $DESTDIR/usr/local/lib
/bin/sh: d: command not found
make: [lib-install] Error 127 (ignored)
rdkafka.h rdkafka_mock.h $DESTDIR/usr/local/include/librdkafka
/bin/sh: rdkafka.h: command not found
make: *** [lib-install] Error 127
I have the same issue, too. Are there any workarounds that anyone is aware of?
@edgga & @mkmoisen , I did a workaround by using the amd64 amazon image on my local.
In Dockerfile replace line no. 1 with FROM amd64/amazonlinux:2
This will download the x86_64
image. If you are working on Silicon Mac, change your docker settings to use rosetta.
@shaaslam
Do you know what is the difference between amd64/amazonlinux:2
and amazonlinux:2
?
amd64/amazonlinux:2
image is for x86_64
platform
amazonlinux:2
image is for aarch64
make
is not creating the command correctly. For me which
was missing. After I installed it things started working again.
@mkmoisen Given the discussion above, can we close this issue?
On amazonlinux2, I did the following steps to install the current latest version of librdkafka
, which was required to install confluent-kafka
python package. Try these:
yum update -y
yum groupinstall -y "Development Tools"
yum install -y wget tar gzip openssl-devel zlib-devel libcurl-devel
if cmake --version; then yum remove -y cmake; fi
mkdir /tmp/cmake-install
cd /tmp/cmake-install
wget https://cmake.org/files/v3.25/cmake-3.25.2-linux-aarch64.tar.gz
tar -zxvf cmake-3.25.2-linux-aarch64.tar.gz
cp -r cmake-3.25.2-linux-aarch64/* /usr/local/
ln -s /usr/local/bin/cmake /usr/bin/cmake
if ! cmake --version | grep -i "3.25.2"; then exit 1; fi
cd -
mkdir /tmp/librdkafka-install
cd /tmp/librdkafka-install
wget https://github.com/edenhill/librdkafka/archive/refs/tags/v2.5.0.tar.gz
tar -xvf v2.5.0.tar.gz
cd librdkafka-2.5.0
mkdir build
cd build
cmake ..
make
make install
echo "/usr/local/lib" >> /etc/ld.so.conf
echo "/usr/local/lib64" >> /etc/ld.so.conf
ldconfig
yum install python3-pip python3-devel -y
pip3 install confluent-kafka==2.5.0
python3 -c "import confluent_kafka"
Description
Building librdkafka from source on either OracleLinux or AmazonLinux is failing.
It works fine on RHEL (UBI) but not on the derivative distributions OracleLinux or AmazonLinux.
How to reproduce
Using the following Dockerfile:
Build the container via:
The
make install
command works forredhat/ubi9:9.2
.However, it fails for both
oraclelinux:9
andamazonlinux:2023
with a similar error:d: command not found
amazonlinux:2023
oraclelinux:9
Using
./configure --instal-deps
doesn't help.Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
2.2.0
N/A
N/A
oraclelinux:9 and amazonlinux:2023
debug=..
as necessary) from librdkafka