Article Title: UbuntuLinux system compilation source code installation software example. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
There are many ready-made Binary packages available in ubuntu. you can install sudo apt-get install or a new version, which is more foolish than installing software in windows. However, in some cases, you still need to compile the source code to install the software. For example, the required software does not have a deb package, or the software in the library is outdated and you want to use a newer version.
Many users who switch from Windows to Linux think that "Compilation" and "source code" are the top keywords. They think that "compiling the kernel" is even more difficult, it seems like you want to assemble an atomic bomb on your own.
In fact, it is very convenient to compile the source code and install the software in ubuntu. Just install the packages on which the compilation depends, and then install the software in two or three steps, you can even create a deb package by yourself.
The following uses installing Mirage in ubuntu as an example:
Download source code, http://download.berlios.de/mirageiv/mirage-0.8.3.tar.gz
② Put the source code under a directory, decompress the tar zxvf command, and then enter the cd
③ Read Readme (some software instructions may be in text files such as TODO and INSTAll) and find that the installation method is sudo python setup. py install, which is different from the software installation method developed by GTK +.
Still run may prompt errors, because the pygtk Development Kit is not installed, so the installation of python-gtk2-dev package, considering the future may need to compile other programs, as long as the hard disk space is not particularly tight, by the way, libgtk2.0-dev, libgtkmm-dev, python-dev, qt3-dev, xorg-dev and so on are also installed, so that most of the source code can be compiled. Then the installation should be fine.
⑤ For future installation convenience, you can use tools such as checkinstall to create a deb package, so that you can run dpkg-I later.
If you install software developed by GTK +, the general installation process is
① Same as above
③./Configure. Pay attention to the prompt after running. If a package is missing, you can find it at http://packages.ubuntu.com/on ubuntu and then install it.
④ Make
⑤ Sudo make install or sudo checkinstall-D make install to create a deb package
Note: When I compile and install vym 1.8.1, the installation path is incorrect. It is installed under/usr/local/bin ". /configure -- prefix = "and other options. Finally, find the relevant file through grep, modify the path, and solve the problem. If you have encountered a similar problem, refer to it.