2011年8月4日 星期四

test

class Voila {
public:
// Voila
static const string VOILA = "Voila";

// will not interfere with embedded tags.
}

2011年5月30日 星期一

Build Python From Source

Pythonbrew can save time, but sometime it is more convenient to build Python from source yourself. The following discussion refers to this discussion: Missing Modules


# Replace url from here http://www.python.org/ftp/python/
wget url

tar xf Py*.tar.bz2
cd Py
./configure --prefix=/home/python27
make
make install





References:
http://joysofprogramming.com/install-readline-linux/
http://christophermahan.com/hacking/2009/python2.6-on-debian-stable.html

Mange Different Version of Python

Pythonbrew is a great tool to manage different versions of Python on the same platform.

For complete reference, please referes to this:
http://www.howopensource.com/2011/05/how-to-install-and-manage-different-versions-of-python-in-linux/

# install easy_install and other setup tools
sudo apt-get install python-setuptools

sudo easy_install pythonbrew
pythonbrew_install
sudo apt-get install curl
echo >>~/.bashrc "source /home/jwxie518/.pythonbrew/etc/bashrc"
pythonbrew install 2.7.1