General :: Line 11: Error: Expected ':', ',', '','}' Or '_attribute_' Before '}' Token?
Feb 2, 2010I worte some code, but I got error for complier.
Code is :
#include <stdio.h>
#include <stdlib.h>
[code]...
I worte some code, but I got error for complier.
Code is :
#include <stdio.h>
#include <stdlib.h>
[code]...
I am trying to install NS-2.1b9a in Fedora 8.0. I have already installed gcc-3.3 and made new link to the newly installed gcc. I used patch made for NS-2.1b9a (found in [URL]...-8-ubuntu.html) to install in Fedora 8.0. Now, when I run ./install I get follwoing error.
[Code]..
I don't know if this is the best place to ask this question. This question arose when I had a g++ compilation error: error: expected constructor, destructor, or type conversion before '.' token The above message can be correctly displayed in urxvt or xterm. But in mrxvt the '.' part can't be displayed correctly. Then I noticed that the quote signs are actually different from the usual ones and there seems no way to type ' ' from the keyboard. What are the differences and how to make mrxvt to display ' ' correctly. I found mrxvt very good and easy to configure.
View 4 Replies View RelatedI am repeatedly getting error:
I need to pass the value of:
I am using #!/bin/bash
This command works on shell without any issue.
I'm using fedora 12 with sun virtualbox and I want to install texinfo 4.9 from texinfo-4.9.tar.bz2
-I extracted the archive in a folder..........ok
-In a terminal: ./configure......................ok
-In the terminal: make...........................error
I am getting:
info.c: In function 'main':
info.c:161: error: expected expression before '/' token
info.c:327: error: expected expression before '/' token
info.c:327: error: too few arguments to function 'info_add_path' ...
and a lot more. For some personnal reasons I must install it this way, I can't upgrade fedora, gcc...
Okay, first off I'm no hotshot programmer (and actually lack much familiarity with shell scripting) so apologies in advance if this problem is so trivial as to be irritating.
What I'm trying to do is drop the following command from either a shell script or a perl program. However, while it executes fine and does what it's supposed to when entered from the command line, I can't get it to work as a system call.
Here's the line:
Code:
When I drop it from a shell script like this:
Code:
I get the following:
Code:
If I try escaping the ()s with or ', I get this:
Code:
I've tried a bunch of other stuff to get it working (deleting the ()s, spacing them differently, etc) and looked around online for a solution, but I can't find anything that works.
I tried a shell script directly only after anything I tried to drop it from perl with `` or system() failed with the same errors.
I am new to shell scripting, bash specifically.
I am trying to run the following script:
Code:
When trying to execute I always get this error:
Code:
In case you need to know the permissions. Here is it:
Code:
I run the script using the following command:
Code:
find /opt/postfix/mail/email.com/~spam/~quarantine/ ( -iname * -o -iname .* ) ! -type p -exec grep -i -c admin@email.com {}; -xdev -print
When I do this command I receive this error message:
-bash: syntax error near unexpected token `('
I wrote a script to start portal.
Its start portal (not a problem)
Only getting following message:
This is the else before second logic
I'm trying to install the Sun Java plugin to use in Chrome. The installation seems to have gone well, but I have hit an error trying to create a symbolic link of the libnpjp2.so library in the plugins directory of Chrome.
When typing in "in -s /opt/java/jre1.6.0_26/lib/i386/libnpjp2.so" I get "Syntax error near unexpected token `in' ". I'm not sure what could be wrong, I'm in the right directory.
I am trying to install vlc media player on my backtrack3 but when i am giving a command xvjf to extract bz2 file then
bash: syntax error near unexpected token `('
I have been trying to get the following code to run.
Code:
However I am getting the following error:
Is there something that I am missing in the script? I have it as a unix file and tried to make sure that I did not have any extra characters.
cat /etc/DIR_COLORS
Code:
LS_COLORS='rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:';
After opening a konsole terminal I get this message:
Code:
/bin/dircolors: /etc/DIR_COLORS:1: invalid line; missing second token
How can I get rid of that?
I'm trying to create a new directory using the mkdir command.
Code:
home@ubuntu:~$ mkdir <aicoursework>
bash: syntax error near unexpected token `newline'
that's the error that i keep getting, what am i doing wrong?
The following problem occurs to me, I'm creating a distribution (as a class project) for my school (I'm studying telecommunications and computer systems). I am following, in order to create the distribution, the manual that you can find on this page: [URL] But when I get to write:
[Code]...
Any hints why I'm getting the following message: dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1 dhclient: Copyright 2004-2010 Internet Systems Consortium. dhclient: All rights reserved.
[Code]...
I have an error when I try to add a user or change a password: Authentication token manipulation error.happens suddenly. My config: Ubuntu server 9.04, Samba, open-ldap. Until now I can create users without problem. Now, I can create but with password error. If i add the user to Samba, no problem.I have googled it several hours, but I cant find any solution to it
View 1 Replies View RelatedI am trying to build a script that runs on AIX, Solaris, and various flavors of Linux as well. It is very simple, or so I thought. I have the AIX and Solaris servers working well. Next I tried to get my workstation to run the script and it bombed. I am running Fedora 12 x86_64, but that isn't really important. I have various flavors of Linux. Some CentOS, RH, and even a Gentoo server. The script I have runs every hour on all servers. I can push out changes and install software with it, but the Linux WS won't run it.
Here is my script:
And here are the errors:
Is this just an issue with going between ksh and bash?
#by executing bash file
#!/bin/sh
sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php
Output is:
line 4: syntax error near unexpected token `<'
line 4: 'sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php'
I'm fairly new to shell scripting and am having the hardest time figuring out why this simple script is giving me an error
The error is "syntax error near unexpected token `else'
I'm using TextEdit on OSX (sorry I'm limited to this). The only thing I can think of is that it's reading some return character and getting thrown off. I've tried saving the script using different encoding types but the same error pops up.
I also get an error at line 2 because it does not regonize as a command
Syntax Error Near Unexpected Token
View 2 Replies View RelatedI am using Scientific Linux version 2.6.9-67.EL.cernsmp (root@lxcert-i386) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Wed Nov 21 16:22:33 CET 2007. Now I want to install rediff bol in it. so i downloaded rediff bol from the site
Code:
http://linux.softpedia.com/progDownload/rediffbol-prpl-Download-34762.html
after that i have downloaded libpurple and libpurple developement from
[code]....
if [ $games -gt 0 ] ; then
echo ""
echo "*** New Game! ***"
[code]....
I have been spending several days getting wxwidgets to work in code::blocks ide on several different platforms. Now I am down to one instance that I can't figure out. I have wxwidgets working in Fedora 13 x64, but cannot get it to work in a Fedora 13 x32 version. Actually, wxwidgets seem to be installed OK, but I run into compiler errors when I try to compile the default wxhello project. I get quite a few messages, in different header files, of this type:
/usr/include/assert.h:39:42: error: missing binary operator before token "("#if defined __cplusplus && __GNUC_PREREQ (2,95) From my friend Google this would seem to be caused by an older version of boost (before 1.37) - see http://bugs.xmms2.xmms.se/view.php?id=2215 ("It is an issue with old versions of boost and gcc4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36453 It is fixed in boost 1.37")
I did a yum info command on both systems for every relevant package I could think of, including gcc(v4.4.4), gcc-c++(4.4.4), libgcc(4.4.4), libstdc++(4.4.4), boost(1.41.0), wxGTK(2.8.11), wxBase(2.8.11). Both systems are fully updated and have the same versions, with the only difference being 32 vs 64 bit. The same headers compile with no errors on the x64 system, but not x32. I have been able to find no other reason for this error than older versions of the preprocessor, yet that is apparently not the case here).
I'm new to php.
I wrote a basic php script using gedit:
Saved is as FirstPHP.php
Then I did a chmod 755 FirstPHP.php
And ran it. Got the following out put:
Why am I getting a syntax error? Am I missing something?
I got this script from website for inviting peoples to game and earning points easily ...but this seems not working and giving error..
View 4 Replies View RelatedI have a .sql file that is too large and needs to be uploaded via ssh.I know the commands to do this but my username password has parenthesis in it i.e. (password)So I am getting -bash: syntax error near unexpected token.
View 2 Replies View RelatedUsed svn co to fetch latest version of rtorrent. Ran svn up in the trunk directory.
Now to compile libtorrent...
Code:
Similar with compiling rtorrent...
Code:
bash: make: command not found
I'm trying to get this script working, it's supposed to give me options of typing B to backup a folder, typing R to restore the backup, and typing E to exit.
[Code]....
When I attempt to run the script, I get my echos prompting me to type B, R or E and press enter. When I type B and press Enter, I get this:
Code: line 18: syntax error near unexpected token 'then' line 18: 'then'
I install nfs-common,nfs-kernel-serverNow I can not use
PHP Code:
# home 192.168.1.10(ro,no_root_squash)
I get
Quote:
bash: syntax error near unexpected token `('
when I want to share a folder