Installing phpsh on linux, Python error -


i'm trying install phpsh on ubuntu , did on install guide, getting error:

starting php traceback (most recent call last):  file "/usr/local/bin/phpsh", line 47, in <module>    verbose=opts.verbose)  file "/usr/local/lib/python2.7/dist-packages/phpsh/__init__.py",     line 503, in __init__    self.php_open_and_check()  file "/usr/local/lib/python2.7/dist-packages/phpsh/__init__.py",     line 641, in php_open_and_check    self.php_open()  file "/usr/local/lib/python2.7/dist-packages/phpsh/__init__.py",     line 698, in php_open    preexec_fn=os.setsid)  file "/usr/lib/python2.7/subprocess.py", line 679, in __init__    errread, errwrite)  file "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child    raise child_exception oserror: [errno 2] no such file or directory 

why getting these errors? how install phpsh on linux?

open ~/.bashrc terminal using:

linux@terminal:vi ~/.bashrc 

set pythonpath , path in there:

export pythonpath=~/lib/python2.6/site-packages   //put above value site-packages directory location,  //yours may have different python version number. 

then add ~/bin path per directory structure.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -