LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
Search this Thread
Old 02-13-2013, 09:55 AM   #1
ghstkhp
LQ Newbie
 
Registered: Feb 2013
Posts: 7

Rep: Reputation: Disabled
C compiler cannot create executables


hello
i installed binutils-2.23.0 (with gmp,mpfr,mpc on linuxmint 14 64bit) and it compiled and installed.
but the next time i tried to compile a program i got "configure:4136: error: C compiler cannot create executables".
i looked into log file and found problem:
"/usr/local/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status"

i tried reinstalling packages from synaptic package manager and reinstalled binutils with some more but i still have same problem.

can somebody tell me how can i fix this or why is this error happening?
thanks
 
Old 02-14-2013, 10:15 PM   #2
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Rep: Reputation: 22
What is your distribution?
Did you install the C compiler gcc. If you want all the compiler tools install build-essential.
 
1 members found this post helpful.
Old 02-14-2013, 11:37 PM   #3
ghstkhp
LQ Newbie
 
Registered: Feb 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kedarp View Post
What is your distribution?
Did you install the C compiler gcc. If you want all the compiler tools install build-essential.
i compiled some programs before so i have compilers.this happened after i compiled and installed binutils-2.23.0.
thanks for reply
 
Old 02-15-2013, 04:11 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Quote:
I installed binutils-2.23.0 ... with gmp, mpfr, mpc
... Then no system gcc is supposed to work.

Better uninstall / delete all the alien files from /usr/local/*.
! No alternative version of binutils, gmp, mpfr, mpc
can be installed to a system path !

If you for experimental reasons want to install non system versions,
please use './configure --prefix=/opt/test/' or another location,
which is so well hidden, that no system programs will find it.

-
 
1 members found this post helpful.
  


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
C++ compiler cannot create executables adam_hartlepool Linux - Software 7 03-08-2011 08:30 AM
C compiler cannot create executables alexweb Mandriva 2 07-12-2006 07:04 AM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 07:59 AM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 02:22 PM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 03:21 PM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration