Bin/sh Syntax Error Word Unexpected Expecting
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings bin sh 1 syntax error unexpected and policies of this site About Us Learn more about Stack Overflow
Line 1 Syntax Error Word Unexpected Expecting
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation syntax error word unexpected (expecting do ) Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it syntax error word unexpected (expecting ) ) shell script only takes a minute: Sign up Syntax error: word unexpected (expecting “)”) up vote 1 down vote favorite Problem in short- In linux whenever we get the following error "Syntax error: word unexpected (expecting ")")", what does it generally mean? Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. I followed the
Syntax Error Word Unexpected (expecting ) ) Ubuntu
exact steps mentioned at the link compiling Qt-4.6. But I get the following error right in the ./configure step - /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")") Searching in internet I found lots of posts regarding this error. Read all of them. But still clueless as to What this error is and How to solve it. I would be glad if someone would help me in understanding this error. P.S 1- Sourcery toolchain is present inside /opt/ folder and my PATH variable is correctly pointing to it. P.S 2- This toolchain was not installed manually by me. Rather it was provided by a vendor as a .tgz file which I extracted inside /opt/ folder. arm qt4 share|improve this question asked Apr 19 at 13:53 satya prakash Panigrahi 813 migrated from unix.stackexchange.com Apr 19 at 17:50 This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems. add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted An answer to this seems to be posted in the instructions to
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 About Us Learn more about Stack Overflow the company Business syntax error word unexpected (expecting ) ) android Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users python syntax error: word unexpected (expecting ")") Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other
Emulator Syntax Error Word Unexpected Expecting
Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's 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: http://stackoverflow.com/questions/36725864/syntax-error-word-unexpected-expecting 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 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 http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected 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 According to that article calling /bin/bash directly instead of /bin/sh will; correctly use bash instead of dash so that should not be an issue as I understand it. I can still move the shebang of course, but that doesn't really explain as to why it works when you don’t sudo the whole script. –kemra102 Aug 18 '12 at 11:50 add a comment| 5 Answers 5 active oldest votes up vote 47 down vote accepted The script does no
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? Password Programming This forum is for http://www.linuxquestions.org/questions/programming-9/bin-sh-syntax-error-unexpected-906697/ 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 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, subscribe to threads and access many other special features. Registration is syntax error 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 registration process or your account login, please contact us. If you need to reset your password, click here. syntax error word 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 error while building the u-boot and flashloader source. [ENV] out/spi/u-boot-env.txt [ENV] out/spi/u-boot-env.bin /bin/sh: Syntax error: "(" unexpected make: *** [out/spi/u-boot.z77.pad] Error 2 I do not understand what can be the causes of this. I have