LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default gcc installed from hardy cd does not produce executables (https://www.linuxquestions.org/questions/linux-newbie-8/default-gcc-installed-from-hardy-cd-does-not-produce-executables-693157/)

raphtor 12-26-2008 05:49 PM

default gcc installed from hardy cd does not produce executables
 
when i tried to install vlc in my system,at ./configure stage it showed an error stating gcc cannot produce executables.but my hardy system was not altered after installation and synaptic package manager showed gcc and gcc 4.2 already installed.what should i do?

googlix 12-26-2008 05:56 PM

Hi,

You can try installing linux headers and build essentials as follow:

# apt-get install build-essential
# apt-get install linux-headers-2.6.15-26**

** Replace to your current kernel version.

Hope this helps!

jailbait 12-26-2008 06:17 PM

Quote:

Originally Posted by raphtor (Post 3388008)

when i tried to install vlc in my system,at ./configure stage it showed an error stating gcc cannot produce executables.

./configure probably produced several error messages. "gcc cannot produce executables" is probably the last error message. Look through the messages to find other error messages that give details of what is wrong.

-------------------
Steve Stites

John VV 12-26-2008 09:19 PM

raphtor did you build the rather long list of prerequisites needed to build vlc?

raphtor 12-28-2008 05:03 PM

heres the output for my latest effort of installation.








checking host system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

John VV 12-28-2008 06:56 PM

and did you read the `config.log' to see what through the error?

Quote:

configure: error: C compiler cannot create executables
did you install
# apt-get install build-essential
# apt-get install linux-headers-2.6.15-26**

to build you will want all the build tools
a short list
autoconf
automake
automake14
automake15
automake16
automake17
binutils
bison
ccache
cmake
cscope
ctags
elfutils
flex
gcc
gcc-c++
gcc-objc
gdb
gettext
imake
indent
libtool
make
oprofile
oprofile-gui
patchutils
pkgconfig

PLUS all of the dev packages for all of the base packages that are required by vlc

why not use
Code:

apt-get install vlc

raphtor 12-30-2008 05:37 PM

yeah i did.but this time it terminated saying

......
Setting up mozilla-plugin-vlc (0.8.6.release.e+x264svn20071224+faad2.6.1-0ubuntu3.2) ...
Setting up vlc-plugin-esd (0.8.6.release.e+x264svn20071224+faad2.6.1-0ubuntu3.2) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place


what doed this mean?


All times are GMT -5. The time now is 07:43 AM.