NICLOS Posted December 28, 2016 Share Posted December 28, 2016 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 Quote Link to comment Share on other sites More sharing options...
___ Posted December 28, 2016 Share Posted December 28, 2016 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. Quote Link to comment Share on other sites More sharing options...
NICLOS Posted December 28, 2016 Author Share Posted December 28, 2016 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? Quote Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2016 Share Posted December 28, 2016 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. RegardsSent from my SM-G920F using Tapatalk Quote Link to comment Share on other sites More sharing options...
Guest Posted December 29, 2016 Share Posted December 29, 2016 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. Quote Link to comment Share on other sites More sharing options...
___ Posted December 29, 2016 Share Posted December 29, 2016 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.