Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948

    Unable to compile Apache under Ubuntu

    A little background on what I'm doing here...
    I'm setting up a Linux machine specifically for use as a VNC here at work.
    The IT Manager said he'd used Ubuntu before but left the distro up to me.
    I set up my test machine with Ubuntu but need to compile Apache for portions of it to work. I've never had any problems building Apache before, but this is what I'm getting here. I have a feeling that, since I've not used Ubuntu before, that I'm just missing a step. I also noticed that the "make" command doesn't work. Does that need to be installed and compiled as well?

    =========================================
    [email protected]:/etc/httpd-2.2.3# ./configure /usr/local/apache
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: /usr/local/apache
    checking for chosen layout... Apache
    checking for working mkdir -p... yes
    checking build system type... /usr/local/apache
    checking host system type... /usr/local/apache
    checking target system type... /usr/local/apache

    Configuring Apache Portable Runtime library ...

    checking for APR... reconfig
    configuring package in srclib/apr now
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: /usr/local/apache
    checking build system type... /usr/local/apache
    checking host system type... /usr/local/apache
    checking target system type... /usr/local/apache
    Configuring APR library
    Platform: /usr/local/apache
    checking for working mkdir -p... yes
    APR Version: 1.2.7
    checking for chosen layout... apr
    checking for /usr/local/apache-gcc... no
    checking for gcc... no
    checking for /usr/local/apache-cc... no
    checking for cc... no
    checking for cc... no
    checking for /usr/local/apache-cl... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    configure failed for srclib/apr
    [email protected]:/etc/httpd-2.2.3#

    The config.log file doesn't honestly show any errors that I can see pertaining to any compile errors.

    -John
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  2. #2
    Join Date
    Jun 2004
    Location
    San Diego, CA
    Posts
    136
    Well, for starters, change your configure line to something like: ./configure --prefix=/usr/local/apache

    Next, it doesn't look like you've got any compilers installed. You'll need to install gcc. I think you can do this through apt-get (but I'm not familiar with ubuntu and don't pretend to be a debian guru

    Once you resolve those issues, it should compile fine.
    Matt Bloom
    AngryHosting - Load balanced/redundant shared hosting solutions

  3. #3
    Join Date
    Jul 2004
    Location
    Texas
    Posts
    687
    Yeah, thats the thing you need right now, gcc, which you should be able to do by running "sudo apt-get install gcc build-essential".

  4. #4
    Code:
    apt-get install aptitude
    aptitude update
    aptitude install gcc make libapr0 libapr0-dev autoconf automake flex
    ./configure --prefix=/usr/local/apache
    Server Surgeon George
    http://www.serversurgeon.com
    Linux, BSD and Windows Administration Services
    Toll Free US 877-378-7436 International +1-213-291-9191

  5. #5
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    That and it appears I had the ./configure line wrong.
    I'll see if I can get this going here now - thanks for the information!
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  6. #6
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    Got it. Thanks guys.
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •