Remember once under Linux (CentOS7) source code to install the software sometimes just make & make install

Background (a bunch of nonsense)

Not too well on Linux, that is, the occasional use of Baidu, tossing about.
CentOS is the most used, usually installed yum install software on it, very convenient.
Earlier also occasionally tried to install the software source code, I do not remember the first time in too long, the impression is that after downloading extract the source package make & make install it.

Today, a software installed, try to use yum to install, but it looks like yum can not find this software, then Baidu a little, with a source installation.
Online got a source package, download, unzip, make, the results tell me no makefile found.
Helpless, Baidu still have to find the brightest Great God of posts to help.
Find a few posts, I discovered that make you want to run before ./configure.
Then execute ./configure, the results tell me no configure!
Again Baidu, but also turned a few posts, it was found to be ./bootstrap before ./configure.
There are also many online posts incomplete ah. It may be a little different now different environments or different source types.

In fact, the above description is not toss all the twists and turns, also encountered problems during some dependencies missing. Fortunately, the error prompted to Baidu, basic soon be able to find a solution. Different environments, different software to be installed, depending on the inevitable problems encountered are not the same, this time I felt really Niubi easy to use yum.
General source compiler gcc is indispensable, and in addition you may also need: autoconf, automake, libtool . You can use yum to install, simple and convenient.

This experience

Source Installation may take the following steps:

  1. Download source, typically compressed .tar.gz like, may be used to download wget command.
  2. Decompression: .tar.gz This archive can tar -xzvf xxx.tar.gz command to extract, of course, different types of compression decompression packets may have different ways.
  3. Into the extract from the source directory, execute ./bootstrap, will be configure file
  4. Execute ./configure, will generate the Makefile
  5. Execute make to compile
  6. Run make install to install the compiled executable file to the system

I write to you, suddenly found the source bag has a readme file.
Ok. . . So to add an experience:
[must see readme! ! ! ]
Which clearly states compile installation steps!


Of course, the most important lesson is:
use yum yum installation of the occasion to use installed, these Scrapped trouble is not that easy also wrong.

Original articles published 0 · won praise 27 · views 80000 +

Guess you like

Origin blog.csdn.net/yimenglin/article/details/103235125