Error Makefile:9: *** missing separator.Stop. when compiling ScriptRunner

1,182 views
Skip to first unread message

Gilbert Palau

unread,
Jul 23, 2014, 1:01:21 PM7/23/14
to the-l...@googlegroups.com
I had been following this article on http://grahamgilbert.com/blog/2013/08/09/the-luggage-an-introduction/ about installing scriptRunner.py and I am stuck at a part where Graham uses a script to save as a MakeFile:
  1. USE_PKGBUILD=1
  2. include /usr/local/share/luggage/luggage.make
  3. TITLE=scriptRunnerPkg
  4. REVERSE_DOMAIN=com.grahamgilbert
  5. PAYLOAD=\
  6.   pack-scriptRunner
  7.  
  8. pack-scriptRunner: l_usr_local_bin
  9.   @sudo ${CP} ./scriptRunner.py ${WORK_D}/usr/local/bin/scriptRunner.py
  10.   @sudo chmod 755 ${WORK_D}/usr/local/bin/scriptRunner.py
  11.   @sudo chown root:wheel ${WORK_D}/usr/local/bin/scriptRunner.py

Every time I run make pkg, I get this error: Makefile:9: *** missing separator. Stop.

I checked this line several times and everything tabbed out properly. I even tried typing the script by hand but I still get this.  I tried this on a brand new imaged VM and I get the same error.

Can someone advise?

Thanks!




Vaughn Miller

unread,
Jul 23, 2014, 1:29:27 PM7/23/14
to the-l...@googlegroups.com
See here : http://luggage.apesseekingknowledge.net/#TOC-My-makefile-looks-ok-but-I-get-an-error-about-a-missing-separator

I grabbed your pastebin code and was able to duplicate the error you were seeing.  I deleted all spaces and tabbed the indents and then make pkg ran fine.

Vaughn Miller
Desktop Engineer
Lafayette College


--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gilbert Palau

unread,
Jul 23, 2014, 3:52:58 PM7/23/14
to the-l...@googlegroups.com
The problem I have been having is that I wrote the code by hand again and then indented the spaces when I was done and it still gives me the error.  where were the spaces you found ?

Vaughn Miller

unread,
Jul 23, 2014, 4:04:39 PM7/23/14
to the-l...@googlegroups.com
You should use tabs not spaces in the Makefile

I deleted the spaces and inserted a tab in front of lines 9, 10 and 11 and the make command ran fine.

Vaughn

Gilbert Palau

unread,
Jul 23, 2014, 4:07:18 PM7/23/14
to the-l...@googlegroups.com
I just did that, I deleted the spaces, and used the TAB key to push the lines forward.  Ran the make command and got the same error. 

I understand what you are saying though... just don't know where else its failing...


--
You received this message because you are subscribed to a topic in the Google Groups "The Luggage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/the-luggage/O9krOv_KXmo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to the-luggage...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vaughn Miller

unread,
Jul 23, 2014, 4:09:18 PM7/23/14
to the-l...@googlegroups.com
What text editor are you using?  Is it possible that it is set to replace tabs with spaces?  

Clay Caviness

unread,
Jul 23, 2014, 4:10:06 PM7/23/14
to the-l...@googlegroups.com
Maybe whatever text editor you are using is inserting spaces instead of tab characters when you press the tab key.
Clay Caviness
c...@google.com
Macintosh Operations Tech Lead
Google Inc.

Gilbert Palau

unread,
Jul 23, 2014, 4:12:14 PM7/23/14
to the-l...@googlegroups.com
I am using Atom, http://www.atom.io

Vaughn Miller

unread,
Jul 23, 2014, 4:30:11 PM7/23/14
to the-l...@googlegroups.com
I have atom installed, and I just duplicated your problem.  I used TextMate when I fixed the Makefile.  I didn't see an obvious way to change the setting in Atom, you may need to check with their support community...

Vaughn

Timothy Sutton

unread,
Jul 23, 2014, 4:47:04 PM7/23/14
to the-l...@googlegroups.com
For Atom, it's likely the "Soft Tabs" setting in the main Editor settings page.

Gilbert Palau

unread,
Jul 23, 2014, 4:53:26 PM7/23/14
to the-l...@googlegroups.com
Vaughn, I solved the problem by installing a package for Atom called Tabs to Spaces: https://atom.io/packages/tabs-to-spaces

I fixed the tabs and now it compiled properly.  Thanks a bunch!!

G.
Reply all
Reply to author
Forward
0 new messages