运行cmake的可能时缺少库 [英] possible missing library when running cmake
本文介绍了运行cmake的可能时缺少库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想我的机器上安装一个活动(运行Linux),但我得到以下错误,当我运行制作
:
I am trying to install a program on my machine (running Linux), but I get the following error when I run make
:
Starting build...
Working Directory : /home/laptop/mplabs_test
Build Type :
Generating OMP binary...
/bin/sh: 1: Syntax error: "&" unexpected
make: *** [lbs3d] Error 2
什么是错的,我缺少一个库?
What is wrong, am I missing a library?
推荐答案
的问题是,Makefile将使用bash的特定语法( |&安培;
),但命令执行通过 / bin / sh的
,它并不指向 /斌/庆典
。
The problem is that the Makefile uses bash specific syntax (|&
) but the commands are executed by /bin/sh
, which does not point to /bin/bash
.
在我的电脑(Ubuntu的14.04):
On my computer (Ubuntu 14.04):
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Sep 16 2014 /bin/sh -> dash
一个解决办法是让符号链接 / bin / sh的
指向 /斌/庆典
:
A solution could be to let the symbolic link /bin/sh
point to /bin/bash
:
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
这篇关于运行cmake的可能时缺少库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文