Linux installation source package not resolved

Source: Internet
Author: User

Source Package Installation
Convention: The source package is placed in CD/USE/LOCAL/SRC

I first download the httpd source package to CD/USE/LOCAL/SRC as shown below
Download the source Package

#cd/usr/local/src/
[[email protected] src]# wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.gz Download Source Package

[Email protected] src]# wget http://mirrors.cnnic.cn/aparche/httpd-2.2.32.tar.gz
-bash:wget: Command description not found wget command not installed, execute #yum intall-y wget
2018-01-10 13:54:04 error 404:not Found. This situation indicates that the download link is wrong and needs to update the link
#echo $? The result is 0 indicates that the previous step is correct and 1 indicates a previous error
View the type of file after download
[[email protected] src]# ls
Apr-util-1.6.1.tar.gz description is a compressed package of tar. gz

Unpack the Tarball
[[email protected] src]# TAR-ZXVF apr-util-1.6.1.tar.gz Extract Source Package
Apr-util-1.6.1/
apr-util-1.6.1/strmatch/
Apr-util-1.6.1/strmatch/apr_strmatch.c
apr-util-1.6.1/uri/
Apr-util-1.6.1/uri/apr_uri.c
Apr-util-1.6.1/apr-util.spec
Apr-util-1.6.1/readme. FreeTDS
....
....
Configuration related Options--Specify the installation path
[[email protected] apr-util-1.6.1]#./configure--prefix=/usr/local/apache2 Specify the installation path
The following error occurred
Checking for gcc ... no description no GCC installed
Checking for cc ... No
Checking for cl.exe ... no

Installing GCC
#yum install-y GCC
re-execute configuration options
[Email protected] apr-util-1.6.1]#/configure--prefix=/usr/local/apache2
after installing GCC, the following error has occurred
[Email protected] apr-util-1.6.1]#/configure--prefix=/usr/local/apache2
Checking build system Type ... X86_64-pc-linux-gnu
Checking host system Type ... X86_64-pc-linux-gnu
Checking target system Type ... X86_64-pc-linux-gnu
Checking for a bsd-compatible install .../usr/bin/install-c
Checking for working mkdir-p ... yes
Apr-util version:1.6.1
Checking for chosen layout ... apr-util
Checking for gcc ... gcc
Checking whether the C compiler works ... yes
Checking for C compiler default output file name ... a.out
Checking for suffix of executables ...
Checking whether we is cross compiling ... no
Checking for suffix of object files ... o
Checking whether we are using the GNU C compiler ... yes
Checking whether GCC accepts-g ... yes
Checking for GCC option to accept ISO C89 ... none needed
Applying Apr-util hints file rules for X86_64-PC-LINUX-GNU
Checking for APR ... no
Configure:error:APR could not being located. Use the--WITH-APR option.
Tip: Configure:error:APR could not be located. Use the--WITH-APR option. Description requires specifying the--WITH-APR parameter
Specifying parameter compilation
#./configure--WITH-APR=/USR/LOCAL/APR

After compiling the result also reported the following error result:

[Email protected] apr-util-1.6.1]#/configure--WITH-APR=/USR/LOCAL/APR
Checking build system Type ... X86_64-pc-linux-gnu
Checking host system Type ... X86_64-pc-linux-gnu
Checking target system Type ... X86_64-pc-linux-gnu
Checking for a bsd-compatible install .../usr/bin/install-c
Checking for working mkdir-p ... yes
Apr-util version:1.6.1
Checking for chosen layout ... apr-util
Checking for gcc ... gcc
Checking whether the C compiler works ... yes
Checking for C compiler default output file name ... a.out
Checking for suffix of executables ...
Checking whether we is cross compiling ... no
Checking for suffix of object files ... o
Checking whether we are using the GNU C compiler ... yes
Checking whether GCC accepts-g ... yes
Checking for GCC option to accept ISO C89 ... none needed
Applying Apr-util hints file rules for X86_64-PC-LINUX-GNU
Checking for APR ... configure:error:the--with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
[[email protected] apr-util-1.6.1]# echo $?
1
Error message checking for APR ... configure:error:the--with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. Description: Configuration error: The WITH-APR parameter is incorrect, it must specify an installation prefix, a build directory, or a configuration Apr file.

Linux installation source package not resolved

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.