无法在 Linux Ubuntu 20.04 LTS 中创建文件

无法在 Linux Ubuntu 20.04 LTS 中创建文件

我正在尝试安装流体模拟软件(https://github.com/cwrowley/ibpm)。我已经安装了所有依赖项并准备好执行 make 命令。这是我从终端收到的错误。

(base) hell@hell-Precision-T1600:~/Desktop/temp/von_karman/ibpm-master/ibpm$ make
cd build && make
make[1]: Entering directory '/home/hell/Desktop/temp/von_karman/ibpm-master/ibpm/build'
../config/make.inc:1: *** missing separator. Stop.
make[1]: Leaving directory '/home/hell/Desktop/temp/von_karman/ibpm-master/ibpm/build'
make: *** [Makefile:15: ibpm] Error 2

我还检查了父目录中的Makefile。以下是 Makefile 的内容。

# Main makefile for IBPM code
#
# Clancy Rowley
# Princeton University
#
# $Date$
# $Revision$
# $Author$
# $HeadURL$

.PHONY: ibpm test doc clean distclean
DIRS = build test doc

ibpm:
    cd build && $(MAKE)

test:
    cd test && $(MAKE)

doc:
    cd doc && $(MAKE)

all: ibpm test doc

clean:
    for dir in $(DIRS); do ( cd $$dir && $(MAKE) clean; ) done

distclean: clean
    for dir in $(DIRS); do \
      ( cd $$dir && $(MAKE) distclean; )\
    done

我不知道它正在谈论哪个丢失的分隔符。

文件 make.inc 链接 make.inc.gcc。这里是make.inc.gcc的内容。

# standard config file, using gcc compiler

CXX = g++

# flags for compiling with optimization
CXXFLAGS = -Wall -g -Ofast -funroll-loops -DNDEBUG

# for debugging, uncomment the following line
# CXXFLAGS = -Wall -g

# Specify directories for libraries and header files here
# lib_dirs = -L/path/to/lib

# include_dirs = -I/path/to/include

另外,当我执行时cat -A config/make.inc,我得到make.inc.gcc

答案1

建议的解决方案钢铁起子确实有效。 make.inc 文件中有错误。make一旦使用命令将文件 make.inc.gcc 链接到 make.inc,该命令就应该起作用ln -sf make.inc.gcc config/make.inc

相关内容