LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-06-2004, 08:26 AM   #1
The Pentium Guy
Member
 
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41

Rep: Reputation: 15
Making GCC Compile Executables?


Hey,

I'm installing PHP and uhh.. when I type in ./configure

pentium:~/download/php-5.0.2# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

so obviously, i 'apt-get install gcc'.

Now, it's saying

pentium:~/download/php-5.0.2# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

How would I allow GCC compiler ot create executables?
-The Pentium Guy
 
Old 11-06-2004, 08:38 AM   #2
The Pentium Guy
Member
 
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41

Original Poster
Rep: Reputation: 15
Blah... I got thta to work, installed g++.

Now i'm getting MORE errors.
pentium:~/download/php-5.0.2# ./configure --prefix=/usr/local/php
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... mawk
checking for bison... bison -y
checking bison version... 1.875 (ok)
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2418: lex: command not found
configure: error: cannot find output from lex; giving up
 
Old 11-06-2004, 08:41 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You'll need to install flex:
http://packages.debian.org/stable/devel/flex
 
Old 11-06-2004, 09:38 AM   #4
The Pentium Guy
Member
 
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41

Original Poster
Rep: Reputation: 15
Actually I got it it to work by simply:
apt-get install apache php4.

unfortunately php5 didn't work :P.
-The Pentium Guy
 
  


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
gcc cant compile executables? slinky2004 Linux - Software 5 03-20-2005 01:15 AM
./configure fails because gcc can't create executables? anachron Linux - Newbie 3 03-01-2005 11:07 PM
Creating executables with gcc punk_roks11 Linux - Newbie 2 07-28-2004 12:00 AM
snort compile errors "C compiler cannot create executables" RKris Linux - Software 2 11-07-2003 02:08 AM
compile executables Ryan_Sutton Linux - General 7 07-14-2002 05:06 PM

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

All times are GMT -5. The time now is 07:56 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