Bash Syntax Error Near Unexpected Token Newline Ubuntu
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
Repo Syntax Error Near Unexpected Token Newline
Us Learn more about Stack Overflow the company Business Learn more about hiring developers repo line 2 syntax error near unexpected token newline or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question
Bash Syntax Error Near Unexpected Token Done'
and answer site for Ubuntu users and 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 bash syntax error near unexpected token echo' up and rise to the top Syntax error near 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)" bash syntax error near unexpected token else' How can I solve this? What went wrong? command-line bash scripts share|improve 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 N
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation
Bash Syntax Error Near Unexpected Token Fi'
User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web bash syntax error near unexpected token then' Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum
Bash Syntax Error Near Unexpected Token Do'
Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] bash: syntax error near unexpected token `newline' Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is http://askubuntu.com/questions/764433/syntax-error-near-unexpected-token-newline-while-installing-predictionio the place to report it, thanks ! Results 1 to 6 of 6 Thread: bash: syntax error near unexpected token `newline' Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 1st, 2009 #1 pantmerchant View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Sep 2009 Beans 4 DistroUbuntu 10.04 Lucid Lynx bash: syntax error near https://ubuntuforums.org/showthread.php?t=1255606 unexpected token `newline' Hello all. I'm running Ubuntu Server and am having problems running a .sh script trying to build a Open GTS Server. the command is bin/initdb.sh -rootUser=
Support Search GitHub This repository Watch 706 Star 15,024 Fork 1,087 firehol/netdata Code Issues 142 Pull requests 13 Projects 5 https://github.com/firehol/netdata/issues/95 Wiki Pulse Graphs New issue syntax error near unexpected token `newline' #95 Closed ben29 opened this 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 syntax error token newline'
./configure: line 4929: PKG_CHECK_MODULES(' justincm commented 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 syntax error near found" "$LINENO" 5 $as_echo "#define INTERNAL_PLUGIN_NFACCT 1" >>confdefs.h OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${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, 20