LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 10-11-2008, 07:57 PM   #1
computerdan000
LQ Newbie
 
Registered: May 2005
Location: New Jersey
Distribution: Kubuntu
Posts: 3

Rep: Reputation: 0
Question Debian Menu File - Mysterious Syntax Error


I am building a package of the Arduino IDE for a live CD I'm building; I'm trying to make upgrading things easier when it happens instead of chasing file all over the place. When I wrote and tested the menu file (to make things show up in the menu), it barfed with the following syntax error:
Code:
/usr/share/menu/arduino: 1: Syntax error: word unexpected (expecting ")")
Execution of /usr/share/menu/arduino generated no output or returned an error.
I've examined line 1 multiple times, then moved to looking through the entire file, and didn't find anything. I've reproduced the entire file below.
Code:
?package(arduino):\
	needs="X11"\
	section="Apps/Programming"\
	hints="IDE"\
	title="Arduino IDE"\
	icon32x32="/usr/share/pixmaps/arduino.xpm"\
	icon16x16="/usr/share/pixmaps/arduino-16.xpm"\
	command="/usr/share/arduino/arduino"
I looked at other menu files to see if I missed something (my first thought was maybe someone made a typo in the guide I was using, and you need quotes around the package name, but other menu files did not have quotes as well), but there was nothing immediately obvious.

I built things using Kubuntu 8.04 KDE4 Remix and tested in in Xubuntu 8.10 Beta in VirtualBox (so as not to ruin things by accident).
 
Old 08-28-2009, 10:06 AM   #2
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
Quote:
Originally Posted by computerdan000 View Post
Code:
/usr/share/menu/arduino: 1: Syntax error: word unexpected (expecting ")")
Very very VERY late reply but I've seen a few threads on ther internet without a proper solution for this particular error.

This error ("line 1: syntax error: word unexpected (expecting ")")") is misleading.
It leads one initially to suspect a scripting error.
It can because of trying to run an incompatible (maybe elf64, maybe for a different platform) binary on an elf32 platform (x86/i386).

It is quite like the misleading error you get in solaris 32bit or 64bit "Invalid argument" if trying to run an incompatible binary.
 
Old 01-09-2011, 09:39 AM   #3
hatorisama
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Idem, very late reply but may be relevant for some users who still have the same problem. So do I but I solve it just before report a bug on Debian Report Bugs...
So my system have about 50 entries missing on his menu and sub-menus. The difference between them is the executive rights of the file in /usr/share/menu/.
An item is present if his corresponding file in /usr/share/menu/ is not executable and an item is not present in the menu if the corresponding file in /usr/share/menu/ is executable.
Code:
# update-menus
# chmod +x /usr/share/menu/xmoto 
# update-menus
/usr/share/menu/xmoto: 1: Syntax error: word unexpected (expecting ")")
L'exécution de /usr/share/menu/xmoto n'a créé aucune donnée en sortie ou a retourné une erreur.
# ll /usr/share/menu/xmoto 
-rwxr-xr-x 1 root root 95 22 nov.  21:46 /usr/share/menu/xmoto
# chmod -x /usr/share/menu/xmoto
# update-menus
#
Cheers,
hatori.
 
  


Reply

Tags
deb, package


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Script error "line 31: syntax error: unexpected end of file" eswanepoel General 7 12-07-2007 10:28 AM
Syntax error in sudoers file Julix Linux - General 9 09-07-2007 10:44 PM
Syntax Error Suders file Asteroid Linux - General 1 08-03-2007 03:17 AM
/usr/bin/lesspipe: line 223: syntax error: unexpected end of file fakie_flip Linux - Software 1 09-06-2006 03:22 AM
ndiswrapper throws syntax error when I try to run with my .inf file pfatts Linux - Wireless Networking 8 10-01-2004 05:04 PM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration