Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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]#
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.