Platform: Ubuntu 11.04 as Based-Version ( LinuxMint 12 – Lisa Distro)
Native Compiler : gcc
Python 2.7.2 + ( python –version)
Twisted Framework here: http://twistedmatrix.com/trac/wiki/Downloads
Download, Extract, and run :
python setup.py install
Error received :
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directorycompilation terminated.
Fix : install package python-dev
sudo apt-get install python-dev
Problem fixed !
Recently, some of my friends try Ubuntu, when they have trouble with Linux package types, they came to me for answer, so I write this as a tut for giving them in case some of them want to ask. ( dear my friends, this is for you).
Step 1 : Try to extract your compressed package with tar utility.
$ tar -zxvf package.tar.gz
With -zxfv is options
- -z means type of zip , –gzip , –gunzip, –ungzip
- -f means file archive.
- -v means verbose
- x means –extract
Sterp 2: navigate to extracte folder, using following 3 commands to install package into system
# make install
- ./configure : make sure your system has already had enough dependencies.
- make commands will help you compile script/source code into executable binary files.
- make install will run script(s) to install your executable files , create/copy/move them into proper location in system.
That’s it, enjoy linux, enjoy life 🙂