Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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.

  • Author

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?

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

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.

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.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.