0

how to install xmpp python lib in ubuntu?

i downloaded this lib file http://archive.ubuntu.com/ubuntu/pool/main/p/python-xmpp/python-xmpp_0.2-rc3.orig.tar.gz

when i say make install its giving me error

ubuntu@ubuntu:/media/DATA/ubuntu/xmpppy-0.2-rc3$ make install

Add here commands to install the package into debian/python-xmpp

[ -d /xmpp ] || mkdir /xmpp mkdir: cannot create directory `/xmpp': Permission denied make: * [install] Error 1

please help

thanks in advance

0

1 Answer 1

1

It's a python package which uses setuptools to install, so make sure you have setuptools installed (sudo apt-get install python-setuptools). Next, extract your xmpp package somewhere, and run setup tools like this:

sudo python setup.py install

That should to the trick.

Sign up to request clarification or add additional context in comments.

7 Comments

huh.. i am using live version of ubuntu.. will it work.. I have booted the system using pen drive
Why not? Pen drives are not read-only like live CDs, which by the way nowadays can mount virtual file systems in your memory too (I think).
ok i tried ur command and again tried installing python dns package this time . still same kind of error. :(ubuntu@ubuntu:/media/DATA/ubuntu/dns/dnspython-1.6.0$ python setup.py installrunning install running build running build_py running install_lib creating /usr/local/lib/python2.6/dist-packages/dns error: could not create '/usr/local/lib/python2.6/dist-packages/dns': Permission denied
Well, I don't think you will be able to install the package unless you have write permissions to /usr/local/lib/python2.6/dist-packages so you should solve that first.
i tried changing file permission of /usr/local/lib/python2.6/dist-packages ubuntu@ubuntu:/usr/local/lib$ chmod 777 python2. .. .. . .giving me error (chmod: changing permissions of `python2.6': Operation not permitted)
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.