0

I am trying to install a program on my machine (running Ubuntu 12.04), 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

I'm not sure how to interpret the error, am I missing a library that I need to install?

1
  • Did you edit Makefile.in to "set your compiler and installation directory options"?
    – muru
    Apr 22, 2015 at 10:00

2 Answers 2

1

This appears to be a DashAsBinSh issue.

Provided you have the required build environment, it should work if you set make's shell to bash explicitly on the command line:

make "SHELL=/bin/bash"
0

Open the Makefile in mplabs:

gedit Makefile

Search for |& and replace all occurences with |.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .