Jump to content

AICC: Syntax error: word unexpected (expecting ")")


NICLOS
 Share

Recommended Posts

Hello everyone.

I'm trying to test AICC for Pi in a Linux Mint Operating system. This OS is based on Ubuntu that uses Debian, so I guess that if I strictly follow installation instructions, I'll work on this OS.

AICC is an application that works on PI so it should work on other OS based on Debian,shouldn't it?

The point is that after following installation instructions, when I run executable AICC, it displays an error. AICC: Syntax error: word unexpected (expecting ")")

I don't know how to handle this error because it's impossible to modify  the executable AICC.

What is wrong? Any suggestion? Only works on Raspbian? 

I'm checking this option because if it works then I'll buy a raspberry pi3 and the license to use it all time.

Thanks

Link to comment
Share on other sites

Change your default shell to bash and it should work. This is a wild guess based on some googling. Eg:

sudo dpkg-reconfigure dash

Then choose NO (so it uses bash as system shell).

That should fix it. It's not the best fix IMHO, right fix is to fix the script. This kind of bug is what is called a bashism, when a shell script says #!/bin/sh at the top, assuming that sh == bash, while this is not always the case.

The AICC guys should fix their script. It should either have a #!/bin/bash at the top, or avoid using functionality not available outside bash.

Link to comment
Share on other sites

Reading again http://aicc.org.za/install-and-setup/ , the previous error occurs when I run AICC as a root, something that I shouldn't do. Now I've executed AICC with no root user, then error is different. It displays "cannot execute binary file exec format error".

Seaching on the internet I could read that problem is I'm trying to execute an arm architecture program in a 64bit operating system (Linux mint 64bit).

Does application only work for an arm architecture? Is not possible to work on 64bit architecture? Could it work on Ubuntu Server for arm?

Link to comment
Share on other sites

Reading again http://aicc.org.za/install-and-setup/ , the previous error occurs when I run AICC as a root, something that I shouldn't do. Now I've executed AICC with no root user, then error is different. It displays "cannot execute binary file exec format error".
Seaching on the internet I could read that problem is I'm trying to execute an arm architecture program in a 64bit operating system (Linux mint 64bit).
Does application only work for an arm architecture? Is not possible to work on 64bit architecture? Could it work on Ubuntu Server for arm?



AICC Raspberry is for the raspberry pi wich is base on arm architecture and therefore does only support arm. It does not run on other architecture. Maybe in version 2 we will make it compatible.

Regards

Sent from my SM-G920F using Tapatalk

Link to comment
Share on other sites

AICC Pi only works on the pi. Follow the steps as shown and it will work. There is a Windows version also but it only works for the 5kw and only supports serial. We no longer develop on that platform.

Link to comment
Share on other sites

On 12/28/2016 at 6:46 PM, KIKE NICLOS said:

previous error occurs when I run AICC as a root

Aaaah, that would happen if you have a shell script with no hash-bang at the top. Root often uses /bin/sh as shell, while the other users use /bin/bash. That would explain why the error only shows up for root.

I haven't seen the script at all. Just making wild guesses. Script then needs a #!/bin/bash at the top to ensure it works everywhere.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...