GNU binutils installation problem
Hi everybody,
I recently trying to install GNU binutils on my Xubuntu machine. I need them for programming avr microcontrollers. Anyway, I downloaded file binutils-2.15.tar.bz2, extracted it with "tar jxvf" command, and I typed following commands: cd binutils-2.15/ mkdir obj-avr cd obj-avr ../configure --target=avr --prefix=/usr/local/avr --disable-nls, after the last command (../configure etc etc) I took the following message and it stops loading cache ./config.cache checking host system type... i686-pc-linux-gnulibc1 checking target system type... avr-unknown-none checking build system type... i686-pc-linux-gnulibc1 checking for a BSD compatible install... /usr/bin/install -c *** This configuration is not supported in the following subdirectories: target-libiberty (Any other directories should still work fine.) /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. My personal idea is that it is looking for the file in the wrong place. Can anyone tell me what is wrong and what is the solution. Thanks in advance and sorry if it is not the right place to post such a topic. |
You don't seem to have gcc installed. Also, you'd need the build-essential package to compile from source.
But the main thing is that binutils are probably installed in your system already, as it's one of the core packages of all linux distros. |
I did not do anything to install gcc, my xubuntu is recently installed and I guess I have gcc 4.1. I can see it under /usr/bin. Are you sure about it?
And what do you mean with "you'd need the build-essential package to compile from source". Sorry if I am asking a very basic question. Being a starter sucks!! :) |
build-essential is the package that contains suff necessary to compile source code on all *buntu systems. Read here, for example
http://www.pcmag.co.uk/personal-comp...kubuntu?page=2 You just need to run sudo apt-get install build-essential from your terminal. |
thanks for reply however I could not use apt-get it gives following result for build-essential:
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package build-essential Another proposed solution I have seen was using sudo apt-get install build-essential and it gave following result: Reading package lists... Done Building dependency tree Reading state information... Done Package libc6-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package libc6-dev has no installation candidate whats wrong with my apt-get?? |
All times are GMT -5. The time now is 04:13 PM. |