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.


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 -O - | tar xz

# Change to pastie source directory and install pastie
cd pastie_*
sudo python 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.


Popular posts from this blog

Add items to Xfce Applications Menu

[HOW TO] Add Application Launcher to Xfce's Panel

Add application to Xfce/Xubuntu session startup [Xubuntu >= 11.10]