You are not logged in.
i should sorry first for my bad english
i want to execute my program --> nacl_sdk(native client) and it has been supported by python2.7
my python version is 3.4.3 and it doesn't support this program. because of that i used
python2.7 ./naclsdk
and i got this error
File "./naclsdk", line 7
readonly SCRIPT_DIR="$(dirname "$0")"
^
SyntaxError: invalid syntax
you can find nacl_sdk here:
https://developer.chrome.com/native-client/sdk/download
anyone can help?
Last edited by han95 (2015-08-10 05:46:55)
Offline
It is a bash script that executes python at the end. Try changing that to "python2".
Offline
i changed that to python2 but nothing happend
Offline
thank you raynman
i didn't understand your post at first
i used
ln -sf python2 python
to do that
i will mark the post as solved
Last edited by han95 (2015-08-10 05:45:05)
Offline
You shouldn't change the default python in /usr/bin, please.
Instead, open ./naclsdk in an editor and replace "python" with "python2" and save it.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline