LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-14-2008, 11:06 AM   #1
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Rep: Reputation: 15
Fedora 9: Compile Apache 2.2.9 failed (can't read APR issue)


Dear readers,

I'm learning to create my home webserver using apache http.
when I'm on the way to install it by "./configure", error as follow showed.. someone knows what is the problem here?

Quote:
[adam@adamserver httpd-2.2.9]$ su
Password:
[root@adamserver httpd-2.2.9]# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... sed: can't read ./srclib/apr/include/apr_version.h: No such file or directory
configure: error: failed to find major version of bundled APR
[root@adamserver httpd-2.2.9]#
Thanks for helping!
 
Old 06-14-2008, 12:34 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Why not just:

yum install httpd

and install it the easy way?
 
Old 06-14-2008, 12:42 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by lazlow View Post
Why not just:

yum install httpd

and install it the easy way?
You youngsters...always wanting the easy way...

Quote:
Originally Posted by seow_ming
Dear readers,

I'm learning to create my home webserver using apache http.
when I'm on the way to install it by "./configure", error as follow showed.. someone knows what is the problem here?

Quote:
[adam@adamserver httpd-2.2.9]$ su
Password:
[root@adamserver httpd-2.2.9]# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... sed: can't read ./srclib/apr/include/apr_version.h: No such file or directory
configure: error: failed to find major version of bundled APR
[root@adamserver httpd-2.2.9]#
Thanks for helping!
Try using the --with-included-apr switch...
Code:
./configure --with-included-apr
But all rhetoric aside... I agree with lazlow...just use yum to install...if you have no access to the internet; you can install it via the Fedora 9 DVD

-C
 
Old 06-14-2008, 11:14 PM   #4
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by lazlow View Post
Why not just:

yum install httpd

and install it the easy way?
Thanks lazlow,
I just want to find out what is happening with the issue.. so i would prefer to learn the detail..
 
Old 06-14-2008, 11:16 PM   #5
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by custangro View Post
You youngsters...always wanting the easy way...



Try using the --with-included-apr switch...
Code:
./configure --with-included-apr
But all rhetoric aside... I agree with lazlow...just use yum to install...if you have no access to the internet; you can install it via the Fedora 9 DVD

-C
Hi Custangro,
Thanks, it works by following your suggestion, still have problem.. is it mean i don't have C compiler or something for programming? I didn't install any programming tools for this during initial fedora setup.

[root@adamserver httpd-2.2.9]# ./configure --with-included-apr
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

configuring package in srclib/apr now
configure: WARNING: Unrecognized options: --with-included-apr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
sed: can't read /home/adam/Download/httpd-2.2.9/srclib/apr/include/apr_version.h: No such file or directory
APR Version: ..
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
 
Old 06-14-2008, 11:49 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
yum install gcc

Should be a start.

Edit:

If you download the src rpm(not the binary rpm) you can extract the spec file and see what "tweaks" have to be made in order to compile.

If you are really interested in understanding what is going on under the hood, Fedora is not the distro for you. Take a look at gentoo or slackware. They are better suited to compiling you own stuff all the time.

Last edited by lazlow; 06-14-2008 at 11:56 PM.
 
Old 06-15-2008, 12:19 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by lazlow View Post
If you download the src rpm(not the binary rpm) you can extract the spec file and see what "tweaks" have to be made in order to compile.

If you are really interested in understanding what is going on under the hood, Fedora is not the distro for you. Take a look at gentoo or slackware. They are better suited to compiling you own stuff all the time.
I agree; If you start compiling things in a distro that was meant to have a package manager; you will have problems in the future when installing patches and upgrades...

-C
 
Old 04-23-2010, 11:24 PM   #8
vbunvaddh
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
Question

Hello,


I am install Apache 2.2.15 and get the below error. Anybody have any idea?

Thank you in advance for your advice.


[root@dns1 httpd-2.2.15]# ./configure --prefix=/local/apache2
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.4.2
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... unsupported
Applying APR hints file rules for i686-pc-linux-gnulibc1
setting CPPFLAGS to "-DLINUX=2"
adding "-D_REENTRANT" to CPPFLAGS
adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/opt/apache20/httpd-2.2.15/srclib/apr':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr



Regards,
Steve
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure error Apache APR module craftereric Linux - Software 0 03-31-2008 03:33 PM
configure failed for srclib/apr Sulman Shah SUSE / openSUSE 1 12-02-2006 02:19 AM
Apache - error: external APR GT_Onizuka Linux - Software 0 12-02-2005 03:32 AM
apache 2.x enable APR or not ? adrianmak Linux - Software 0 08-18-2005 06:49 AM
apache failed...strange issue chadi Linux - General 0 12-29-2004 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration