Find the answer to your Linux question:
Results 1 to 5 of 5
I am very new so do please bare with the lack of knowledge. I setup the latest kubuntu on my machine... I am trying to install apache, and tomcat on ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    3

    C Compiler Issue + apache

    I am very new so do please bare with the lack of knowledge.

    I setup the latest kubuntu on my machine... I am trying to install apache, and tomcat on it.

    I followed the instructions from their site:
    Download $ lynx http://httpd.apache.org/download.cgi
    Extract $ gzip -d httpd-2_0_NN.tar.gz
    $ tar xvf httpd-2_0_NN.tar
    Configure $ ./configure --prefix=PREFIX
    Compile $ make
    Install $ make install
    Customize $ vi PREFIX/conf/httpd.conf
    Test $ PREFIX/bin/apachectl start


    I get all the way to configure and it fails.. I am not sure if I have a C compiler installed on the machine, so I found these instructions as well:

    Make sure you have an ANSI-C compiler installed. The GNU C compiler (GCC) from the Free Software Foundation (FSF) is recommended (version 2.7.2 is fine). If you don't have GCC then at least make sure your vendor's compiler is ANSI compliant. In addition, your PATH must contain basic build tools such as make.

    I went to their website and download the tar file for the compiler and I can't see to get that installed.

    Can somone help me or guide me through getting a compiler on my machine, so that I can try to get Apache installed?

  2. #2
    Just Joined!
    Join Date
    May 2007
    Posts
    3
    to add a little more detail this is what I did:

    allsenseless@sever1:~/Desktop/downloads/httpd-2.2.4$ ./configure
    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.2.8
    checking for chosen layout... apr
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.
    configure failed for srclib/apr

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    3
    I checked the log file but I was not too sure what to look for in it to give me more information.

  4. #4
    Linux Engineer valemon's Avatar
    Join Date
    Oct 2006
    Location
    Volos
    Posts
    934
    post the output of
    Code:
    gcc -v
    Also look here
    in order to download and install
    Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
    Arch Linux
    Linux user #442041

  5. #5
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    Try: sudo apt-get install gcc

    And alsoL sudo apt-get install build-essential (you will need this to do "make")

    Your other bet, which I personally like and use is to get XAMPP:

    The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.
    You can download it from http://www.apachefriends.org/en/xampp-linux.html

    And the installation is only one line : tar xvfz xampp-linux-1.6.1.tar.gz -C /opt

    And then to start it it's /opt/lampp/lampp start and You can then use localhost as ur server

Posting Permissions

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