UbuntuLinux system compilation source code installation software example

Source: Internet
Author: User
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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.