Facing issue while installing libdmtx-devel package in AWS EC2 Linux server

  Kiến thức lập trình

I want to install libdmtx-devel package in AWS EC2 Linux server. But I am unable to install. I am getting the following error. Help me solve this issue.

2024/07/11 11:57:38.809677 [INFO] Instance is Leader.
2024/07/11 11:57:38.809719 [INFO] Executing instruction: stopSqsd
2024/07/11 11:57:38.809726 [INFO] This is a web server environment instance, skip stop sqsd daemon ...
2024/07/11 11:57:38.809730 [INFO] Executing instruction: PreBuildEbExtension
2024/07/11 11:57:38.809734 [INFO] Starting executing the config set Infra-EmbeddedPreBuild.
2024/07/11 11:57:38.809746 [INFO] Running command: /opt/aws/bin/cfn-init -s arn:aws:cloudformation:ap-south-1:707710317193:stack/awseb-e-fnnry9i6kh-stack/d5578c90-355d-11ef-b9e5-02cdb2f89e67 -r AWSEBAutoScalingGroup --region ap-south-1 --configsets Infra-EmbeddedPreBuild
2024/07/11 11:57:41.635413 [INFO] Error occurred during build: Could not successfully install rpm packages (return code 1)

2024/07/11 11:57:41.635437 [ERROR] An error occurred during execution of command [app-deploy] - [PreBuildEbExtension]. Stop running the command. Error: EbExtension build failed. Please refer to /var/log/cfn-init.log for more details. 

This is the code inside .ebextensions/01_packages.config file in Django application

commands:
  01_update_yum:
    command: "yum update -y"

packages:
  rpm:
    epel: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
  yum:
    mariadb105-devel: []
    libdmtx-devel: []
    
commands:
  update_pip:
    command: 'python3.11 -m pip install --upgrade pip'
  set_mysqlclient_cflags:
    command: 'echo "export MYSQLCLIENT_CFLAGS=$(mysql_config --cflags)" >> /etc/profile.d/mysqlclient.sh'
  set_mysqlclient_ldflags:
    command: 'echo "export MYSQLCLIENT_LDFLAGS=$(mysql_config --libs)" >> /etc/profile.d/mysqlclient.sh'

New contributor

jayanthee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT