Linux Source Code installation program

Source: Internet
Author: User

After downloading the source code

Tar zxvf file.tar.gz Extract source code compression package

./configure--prefix=/opt/haha/Install to this path

Make compilation

sudo make install installation

If you do not use the./configure--prefix to install the program to a specific path, the default is

By default, ' make install ' would install all of the files in '/usr/local/bin ', '/usr/local/lib ' etc.  You can Specifyan installation prefix other than '/usr/local ' using '--prefix ', for instance '--prefix= $HOME '.

The above information can be viewed through the command "./configure--help".

Visible by default, the program is installed in the/user/local/bin and/usr/local/lib two directories.

If you want to uninstall can be difficult, like a melon seeds scattered to the haystack, and then want to pick up the melon seeds can be more difficult. The default installation puts many executable programs in the/usr/local/bin and/usr/local/lib directories.

You can try the sudo make uninstall command, some programs have this command, some do not.

Another option is to go to the rotten haystack to find, of course, in the/usr/lcoal/bin and/usr/local/lib two directories to look for, "ll-t" command to view recently changed files, the newly added files deleted.

Therefore, be sure to use the "./configure--prefix= Destination Folder" command to install the program into a directory, so that it is much simpler to unload.

Use Apt-get installation More is the installation of a mess, configuration files in/etc directory, some commands in the/bin, some libraries in the/lib, a mess of a force AH. This, Linux is not as good as windows,windows at least to let people know what they have.

Here to say, if you can use Apt-get, in order to simple use apt-get bar. Otherwise, you will face a lot of configuration, installation, dependency problems, just one problem is enough for you to drink a pot, a big noon you find yourself in addition to the installation of the configuration program, nothing to do. These things mean so little, It's far better to go to the Java world to learn something useful. But there are a lot of things in the apt-get that are older than the new version of the installation.

Linux Source Code installation program

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.