LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2005, 11:52 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
gcc cant compile executables?


i've just installed slackware linux, but my hard drive is pretty small and i'm going to use this box as a server, so i didnt install any of the program development or library sections. everything was going pretty well until i had to compile a module of php for apache. well, i went out to slackware.com/pb and got packages of glibc and gcc++ but when i do a ./configure on anything, it says "c compiler cant create executables". i'd really appreciate it if somebody could tell me how to compile things not "out of the box"
 
Old 03-20-2005, 12:12 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
glib,glibc, and gcc development libraries are needed if you want to compile anything.
 
Old 03-20-2005, 01:12 AM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
would the gcc package, for example, contain all of the libraries i need? like this: http://www.slackware.com/pb/download...c-3.3.5-i486-1 is that just the complier or the libraries too?
 
Old 03-20-2005, 01:28 AM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
hmm... i installed gcc, gcc++, glib, glibc using tgz files from slackware.com/pb and it still gives me the same error.
 
Old 03-20-2005, 02:02 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
slack doesn't have -devel or -libs packages ( with the exception of xorg). your problem is most likely you don't have binutils installed. in a terminal do:

ls /var/log/packages | grep binutils

and see if it reports the binutils package as being installed. binutils is required to create executables. One thing to note, since you are running a server and not a desktop, most rootkits depend on the libraries of gcc, so if you don't need it any longer you might want to uninstall it ( note also that c++ programs ( kde, qt, firefox, etc...) need the libstdc++ libs to run which come with g++).

Last edited by __J; 03-20-2005 at 02:05 AM.
 
Old 03-20-2005, 02:15 AM   #6
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
ok, well it didnt find binutils, so that might be the problem. also, uninstalling the compilers is a good tip for foiling possible skiddies .

Last edited by slinky2004; 03-20-2005 at 02:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 fails because gcc can't create executables? anachron Linux - Newbie 3 03-02-2005 12:07 AM
Making GCC Compile Executables? The Pentium Guy Debian 3 11-06-2004 10:38 AM
Creating executables with gcc punk_roks11 Linux - Newbie 2 07-28-2004 01:00 AM
snort compile errors "C compiler cannot create executables" RKris Linux - Software 2 11-07-2003 03:08 AM
compile executables Ryan_Sutton Linux - General 7 07-14-2002 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration