如何运行"gmake install"? [英] How to run "gmake install"?

查看:572
本文介绍了如何运行"gmake install"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在Mac上安装代码.

I am now installing a code on my mac.

该代码来自此处.在此页面中查找基准和边界检测代码".

The code is from here. Look for "Benchmark and Boundary Detection Code" in this page.

在自述文件中显示为:

(1)对于数据集中的图像和分段读取例程 目录工作,请确保您编辑Dataset/bsdsRoot.m以指向 您的BSDS数据集的本地副本.

(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)从此目录运行"gmake install"以构建所有内容.你 然后应该将lib/matlab目录放在您的MATLAB路径中.

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

(3)读取Benchmark/README文件.

(3) Read the Benchmark/README file.

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

For the 1st step, I did as suggested. For the 2nd step, I am pretty confused. I ran command gmake install in MATLAB, however, I got:

gmake

Undefined function or variable 'gmake'.

实际上,在运行MATLAB之前,我通过macports安装了gmake端口.

Actually, before running MATLAB, I installed gmake port through macports.

我只是在终端上完成的,但是,这就是我得到的...

I just did it in terminal, however, this is what I got...

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中,我也这样做:

In MATLAB, I also did like this:

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

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

How to do the 2nd step in readme file?

提前谢谢!

@Amro

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"错误,请先在MATLAB中运行mexext,获取该输出(我怀疑是mexmaci64),然后编辑文件Util/GNUmakefile-library并在第24行添加以下内容:

For the "mexSuffix not defined" error, first run mexext inside MATLAB, take that output (I suspect it is mexmaci64), edit the file Util/GNUmakefile-library and add the following at line 24:

mexSuffix := mexmaci64

将值替换为从mexext

注意:我没有测试过任何一个,我在Windows计算机上.

Note: I haven't tested any of this, I am on a Windows machine..

这篇关于如何运行"gmake install"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆