LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-11-2008, 07:57 PM   #1
computerdan000
LQ Newbie
 
Registered: May 2005
Location: New Jersey
Distribution: Kubuntu
Posts: 3
Thanked: 0
Question Debian Menu File - Mysterious Syntax Error


[Log in to get rid of this advertisement]
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).
computerdan000 is offline  
Tag This Post ,
Reply With Quote
Old 08-28-2009, 10:06 AM   #2
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 32
Thanked: 1
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.
linuxfedora greeneagle is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration