Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Makefile error: Unexpected end of line seen

Trying to install Git, I ran configure and make, but got the following error message:

make: Fatal error in reader: Makefile, line 221: Unexpected end of line seen

The Makefile looks like:

218:    GIT-VERSION-FILE: FORCE
219:            @$(SHELL_PATH) ./GIT-VERSION-GEN
220:    -include GIT-VERSION-FILE
221:
222:    uname_S := $(shell sh -c 'uname -s 2>/dev/null øø echo not')

What's causing the error?

The following information may or may not be relevant:

  • I tried to install Git 1.7.0.3 on SunOS 5.9 (Solaris 9) in a directory in my account.
  • The gcc version is 3.4.2 (older then the version of 3.4.6 stated by sunfreeware.com).
  • I don't have root privileges.
like image 286
Winston C. Yang Avatar asked Apr 01 '10 02:04

Winston C. Yang


2 Answers

Using gmake on SunOS instead of make fixed this issue for me.

like image 151
user2554726 Avatar answered Oct 12 '22 23:10

user2554726


Use gmake instead of make.

Genrally solaris has two command, gmake and make. In this gmake is GNU style make command, and make is solaris style make command. I hope you have written your makefile in GNU style. So use gmake command.

like image 35
rashok Avatar answered Oct 12 '22 22:10

rashok