Configure 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 line 1 syntax error word unexpected expecting the workings and policies of this site About Us Learn more about
Syntax Error Word Unexpected (expecting Do )
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow syntax error word unexpected (expecting ) ) shell script Questions Jobs Documentation 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 syntax error unexpected expecting keyword_end other. Join them; it 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
Syntax Error Unexpected Expecting End
chain on Ubuntu 10.04. I followed the 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
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 unexpected expecting end syntaxerror Learn more about hiring developers or posting ads with us Raspberry Pi Questions Tags Users syntax error word unexpected (expecting ) ) makefile Badges Unanswered Ask Question _ Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software
Syntax Error Word Unexpected (expecting ) ) Ubuntu
for Raspberry Pi. 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 Syntax error: http://stackoverflow.com/questions/36725864/syntax-error-word-unexpected-expecting word unexpected (expecting “)”) ERROR when run : python configure.py up vote 1 down vote favorite I followed this link to install PyQt5 on Raspbian. First I cross compiled Qt5 (this link) for Raspberry and executed an example. It worked fine. When executing this command: python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib I received the following error: Querying qmake about your Qt installation... /usr/local/qt5pi/bin/qmake: 1: /usr/local/qt5pi/bin/qmake: ELF: not found /usr/local/qt5pi/bin/qmake: 2: /usr/local/qt5pi/bin/qmake: Syntax error: word unexpected (expecting http://raspberrypi.stackexchange.com/questions/34019/syntax-error-word-unexpected-expecting-error-when-run-python-configure ")") Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the --qmake flag to specify the correct version of qmake. Did I do something wrong? software-installation qt share|improve this question edited Jul 31 '15 at 19:13 HeatfanJohn 2,01221228 asked Jul 31 '15 at 17:47 Mostafa Farzane 164 Are you running the python configure.py command on your Raspberry Pi? –HeatfanJohn Jul 31 '15 at 19:26 yes,I run: python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib. and if I run python configure.py without any arguman it say: Error: Use the --qmake argument to explicitly specify a working Qt qmake –Mostafa Farzane Jul 31 '15 at 19:56 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged software-installation qt or ask your own question. asked 1 year ago viewed 340 times Blog Stack Overflow Podcast #89 - The Decline of Stack Overflow Has Been Greatly… Related 1cross compile qt 5.22Running
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 Learn more about hiring developers or posting http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/line-1-syntax-error-word-unexpected-expecting-898733/ 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 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 syntax error 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 time-out value by default. So I started experimenting by removing all the sudo lines and running the whole script via syntax error word 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 369k676711119 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 not begin with a shebang line, so the kernel executes it with /bin/sh. On Ubuntu, /bin/sh is dash, a shell designed for fast startup and execution with only standard features. When dash reaches line 68, it sees a syntax error: that parent
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer [SOLVED] line 1: syntax error: word unexpected (expecting ")") User Name Remember Me? Password Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome. 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 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. 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 08-22-2011, 05:52 AM #1 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Rep: line 1: syntax error: word unexpected (expecting ")") Hi,I was working with beagle board and showed line