While trying to install the som_pak-3.1-NAcMoS.tar.gz
file, I've used the below commands:
$ tar xvf som_pak-3.1-NAcMoS.tar.gz
$ cd som_pak-3.1
$ cp makefile.unix makefile
$ make
$ cd ..
$ ln -s som_pak-3.1 $NACMOS_HOME/som_pak
But while executing the make
command I'm getting the following error:
* missing separator (did you mean TAB instead of 8 spaces?). Stop.
- Can anybody tell me the reason for the error?
- Is there any packages need to include with this?
Best Answer
The error you're encountering:
Means that the
makefile
contains spaces instead of Tab's. Themake
utility is notoriously picky about the use of Space instead of Tab. So it's likely that themakefile
contains Space at the beginning of rule stanzas within the file.Example
Let's say I have the following 3
hello.c world.c main.c:.c
files:Say I have the following
Makefile
:Now we try to build a target
When I run it against the target
helloworld
:Look familiar?
Fixing the issue
You can fix this by changing the Spaces to actual Tab characters. I used
vim
to repair my file. Simply open it:And then run this command within:
NOTE:
^I
is a special character. Typing ^ followed by I will be interpreted differently compared to Ctrl+V-Ctrl+I.This will substitute all the lines that begin with 1 or more Spaces with an actual Tab.
Now when I rerun my
helloworld
target:References