Bash Syntax Error Unexpected Token Newline
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start 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
Bash Syntax Error Near Unexpected Token Newline'
Stack Overflow the company Business Learn more about hiring developers or posting ads with us bash syntax error near unexpected token newline' in ubuntu Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and repo syntax error near unexpected token newline developers. 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 near
Line 2 Syntax Error Near Unexpected Token Newline
unexpected token `newline' while installing Predictionio up vote 0 down vote favorite I'm new to Prediction.io and when I try to install it following the instruction at this page I get the following error: bash: -c: line 0: syntax error near unexpected token `newline' bash: -c: line 0: `' The command I'm executing is bash -c "$(curl -s https://install.prediction.io/install.sh)" How can I solve this? What went wrong? command-line bash scripts share|improve
Bash Syntax Error Near Unexpected Token Done'
this question edited Apr 29 at 1:26 muru 68.1k12123171 asked Apr 28 at 16:45 avidProgrammer 313 You forgot to close your quote? –steeldriver Apr 28 at 16:52 Great Observation! It was a typo error when writing the question but the command stills shows the same error. –avidProgrammer Apr 28 at 16:56 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Well, the file that you're putting between the quotes, to execute as a bash command, is a 15917 byte bash script (written by Somebody Else, and you're running it without inspection, but that's off topic). If you split it up into simpler commands, you could: curl -s https://install.prediction.io/install.sh >install.sh # inspect install.sh here bash ./install.sh # if it fails, do bash -x ./install.sh rm ./install.sh share|improve this answer answered Apr 28 at 22:32 waltinator 10.7k52351 Thank you! It worked perfectly. –avidProgrammer Apr 29 at 15:23 add a comment| 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. Not the an
Support Search GitHub This repository bash syntax error near unexpected token echo' Watch 12 Star 68 Fork 69 torch/ezinstall Code Issues
Bash Syntax Error Near Unexpected Token Else'
9 Pull requests 0 Projects 0 Pulse Graphs New issue bash: line 2: bash syntax error near unexpected token fi' syntax error near unexpected token `newline' #80 Closed lukeyeager opened this Issue Jan 7, 2016 · 6 comments Projects None yet Labels http://askubuntu.com/questions/764433/syntax-error-near-unexpected-token-newline-while-installing-predictionio None yet Milestone No milestone Assignees No one assigned 2 participants lukeyeager commented Jan 7, 2016 We're currently using the install-deps script for DIGITS TravisCI builds. It's started failing on me in the last two days with errors like this (but only intermittently?): https://github.com/torch/ezinstall/issues/80 $ travis_wait ./scripts/travis/install-torch-wrapper.sh $(pwd)/deps/torch $(pwd)/torch-install-log.txt Still running (1 of 20): ./scripts/travis/install-torch-wrapper.sh /home/travis/build/lukeyeager/DIGITS/deps/torch /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt The command ./scripts/travis/install-torch-wrapper.sh /home/travis/build/lukeyeager/DIGITS/deps/torch /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt exited with 1. Log: +++'[' 2 -ne 2 ']' +++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch +++LOG_FILE=/home/travis/build/lukeyeager/DIGITS/torch-install-log.txt +++./scripts/travis/install-torch.sh /home/travis/build/lukeyeager/DIGITS/deps/torch +++cat /home/travis/build/lukeyeager/DIGITS/torch-install-log.txt ++++'[' 1 -ne 1 ']' ++++INSTALL_DIR=/home/travis/build/lukeyeager/DIGITS/deps/torch ++++mkdir -p /home/travis/build/lukeyeager/DIGITS/deps/torch ++++bash ++++curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps bash: line 2: syntax error near unexpected token `newline' bash: line 2: `' +++false /home/travis/build.sh: line 112: 5605 Terminated travis_jigger $! $timeout $cmd The command "travis_wait ./scripts/travis/install-torch-wrapper.sh $(pwd)/deps/torch $(pwd)/torch-install-log.txt" failed and exited with 1 during . Your build has been stopped. https://travis-ci.org/lukeyeager/DIGITS/builds/100877937 Can we fix this, or do I need to figure out how to use a different Torch install mechanism? The README says the repo is deprecated, but according to this comment the install-deps script should still work: The in
Support Search GitHub This repository Watch 706 Star 15,024 Fork 1,087 firehol/netdata Code Issues 142 Pull requests 13 Projects 5 Wiki Pulse Graphs https://github.com/firehol/netdata/issues/95 New issue syntax error near unexpected token `newline' #95 Closed ben29 opened this https://discussions.apple.com/thread/3072301?start=0&tstart=0 Issue Mar 31, 2016 · 7 comments Projects None yet Labels installation help packaging Milestone No milestone Assignees No one assigned 5 participants ben29 commented Mar 31, 2016 checking for sin in -lm... yes ./configure: line 4929: syntax error near unexpected token newline'
./configure: line 4929: PKG_CHECK_MODULES(' justincm commented syntax error Mar 31, 2016 I commented out in the configure.rc file the following line if test "${enable_plugin_nfacct}" = "yes"; then PKG_CHECK_MODULES( NFACCT, libnetfilter_acct, ) PKG_CHECK_MODULES( LIBMNL, libmnl, ) test -z "${NFACCT_LIBS}" && as_fn_error $? "netfilter_acct required but not found" "$LINENO" 5 test -z "${LIBMNL_LIBS}" && as_fn_error $? "libmnl required but not found" "$LINENO" 5 $as_echo "#define INTERNAL_PLUGIN_NFACCT 1" >>confdefs.h OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} syntax error near ${LIBMNL_LIBS}" fi if test "${with_zlib}" = "yes"; then PKG_CHECK_MODULES( ZLIB, zlib, ) test -z "${ZLIB_LIBS}" && as_fn_error $? "zlib required but not found" "$LINENO" 5 $as_echo "#define NETDATA_WITH_ZLIB 1" >>confdefs.h OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}" OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}" fi then reran the ./netdata-installer.sh --zlib-is-really-here now running ben29 commented Mar 31, 2016 yea i did it. but next commit or next change i need to it over and over again justincm commented Mar 31, 2016 You are editing the configure.ac file right? I made the change there and it remain persistent. If you change the configure file it will change each time you run the installer because it uses the .ac file to build the configure file ktsaou added the installation help label Mar 31, 2016 Ismael commented Mar 31, 2016 Try installing pkg-config justincm commented Apr 1, 2016 it is installed on my system I do get this in the install ./configure: line 3940: PKG_PROG_PKG_CONFIG: command not found ktsaou added the packaging label Apr 2, 2016 kn007 referenced this issue Apr 21, 2016 Closed NetData failed to build on Centos 6 x64 #296 paulfantom commented Jul 30, 2016 I
Please enter a title. You can not post a blank message. Please type your message and try again. CrazyFreak Level 1 (0 points) Q: help with "-sh: syntax error near unexpected token 'newline'" https://discussions.apple.com/thread/2141347?threadID=2141347^ I followed these steps since migration assistant hanged on me, but when i entered the command:
chown -R username:staff /Users/usernamei got:-sh: syntax error near unexpected token 'newline'i made sure my username was the EXACTLY in the correct field where it said to place your username, did everything correctly, until this occured. what should I do? Posted on May 21, 2011 8:12 PM I have this question too Close Q: help with "-sh: syntax error near unexpected token 'newline'" All replies Helpful answers by red_menace, red_menace May 22, 2011 7:15 AM in response to CrazyFreak Level 6 (15,536 points) Desktops May 22, 2011 7:15 AM in response to CrazyFreak The command you entered contains HTML (the
...bit) - quite a few posts from before the forum change wound up with mangled formatting. The correct command will be without the formatting code, and will be something like:chown -R username:staff /Users/usernameNote that there is a Unix category in the Mac OS X Technologies Community. Helpful (0) Reply options Link to this post This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use. Support Apple Support Communities Shop the Apple Online Stor