LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 05-30-2022, 10:20 AM   #1
znt
Member
 
Registered: May 2022
Posts: 38

Rep: Reputation: 0
C compiler


What this error is refering to?

Quote:
configure: error: C compiler cannot create executables
 
Old 05-30-2022, 10:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by znt View Post
What this error is refering to?
Code:
configure: error: C compiler cannot create executables
Since, as with your previous threads, you provide *NO INFORMATION OR RELEVANT DETAILS*, there is nothing we can tell you. You tell us nothing about version/distro of Linux, what you're doing to get that error, what you're typing in, etc. We aren't going to continue to guess or pry information out of you. Either provide relevant details or there isn't much point in posting.

If you want a basic description, then put that error into a search engine, because unless you actually tell us anything, that's all the information you can get.
 
Old 05-30-2022, 11:10 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,035

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
TB0ne is wrong. The message means: the C compiler cannot create executables.
The reason is: no compiler, wrong compiler, damaged compiler, corrupted filesystem, disk full, permission denied, out of memory or something else.
 
Old 05-30-2022, 11:18 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by pan64 View Post
TB0ne is wrong. The message means: the C compiler cannot create executables. The reason is: no compiler, wrong compiler, damaged compiler, corrupted filesystem, disk full, permission denied, out of memory or something else.
Sorry to disagree, with a caveat. Yes, all you said is exactly true...but what, exactly, can we tell the OP without knowing anything about what they're doing, on what system??? We can't guess, and they don't tell us anything past a generic error message.

And while you've provided things it COULD be, we have no idea what it is, past whatever they can find on a search engine for that exact error...which is what you posted.
 
Old 05-30-2022, 11:20 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Post a link to the source, and how you were trying to compile it.
https://gcc.gnu.org/
https://gcc.gnu.org/onlinedocs/gcc/W...nd-Errors.html

Or are you using this?
https://stackoverflow.com/questions/...le-a-c-program
https://en.m.wikipedia.org/wiki/Clang
https://en.m.wikipedia.org/wiki/List_of_compilers
 
Old 05-30-2022, 12:17 PM   #6
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
TB0ne is wrong. The message means: the C compiler cannot create executables.
The reason is: no compiler, wrong compiler, damaged compiler, corrupted filesystem, disk full, permission denied, out of memory or something else.
Yes, you got it.
I`ve posted in antiX/MX Linux forum. That error is clearly a lacks in the OS, which we presume someone would understand...
the gcc is up to date, no clue... anyway...
Thanks for replying.

Last edited by znt; 05-30-2022 at 12:27 PM.
 
Old 05-30-2022, 12:23 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by znt View Post
Yes, you got it.
I`ve posted in antiX/MX Linux forum. That error is clearly a lacks in the OS, which we presume someone would understand... anyway...
Right, except folks post in the wrong forums routinely...and you *STILL* don't tell us the version, or which (antiX or MX?) that you're using, do you?? And you STILL don't actually tell us what you're doing to get this error, where you got the code you're trying to compile, etc.

AGAIN: you need to provide details, pay attention, and ask clear questions. Having us play guessing games over and over isn't good, and not sure how many times we have to tell you this.
 
Old 05-30-2022, 12:57 PM   #8
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
configure: error: C compiler cannot create executables

apt-get install g++
 
Old 05-30-2022, 01:21 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by znt View Post
configure: error: C compiler cannot create executables

apt-get install g++
Great; and you *STILL* don't actually tell us what you were trying to do, on what version/distro of Linux, or answer any of the questions asked of you. Chances are VERY good that you downloaded a source package of something (again, we have no idea), didn't read the instructions/README that came with it or was on their website, telling you the prerequisites, and instead just posted a generic error message here.

Reposting the same error tells no one anything; your error could have one of MANY causes.
 
Old 08-10-2022, 10:54 PM   #10
linuxdaddy
Member
 
Registered: May 2022
Location: New Mexico, USA
Distribution: Slackware 15.0 & 64 bit-current, antiX
Posts: 118

Rep: Reputation: 29
Hello znt,

As TBOne stated many times more info is needed on questions when creating posts on LQ,
such as the output of "inxi -Fxz" and a basic description of what are doing.

That said --- on Debian based distros, the development tools are not installed by
default. The meta package to install for compiling is "build-essential" to be able to build
most anything from source. Sorry to respond to a thread marked solved, just wanted other
users of antiX also to know this in order to build downloaded software.

sudo apt install build-essential

Last edited by linuxdaddy; 08-10-2022 at 11:02 PM.
 
Old 08-11-2022, 01:31 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,035

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
Quote:
Originally Posted by znt View Post
Yes, you got it.
I`ve posted in antiX/MX Linux forum. That error is clearly a lacks in the OS, which we presume someone would understand...
Sorry, no. It is definitely not an issue with the OS.

In general you tried to execute a command called configure. This app is used to check and collect all the tools required to build a software. The error message means this configure could not find a c compiler to make an executable.
Unfortunately we don't know what do you want to build, but (again, in general) you must read the documentation of that software and install the required packages (called dependencies). The error message means [usually] not all the dependencies were installed properly. It is not a problem with the OS, but the environment you prepared.
The command itself (configure) is part of the software you want to build therefore we have no any idea how should it work and what should it do, but usually it has a --help or similar flag to explain its usage. Also it creates log files where you can find more info about the executed steps (actually how did it try to find a compiler and why did it fail).

So again, without knowing anything about your goals we can only say: read the documentation of that software and follow that guide line by line. Installing a package (like g++) on the fly is pointless.
http://www.catb.org/~esr/faqs/smart-...html#beprecise
 
1 members found this post helpful.
Old 08-12-2022, 05:42 PM   #12
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxdaddy View Post
Sorry to respond to a thread marked solved, just wanted other
users of antiX also to know this in order to build downloaded software.
Quote:
Originally Posted by pan64
Sorry, no. It is definitely not an issue with the OS.
Don't worry about.

Thank you guys for the attention.

It was very enlightful.
 
  


Reply

Tags
gcc



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 01:12 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 05:32 AM
compile a compiler without a compiler? lackluster Linux - General 18 01-02-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 05:10 AM.

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
Open Source Consulting | Domain Registration