Wednesday, May 9, 2012

Install pastie from source in [X]Ubuntu 12.04 Precise

Pastie is clipboard manager for Linux and a few posts back I talked about installing the deb package for Oneiric in Precise, however I noticed that in some cases the following error occurred:

Traceback (most recent call last):
  File "/usr/bin/pastie", line 29, in
   import pastielib.cli as cli
ImportError: No module named pastielib.cli

I find out that installing it from source would solve the problem on that cases.

Install

Open a terminal window and run:

# (Only if pastie is installed) Uninstall pastie
sudo apt-get remove pastie -y

# Install dependencies
sudo apt-get install python-gnome2 python-keybinder

# Get the sources and extract
wget http://goo.gl/Xf2A7 -O - | tar xz

# Change to pastie source directory and install pastie
cd pastie_*
sudo python setup.py install

# Clean up by remove the pastie source directory
cd .. && sudo rm -rf pastie_*/

Note: If pastie doesn't appear on Xfce panel see this.

No comments:

Post a Comment