gpt4 book ai didi

macos - 如何运行 "gmake install"?

转载 作者:太空宇宙 更新时间:2023-11-03 20:26:28 25 4
gpt4 key购买 nike

我现在正在我的 mac 上安装代码。

代码来自here .在此页面中查找“基准和边界检测代码”。

在自述文件中,它说:

(1) For the image and segmentation reading routines in the Dataset directory to work, make sure you edit Dataset/bsdsRoot.m to point to your local copy of the BSDS dataset.

(2) Run 'gmake install' from this directory to build everything. You should then probably put the lib/matlab directory in your MATLAB path.

(3) Read the Benchmark/README file.

对于第一步,我按照建议做了。对于第二步,我很困惑。我在 MATLAB 中运行命令 gmake install,但是,我得到了:

gmake

Undefined function or variable 'gmake'.

实际上,在运行MATLAB之前,我通过macports安装了gmake port。

我只是在终端上做的,然而,这就是我得到的......

hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
hou229:segbench yaozhongsong$ sudo gmake install
gmake[1]: execvp: ../Util/gethosttype: Permission denied
gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
GNUmakefile-library:26: *** mexSuffix not defined. Stop.
gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
hou229:segbench yaozhongsong$

在 MATLAB 中,我也是这样做的:

!gmake install
/bin/bash: gmake: command not found

如何在自述文件中执行第 2 步?

提前致谢!

@阿姆罗

hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
hou229:segbench yaozhongsong$ sudo gmake install
Password:
gmake[1]: execvp: ../Util/gethosttype: Permission denied
gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
mkdir -p ../lib/matlab
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Exception.cc -o build//Exception.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c String.cc -o build//String.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Random.cc -o build//Random.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Timer.cc -o build//Timer.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Matrix.cc -o build//Matrix.o
Matrix.cc:13:21: error: ieee754.h: No such file or directory
Matrix.cc: In function ‘double nextpow2(double)’:
Matrix.cc:86: error: ‘ieee754_double’ was not declared in this scope
Matrix.cc:86: error: expected `;' before ‘val’
Matrix.cc:87: error: ‘val’ was not declared in this scope
Matrix.cc:88: error: ‘IEEE754_DOUBLE_BIAS’ was not declared in this scope
Matrix.cc: At global scope:
Matrix.cc:48: warning: ‘snan’ defined but not used
Matrix.cc:49: warning: ‘inf’ defined but not used
gmake[1]: *** [build//Matrix.o] Error 1
gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'

最佳答案

对于“mexSuffix not defined”错误,首先在 MATLAB 中运行 mexext,获取输出(我怀疑它是 mexmaci64),编辑文件 Util/GNUmakefile-library 并在第 24 行添加以下内容:

mexSuffix := mexmaci64

将值替换为您从 mexext 获得的值

注意:我没有测试过这些,我在 Windows 机器上..

关于macos - 如何运行 "gmake install"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11299958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com