如何在 CentOS 上安装 poker-eval

How to install poker-eval on CentOS

这里 Linux 有点像超级菜鸟。 我如何在 CentOS 上下载 poker-eval?

默认页面是这样的:https://packages.qa.debian.org/p/poker-eval.html 这让我很困惑。

我也通过 google 找到了这个:https://copr.fedorainfracloud.org/coprs/nibbler/poker-eval/ 但我不知道如何使用这个 Copr 东西。

编辑:我尝试使用以下方式下载:

rpm -ivh poker-eval-134.0-1.fc6.i386.rpm 

rpm -ivh poker-eval-debuginfo-134.0-1.fc6.i386.rpm

rpm -ivh poker-eval-devel-134.0-1.fc6.i386.rpm

但我不知道 运行 脚本在哪里。 这是我使用 find / -name "*poker*"

找到的文件
/usr/include/poker-eval
/usr/include/poker-eval/poker_defs.h
/usr/include/poker-eval/poker_config.h
/usr/include/poker-eval/poker_wrapper.h
/usr/include/poker-eval/pokereval_export.h
/usr/lib/debug/usr/lib/libpoker-eval.so.1.0.0.debug
/usr/lib/libpoker-eval.so
/usr/lib/pkgconfig/poker-eval.pc
/usr/lib/libpoker-eval.so.1.0.0
/usr/lib/libpoker-eval.so.1
/usr/src/debug/poker-eval-134.0
/usr/src/debug/poker-eval-134.0/include/poker_defs.h
/usr/src/debug/poker-eval-134.0/lib/poker_wrapper.c
/usr/share/doc/poker-eval-134.0
/usr/share/doc/poker-eval-devel-134.0

看起来官方项目页面实际上在http://gna.org/projects/pokersource/

您列出的第一个页面是 debian 下游项目页面。 您列出的第二页似乎是 CentOS 上 poker-eval 的 python 绑定的非官方版本。

您可以尝试通过这些 RPM 安装:

http://download.gna.org/pokersource/poker-eval/gnulinux/fedora/f10/src/redhat/RPMS.poker-eval/

  • poker-eval - 用于应用程序的共享库二进制文件
  • poker-eval-debuginfo - 与 gdb 一起使用的共享库二进制调试符号
  • poker-eval-devel - 用于针对库编译代码以在应用程序中使用的头文件

请注意,poker-eval 只是一个用于不同应用程序的库。 有关详细信息,请参阅 http://pokersource.sourceforge.net 或上面提到的 /usr/share/doc/poker-eval-134.0 的内容。

或者您可以自己从源代码构建:

  1. 下载相应的源存档:

    wget http://download.gna.org/pokersource/poker-eval/gnulinux/fedora/f10/src/redhat/SOURCES/poker-eval-134.0.tar.gz

  2. 提取存档:

    tar -axvf poker-eval-134.0.tar.gz

  3. 进入提取的存档:

    cd poker-eval-134.0

  4. 构建二进制文件

    ./configure && make && sudo make install