【问题标题】:How to install poker-eval on CentOS如何在 CentOS 上安装 poker-eval
【发布时间】:2016-10-22 09:38:54
【问题描述】:

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

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

我还通过谷歌找到了这个: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

【问题讨论】:

    标签: linux unix centos debian


    【解决方案1】:

    貌似官方项目页面其实在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

    【讨论】:

    • 我应该下载所有三个 rpm 文件并为每个文件运行“rpm -ivh file.rpm”吗?
    • @user2911983:这取决于您的需求。我用每个文件的更多细节更新了我的答案.. 是的 rpm -ivh file.rpm 会起作用
    • 如果使用rpm,安装目的地在哪里?我使用了命令并在命令行中得到了 100% bar 的东西,但是除了 rpm 文件之外我找不到任何与 poker-eval 相关的东西
    • 其实我用"find / -name "poker"找到了文件,但还是不知道运行的目录在哪里。我会更新信息我的帖子
    • 我更新了我的答案,以根据您安装的内容提供更全面的解释。需要注意的重要一点是 poker-eval 只是一个库。除非您安装实际使用它的东西或编译使用它的自己的应用程序,否则没有什么可以执行。
    猜你喜欢
    • 2013-11-04
    • 2014-03-15
    • 2014-03-23
    • 2017-08-12
    • 1970-01-01
    • 2011-07-03
    • 2011-10-17
    • 2018-11-13
    • 2020-11-24
    相关资源
    最近更新 更多