LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-11-2008, 02:10 PM   #1
oguzhana
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Rep: Reputation: 0
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.
 
Old 01-11-2008, 02:15 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
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.
 
Old 01-11-2008, 02:26 PM   #3
oguzhana
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
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!!
 
Old 01-11-2008, 03:10 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
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.
 
Old 01-11-2008, 04:40 PM   #5
oguzhana
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
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??
 
  


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
Installation of Binutils(configure:error:installation or configuration problem:C ...) h_r0019 Linux From Scratch 1 05-05-2007 08:40 AM
LXer: Title: GNU Binutils libbfd TekHex Record Handling Vulnerability LXer Syndicated Linux News 0 05-27-2006 09:54 AM
5.3.1 Installation of Binutils microsoft/linux Linux From Scratch 8 10-22-2005 01:41 PM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 11:17 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 05:07 AM

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

All times are GMT -5. The time now is 09:22 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