我正在尝试构建两个都依赖librdkafka的不同应用程序。这些应用程序是用.NET Core和Go编写的。
我已经使用apt安装了融合平台,并从融合存储库中安装了它。我假设安装此平台包括librdkafka(并使其可用于.NET和> GO软件包)。
当我尝试构建任何一个时,我都会收到两个不同的错误。
对于Go应用:
# pkg-config --cflags -- rdkafka
Package rdkafka was not found in the pkg-config search path.
Perhaps you should add the directory containing `rdkafka.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rdkafka' found
pkg-config: exit status 1
对于.NET Core应用程序:
System.DllNotFoundException : Failed to load the librdkafka native library.
Stack Trace:
at Confluent.Kafka.Impl.Librdkafka.Initialize(String userSpecifiedPath)
at Confluent.Kafka.Producer`2..ctor(ProducerBuilder`2 builder)
at Confluent.Kafka.ProducerBuilder`2.Build()
在安装融合平台之后,是否有任何后续步骤需要使librdkafka可用于应用程序?