LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2005, 09:11 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
./configure problem


i can not compile the program.
[root@localhost python-crack-0.5]# ./configure
configure: error: C compiler cannot create executables
[root@localhost python-crack-0.5]#

can u pls tell me what is the problem here?
 
Old 10-10-2005, 09:30 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Is there a configure script in the directory??? Is it chmoded??? Does the source code have a INSTALL or README file. Reading that file might help you compile and install the program.

-Tux,

Edit: Found a thread which has the same problem...looks like you have some gcc stuff missing.

Last edited by tuxrules; 10-10-2005 at 09:36 AM.
 
Old 10-10-2005, 10:43 AM   #3
VictorYao
LQ Newbie
 
Registered: Sep 2005
Distribution: FC4
Posts: 7

Rep: Reputation: 0
Read the README or INSTALL file first .
Maybe you can find the answer.
In my opinion, the most possible reason is that
your system has no right c compiler which is requested in the configure file or you can't install this software through classical steps (such as ./configure make&make install ) at all.

Last edited by VictorYao; 10-10-2005 at 10:50 AM.
 
Old 10-10-2005, 01:39 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You look as though you are running as root full time. ./configure and make should be done as the regular user. Make install is done as root.
 
Old 10-10-2005, 08:20 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
To get gcc installed on Mandrake:
1) http://easyurpmi.zarb.org and setup access to the software repositories
2) System->Configuration->Packaging->Install Software
3) Type in gcc and click install. Also try typing in whatever you where trying to compile - its a lot easier to install stuff if you stick to the Mandrake packages.
 
Old 10-12-2005, 06:13 PM   #6
puuhikki
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
I have the same problem.checking for C compiler default output file name... configure

I'm using Ubuntu and I have the same problem. When I try to compile programs I'm getting error Checking for C compiler default output file name... configure: error: C compiler cannot create executables. I have no idea how to tell the compiler the default output file name.

And as I was compiling one program made by my own I got a message

error: stdio: No such file or directory.

It looks like I have to edit some path where GCC is looking header files. But I'm just so newbie that I don't know how to do that.
 
Old 10-12-2005, 07:22 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The ubuntu software install system is Synaptic. Use that to install gcc and gcc-c++ and then see how you go.
 
Old 10-13-2005, 12:28 AM   #8
puuhikki
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
I tried to use Synaptic but that did not solved the problem. It looks like I have to edit those header file paths manually but I have no idea how to do that.
 
Old 10-13-2005, 01:13 AM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Can you post the full error message? What header files are missing?

If you've already got gcc you'll still need to install the -devel packages for whatever programs/libraries the program you're trying to compile is trying to link against.
 
Old 10-13-2005, 02:22 AM   #10
puuhikki
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Error messages

OK, I installed every gcc-related packages I found, but when I compiled with command

> gcc eka.c -v

I got the following messages

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
/usr/lib/gcc/i486-linux-gnu/4.0.2/cc1 -quiet -v eka.c -quiet -dumpbase eka.c -mtune=i486 -auxbase eka -version -o /tmp/cc5xfHHh.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.0.2/include
/usr/include
End of search list.
GNU C version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) (i486-linux-gnu)
compiled by GNU C version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9).
GGC heuristics: --param ggc-min-expand=46 --param ggc-min-heapsize=31092
eka.c:1:19: error: stdio.h: No such file or directory
eka.c:2:19: error: conio.h: No such file or directory
 
Old 10-13-2005, 04:28 AM   #11
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
I think you've got 2 seperate issues here:
Quote:
eka.c:1:19: error: stdio.h: No such file or directory
Make sure you have the glibc-devel package installed and check that there is a file /usr/include/stdio.h. If the file exists and you still get this error it may be the way you've written the include, my c/c++ is a little rusty but I think it should be
Code:
#include <stdio.h>
or
#include <stdio>
Quote:
eka.c:2:19: error: conio.h: No such file or directory
conio.h is for an old non-standard Borland-proprietary console library for DOS/Windows. The Linux equivalent is the curses library, and you'll need to rewrite your code to use that if you want the program to work in Linux: http://cboard.cprogramming.com/showthread.php?t=69433

I think this is really a programming question so you'll probably get better help in the programming forum on this site.

Last edited by tkedwards; 10-13-2005 at 04:32 AM.
 
  


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 problem neurotic85 Linux - Software 6 09-07-2005 07:50 PM
Problem with ./configure Chtiman Linux - Software 1 01-04-2005 09:53 AM
problem with ./configure vijay_souri Linux - Software 0 06-07-2004 12:04 PM
.\configure PROBLEM mla Linux - Software 13 10-13-2003 04:01 PM
problem with ./configure Ůmegaflops Linux - Networking 11 07-06-2002 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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