How to install asio-devel, glpk-devel packages on Amazon Linux 2023?

0

I have tried to install asio-devel nad glpk-devel packages on Amazon Linux 2023. Tried that with yum and with dnf, the result is the same:

No match for argument: glpk-devel / asio-devel
Error: Unable to find a match: glpk-devel / asio-devel
Vasko
質問済み 8ヶ月前412ビュー
1回答
0
承認された回答

Hello.

Looking at the document below, it seems that Amazon Linux 2023 does not include the package you are trying to install.
https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.2.html

profile picture
エキスパート
回答済み 8ヶ月前
  • Okay, and is there any way to install them? On Amazon Linux 2 they were installed like this:

               -amazon-linux-extras install -y epel
              - yum install -y asio-devel glpk-devel openssl-devel
    

    But, as far as I know there is no support for epel on Amazon Linux 2023.

    So is there a way that I can install these packages?

  • Try installing by adding the following commands and settings. Those packages were included in the Fedora repositories. https://packages.fedoraproject.org/pkgs/glpk/glpk-devel/fedora-37.html https://src.fedoraproject.org/rpms/asio

    sudo vi /etc/yum.repos.d/fedora.repo
    
    [fedora]
    name=Fedora 37 - $basearch
    #baseurl=http://download.example/pub/fedora/linux/releases/37/Everything/$basearch/os/
    metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-37&arch=$basearch
    enabled=0
    countme=1
    metadata_expire=7d
    repo_gpgcheck=0
    type=rpm
    gpgcheck=1
    gpgkey=https://getfedora.org/static/fedora.gpg
    skip_if_unavailable=False
    
    sudo dnf --enablerepo=fedora install glpk-devel -y
    sudo dnf --enablerepo=fedora install asio-devel -y
  • Thank you! This is working!!

  • If you want to make it a shell script, the following will work.

    #!/bin/bash
    
    cat <<EOF > /etc/yum.repos.d/fedora.repo
    [fedora]
    name=Fedora 37 - \$basearch
    #baseurl=http://download.example/pub/fedora/linux/releases/37/Everything/\$basearch/os/
    metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-37&arch=\$basearch
    enabled=0
    countme=1
    metadata_expire=7d
    repo_gpgcheck=0
    type=rpm
    gpgcheck=1
    gpgkey=https://getfedora.org/static/fedora.gpg
    skip_if_unavailable=False
    EOF

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ