You are not logged in.

#1 2015-08-09 12:46:27

han95
Member
Registered: 2014-05-10
Posts: 11

problem with installing nacl_sdk [SOLVED]

i should sorry first for my  bad english smile
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

#2 2015-08-09 13:14:09

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: problem with installing nacl_sdk [SOLVED]

It is a bash script that executes python at the end. Try changing that to "python2".

Offline

#3 2015-08-10 03:00:32

han95
Member
Registered: 2014-05-10
Posts: 11

Re: problem with installing nacl_sdk [SOLVED]

i changed that to python2 but nothing happend sad

Offline

#4 2015-08-10 05:44:47

han95
Member
Registered: 2014-05-10
Posts: 11

Re: problem with installing nacl_sdk [SOLVED]

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

#5 2015-08-10 06:15:59

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: problem with installing nacl_sdk [SOLVED]

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

Board footer

Powered by FluxBB