Skip to content

Unable to Install on AMI Linux 2 #66

@Drivible

Description

@Drivible

Details:

  • PHP version: 7.4
  • librdkafka version: v2.1.1 (Latest version from source)
  • simple-kafka-client version: Release v0.1.4 and Latest master branch version from source.. But the issue is I can't run it, pecl or source
  • kafka version: 3.8 (latest version MSK supports)

I had a whole lot of issues trying to install the simple-kafka-client, having to install librdkafka from source.
Then whilst the PHP extension simple_kafka_client installed OK on my Ubuntu machine, it failed on AMI Linux 2.

To be specific, it make and make installed fine, but PHP would error saying "undefined symbol: rd_kafka_error_is_retriable" and wouldn't run the library.

More details:
https://www.kublermdk.com/2023/05/19/installing-php-simple-kafka-lib-librdkafka-version-issues/

I wanted to let you know that I've had a whole lot of issues just trying to set this up.
I don't think I'd be the only person trying PHP and Kafka, but it seems like there aren't many of us.

Steps to replicate:

  1. Setup an Amazon EC2 server running AMI Linux 2 (e.g via Elastic Beanstalk)
  2. Install PHP v7.4
  3. Install librdkafka from source
  4. Install the simple-kafka-client via pecl or source
  5. Run PHP (e.g php -v) from the command line
  6. There's an error undefined symbol: rd_kafka_error_is_retriable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions