- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: C compiler cannot create executables
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 02:18 PM
тАО06-23-2004 02:18 PM
I am trying to install the Apahce
with the configure command. I am getting the error like below.
"checking for C compiler default output file name... configure: error: C compiler cannot create executables. see config.log "
Please help. Also find the attached file.
Thanks
Sajeesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 02:34 PM
тАО06-23-2004 02:34 PM
Re: C compiler cannot create executables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 03:12 PM
тАО06-23-2004 03:12 PM
Re: C compiler cannot create executables
configure: exit 1
I have attached the same.
Thanks
Sajeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 04:52 PM
тАО06-23-2004 04:52 PM
Re: C compiler cannot create executables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 05:23 PM
тАО06-23-2004 05:23 PM
Re: C compiler cannot create executables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 07:26 PM
тАО06-23-2004 07:26 PM
Re: C compiler cannot create executables
It doesn't give any real errors unfortunately.
So lets start with some basic questions and tests.
How did you gain 'root' access? Brief guess based on prompt was (at least) a 'su -'. This is good.
What directory are you doing the configure in, and what's the output of 'ls -ld .' from that directory?
Next thing is a quick check of gcc. Start with the output of 'ls -ld $(which gcc)' in a bourne shell, and possibly the output of 'rpm -q gcc'
Next is verifying you've got include files to play with, namely 'rpm -q kernel-headers' and 'ls -l /usr/include'.
If all of these are good, then try to compile something simple:
------------- junk.c ----------------
#include
int main(int *argc, char *argv[]){
printf( "Welcome. This is your world!\n");
}
------------- junk.c ----------------
then type the following 3 commands:
gcc junk.c -o junk
ls -l junk
./junk
These commands should create the bare-bones C source for a simple 'Hello World' application, list it, then execute it.
Lets see if we get this far first ;) If you've got a development system installed, you should get through all of the listed commands without any errors..
Post back with results!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 10:15 PM
тАО06-23-2004 10:15 PM
Re: C compiler cannot create executables
I suspect the problem with gcc installation.
To your queries, everything is okay except the last c programm execution.
When I execute, first got the error msg
gcc: installation problem, cannot exec `cpp': No such file or directory
I installed cpp.
When execute again got the error msg
gcc: installation problem, cannot exec `as': No such file or directory.
I installed the following rpms
asp2php-0.75.17-1
ash-0.3.7-2
asp2php-gtk-0.75.17-1
aspell-0.33.7-1
But still with 'which as' I am not getting
/usr/bin/as
kernel-headers-2.4.9-e.3 is in the rpm list
Regards
Sajeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 11:33 AM
тАО06-24-2004 11:33 AM
Solution'gcc' is only one of the many tools needed to compile things.
It relies upon things such as 'ld' and 'as' and others to do various actions regarding linking in the different libraries.
It sounds like you're missing the 'binutils' package.
Install that, give it another shot, and we'll se where we get.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2004 03:44 PM
тАО06-24-2004 03:44 PM
Re: C compiler cannot create executables
binutils was missing and I installed the same. Solved the Problem !
Many Thanks
Sajeesh