1/16/2010

[HOWTO] install python-visual_5.13 to jaunty

Preparing related packages

Download linux package in

http://vpython.org/contents/download_linux.html

Uncompress it.
And make temporary folder ( ex. vp_tmp ) and get into the vp_tmp folder

/home/username/somewhere$ ls -d visual-5.13_release
visual-5.13_release
/home/username/somewhere$ mkdir vp_tmp
/home/username/somewhere$ ls
visual-5.13_release
vp_tmp
/home/username/somewhere$ cd vp_tmp
/home/username/somewhere/vp_tmp$


install the following 3 packages using synaptic :

libboost-python-dev
libboost-signals-dev
libboost-thread-dev


install the followings using synaptic :

automake
libgtkglextmm-x11-dev
libgtkmm-2.4-dev
libglademm-2.4-dev

Configure

/home/username/somewhere/vp_tmp$ PYTHON=/usr/bin/python ../visual-5.13_release/configure --prefix=/usr
The configure command should be run in a parallel folder.
The install.txt file recommand that.
(for example, vp_tmp which was made in before step)
So, the configure command should be "../visual-5.13_release/configure" rather than "./configure"



compile

/home/username/somewhere/vp_tmp$ make


install

/home/username/somewhere/vp_tmp$ make install

In jaunty, python site-packages or dist-packages are located in
"/usr/lib/python2.6/dist-packages" or "/usr/lib/python2.6/site-packages"
So, prefix should be "/usr"
Then, python-visual will be installed in prefix/lib/python2.6/site-packages folder.
After "make install", because of ubuntu jaunty's python folder policy, you should

$ sudo cp -R /usr/lib/python2.6/site-packages/* /usr/lib/python2.6/dist-packages/


If "configure" was run without --prefix option, compiled visual-python package is installed in
"/usr/local/lib/python2.6/site-packages"
In this case, user should copy the whole installed packages to "/usr/lib/python2.6/dist-packages"
(i.e.,
/home/username/somewhere/vp_tmp$ sudo cp -R /usr/local/lib/python2.6/site-packages/* /usr/lib/python2.6/dist-packages/
)

.

댓글 없음: