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"
|
glib,glibc, and gcc development libraries are needed if you want to compile anything.
|
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?
|
hmm... i installed gcc, gcc++, glib, glibc using tgz files from slackware.com/pb and it still gives me the same error.
|
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++). |
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. |