ToadKing / wii-u-gc-adapter

Tool for using the Wii U GameCube Adapter on Linux
MIT License
240 stars 42 forks source link

Syntax error on execution #9

Closed emini closed 9 years ago

emini commented 9 years ago

wii-u-gc-adapter: 1: wii-u-gc-adapter: Syntax error: "(" unexpected

Xubuntu 14.04.1 Packages used: libudev-dev 204-5ubuntu20, libusb-1.0-0-dev 2:1.0.17-ubuntu

TheDJ42 commented 9 years ago

I think this article may have some insight. http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected I am also have this syntax error.

ToadKing commented 9 years ago

The driver is not a shell script On Jan 2, 2015 9:26 PM, "TheDJ42" notifications@github.com wrote:

I think this article may have some insight. http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected I am also have this syntax error.

— Reply to this email directly or view it on GitHub https://github.com/ToadKing/wii-u-gc-adapter/issues/9#issuecomment-68584078 .

TheDJ42 commented 9 years ago

Then I have no idea why I'm getting this. Running it as root finally works though.

TheDJ42 commented 9 years ago

So after working through it, I figured it out. The command that emini is running is probably "sudo sh wii-u-controller-adapter" which is incorrect, the command that you should be running is "(sudo) ./wii-u-controller-adapter" (in the directory that the program is in of course."