英文:
How do I execute Dieharder tests in Windows 11?
问题
我按照网上的一些指南,解压了dieharder-3.31.1-1.x86_64文件,得到了一个名为usr的文件。
现在在usr/bin目录下有一个名为dieharder的文件,但我不知道如何执行它。我在路径Downloads下有一个二进制文件,而dieharder文件位于Downloads/usr/bin目录下。
我已经设置好Cygwin终端。
这是我第一次运行这样的软件,所以任何帮助都将不胜感激!
我试图在Cygwin终端上输入命令'dieharder',其目录已设置为Downloads/usr/bin,但出现错误:'bash: dieharder: command not found'。
英文:
I followed some instructions online and extracted the dieharder-3.31.1-1.x86_64 file to get a file called usr.
Now in usr/bin is located a file named dieharder but I have no idea on how to execute it. I have a binary file at path: Downloads and the dieharder file in: Downloads/usr/bin.
I do have Cygwin Terminal set up.
This is my first time running any such software so any help would be appreciated!
I am trying to give the command, 'dieharder' on the Cygwin terminal whose directory I have set as: Downloads/usr/bin but it is returning with an error: 'bash: dieharder: command not found'
答案1
得分: 2
以下是中文翻译的部分:
构建 dieharder-3.31.1
在 Cygwin 平台上的配方。需要至少以下软件包:cygwin-devel、gcc-core、make、autoconf2.5、automake1.11、libtool、libgsl-devel(可能还有其他软件包,我可能遗漏了)。
$` 是 bash 命令行的光标
$ wget https://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-3.31.1.tgz
$ tar -xf dieharder-3.31.1.tgz
$ cd dieharder-3.31.1
以下是粗暴但有效的操作:
$ find . -name "configure*" -exec sed -i -e "s/-std=c99//" {} \;
$ find . -name "Makefile*" -exec sed -i -e "s/-std=c99//" {} \;
使用特定版本的 autoconf:
$ autoreconf-2.69 -ivf
$ ./configure
$ make LDFLAGS="-Wl,--allow-multiple-definition -no-undefined"
$ make install
程序、库和文档都安装在 /usr/local
下:
$ file /usr/local/bin/*hard*
/usr/local/bin/cygdieharder-3.dll: PE32+ 可执行文件 (DLL)(控制台)x86-64,用于 MS Windows,19 个部分
/usr/local/bin/dieharder.exe: PE32+ 可执行文件 (控制台) x86-64,用于 MS Windows,19 个部分
并且程序至少是可用的:
$ dieharder |head
#=============================================================================#
# dieharder 版本 3.31.1 版权所有 2003 Robert G. Brown #
#=============================================================================#
使用:
dieharder [-a] [-d dieharder 测试编号] [-f 文件名] [-B]
[-D 输出标志 [-D 输出标志] ... ] [-F] [-c 分隔符]
[-g 生成器编号或-1] [-h] [-k ks_flag] [-l]
[-L 重叠] [-m 乘法参数] [-n n 元组]
注意:代码部分未进行翻译,仅翻译了文字说明部分。
英文:
Recipe to build dieharder-3.31.1
on a Cygwin platform.
It requires at least packages : cygwin-devel, gcc-core, make, autoconf2.5, automake1.11, libtool, libgsl-devel (I could have missed other packages)
The "$" is the cursor of bash command line
$ wget https://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-3.31.1.tgz
$ tar -xf dieharder-3.31.1.tgz
$ cd dieharder-3.31.1
the following is brutal but effective
$ find . -name "configure*" -exec sed -i -e "s/-std=c99//" {} \;
$ find . -name "Makefile*" -exec sed -i -e "s/-std=c99//" {} \;
using specific version of autoconf:
$ autoreconf-2.69 -ivf
$ ./configure
$ make LDFLAGS="-Wl,--allow-multiple-definition -no-undefined"
$ make install
The program, library and documentation are installed under /usr/local
$ file /usr/local/bin/*hard*
/usr/local/bin/cygdieharder-3.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows, 19 sections
/usr/local/bin/dieharder.exe: PE32+ executable (console) x86-64, for MS Windows, 19 sections
and the program is at least functional
$ dieharder |head
#=============================================================================#
# dieharder version 3.31.1 Copyright 2003 Robert G. Brown #
#=============================================================================#
Usage:
dieharder [-a] [-d dieharder test number] [-f filename] [-B]
[-D output flag [-D output flag] ... ] [-F] [-c separator]
[-g generator number or -1] [-h] [-k ks_flag] [-l]
[-L overlap] [-m multiply_p] [-n ntuple]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论