Bin/sh Syntax Error Word Unexpected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site bin sh 1 syntax error unexpected About Us Learn more about Stack Overflow the company Business Learn more
Bin Sh C Line 0 Syntax Error Near Unexpected Token
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss bin sh c line 1 syntax error unexpected end of file Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error: word syntax error word unexpected (expecting do ) unexpected (expecting “)”)? up vote 5 down vote favorite 2 PLATFORM = x86 CUD = cuda X86 = x86 PAN = panda ARM = arm app: ifeq($(PLATFORM),$(CUD)) CC = dum3 endif ifeq($(PLATFORM), $(X86)) CC = gcc endif ifeq($(PLATFORM),$(PAN)) CC = dum1 endif ifeq($(PLATFORM),$(ARM)) CC = dum2 endif $(CC) -o ./Executable/list ./Source/ll_main.c ./Library/liblst.a ./Executable/list When I make this it shows error.... Syntax error: word unexpected (expecting
Syntax Error Word Unexpected (expecting ) ) Shell Script
")") ? Plzz.. Help.. makefile share|improve this question asked Jan 20 '14 at 5:36 Chirag Parekh 11115 add a comment| 1 Answer 1 active oldest votes up vote 13 down vote accepted The formatting in your question (both the makefile and the error message) is too messed up to be sure, but my suspicion is that your ifeq is indented with a TAB. That's not right; ifeq is a make command. (Almost) all lines with TAB characters as the first character on the line in a makefile is passed to the shell. The shell doesn't know anything about ifeq, so, depending on your shell, might print an error like that. You should move the app: target after the ifeq blocks to just before the use of $(CC) (and ensure the $(CC) ... line is indented with a TAB as the first character on that line). In the future please be sure to use SO's formatting capabilities, and be sure to cut and paste error messages exactly, plus a few lines of context before and after, when asking questions. share|improve this answer answered Jan 20 '14 at 5:43 MadScientist 26.7k32238 1 Thanks
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies line 1 syntax error word unexpected expecting of this site About Us Learn more about Stack Overflow the company Business syntax error word unexpected (expecting ) ) ubuntu Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question
Python Syntax Error: Word Unexpected (expecting ")")
_ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's http://stackoverflow.com/questions/21226905/syntax-error-word-unexpected-expecting how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Shell script fails: Syntax error: “(” unexpected up vote 31 down vote favorite 7 I've been working on a script that automates setting up a development environment for Raspberry Pi development (step by step details that work are here). The script is http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected linked in that article but convenience you can find it here also. Now when run this script install and sets up the environment without error but you have to enter your sudo password more than once due to sudo's time-out value by default. So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: kemra102@ubuntuvm:~$ sudo ./pi_dev_env_install.sh This works fine as expected and gets most of the way through until this point: ./pi_dev_env_install: 68: ./pi_dev_env_install.sh: Syntax error: "(" unexpected Now this line worked fine previously when not running the whole script with sudo. There is nothing about this line running as sudo that should stop it working to my knowledge, does anyone have any ideas? bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 369k666681119 asked Aug 18 '12 at 11:37 kemra102 4681613 The shebang is really in line 9? Due to Ubuntu's DashAsBinSh affinity I suspect your script is interpreted by dash instead of bash. Try to move the shebang in line 1. –manatwork Aug 18 '12 at 11:45 Ac
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Non-*NIX Forums > Programming [SOLVED] /bin/sh: Syntax error: "(" unexpected User Name Remember Me? http://www.linuxquestions.org/questions/programming-9/bin-sh-syntax-error-unexpected-906697/ Password Programming This forum is for all programming questions. The question does not have to be directly related to Linux and any language is fair game. Notices Welcome to LinuxQuestions.org, a friendly https://community.nxp.com/thread/277546 and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, syntax error subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the syntax error word registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 10-06-2011, 02:58 AM #1 manojrb18 LQ Newbie Registered: Oct 2011 Posts: 2 Rep: /bin/sh: Syntax error: "(" unexpected Hi, I am getting below er
it enabled. Please turn JavaScript back on and reload this page.More Discussions in i.MX Community Where is this place located?NXP CommunityAll Placesi.MX CommunityLog in to create and rate content, and to follow, bookmark, and share content with other members.qmake: 1: Syntax error: word unexpected (expecting ")")Discussion created by Hitesh Sharma on Feb 8, 2012Latest reply on Feb 14, 2012 by Hitesh Sharma Like • Show 0 Likes0 Comment • 7HiI am trying to cross compile my program in imx 53 board. When i give "qmake -project" it is giving the following error./usr/bin/qmake: 1: Syntax error: word unexpected (expecting ")")any ideasThanksHiteshOutcomesVisibility: i.MX Community2756 ViewsLast modified on Feb 8, 2012 2:47 AMTags:ning_discContent tagged with ning_discThis content has been marked as final. Show 7 comments7 RepliesNameEmail AddressWebsite AddressName(Required)Email Address(Required, will not be published)Website AddressKrishnaPavan Feb 8, 2012 2:51 AMAre you sure qmake is in usr/bin.As far as I know, it will be in /bin in the QtSDK DirectoryRegards :: Krishna PavanLike • Show 0 Likes0 Actions Hitesh Sharma Feb 8, 2012 3:09 AMHiThanks for quick replyI tried with qmake in /bin. Still I am getting errorbin/qmake: 1: Syntax error: word unexpected (expecting ")")RegardsHiteshLike • Show 0 Likes0 Actions KrishnaPavan Feb 8, 2012 3:14 AMHi,You have to use your qmake thats present for the target [ uses Codesourcery tool chain ] and not that is present when you installed Qt on your machine [ uses native gcc ].Both are different.Run sudo find / -name "qmake" to find out where your qmake is.Regards :: Krishna PavanLike • Show 0 Likes0 Actions Hitesh Sharma Feb 8, 2012 3:47 AMHi"qmake " is in the folder /binand I am using qmake which is present for the target not the one which is there when i inst