LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gcc cant compile executables? (https://www.linuxquestions.org/questions/linux-software-2/gcc-cant-compile-executables-303766/)

slinky2004 03-19-2005 10:52 PM

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"

Thoreau 03-19-2005 11:12 PM

glib,glibc, and gcc development libraries are needed if you want to compile anything.

slinky2004 03-20-2005 12:12 AM

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?

slinky2004 03-20-2005 12:28 AM

hmm... i installed gcc, gcc++, glib, glibc using tgz files from slackware.com/pb and it still gives me the same error.

__J 03-20-2005 01:02 AM

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++).

slinky2004 03-20-2005 01:15 AM

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


All times are GMT -5. The time now is 09:41 AM.