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 ...
- 05-06-2007 #1Just 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?
- 05-06-2007 #2Just 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
- 05-06-2007 #3Just 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.
- 05-08-2007 #4
post the output of
Also look hereCode:gcc -v
in order to download and install
- 05-08-2007 #5
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:
You can download it from http://www.apachefriends.org/en/xampp-linux.htmlThe 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.
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


Reply With Quote