LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-18-2014, 01:18 PM   #1
tux100
LQ Newbie
 
Registered: Aug 2014
Posts: 22

Rep: Reputation: Disabled
Production Server GCC and Plan A


configure: error: no acceptable C compiler found in $PATH

I tried to ./configure;make;make install some source code package
but it tells me there is no GCC compiler.

This is a very important production server.

I do have other servers of the exact same OS version.

A) Would it be better to compile the source code on the other service
and copy the compiled binarys to this production server ?
Or

B) can I safely add the GCC Build Environment and Libraries without breaking anything ?

I would opt for PLAN A.
 
Old 09-18-2014, 01:22 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by tux100 View Post
configure: error: no acceptable C compiler found in $PATH

I tried to ./configure;make;make install some source code package but it tells me there is no GCC compiler. This is a very important production server. I do have other servers of the exact same OS version.

A) Would it be better to compile the source code on the other service and copy the compiled binarys to this production server ?

Or

B) can I safely add the GCC Build Environment and Libraries without breaking anything ?

I would opt for PLAN A.
Would help if you gave us any details...such as what the "some source code package" you're talking about it, what version/distro of Linux you're using, etc. You can TRY to compile it on another server, but that doesn't make sense at all, given that you said your others servers are identical to the first. If the compile fails on one of them, it'll fail on the others in the same manner.

The plan (C) option would be "Install the GCC compiler from the online repositories", which should be trivial, and solve your problem.
 
Old 09-18-2014, 01:38 PM   #3
tux100
LQ Newbie
 
Registered: Aug 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Production Server GCC, choosing Plan A

Does not matter what the source package is.

The main issue is:
Will installing GCC and all its libraries possibly break a dependency or some other package on the server ?

I dont see any reason to risk breaking a live production server, if I can compile the code on a different server.
 
Old 09-18-2014, 02:00 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well YES IT DOSE MATTER "what the source package is"

if the program is a bit old say for a RHEL5.10 or 6.5 server then you will NEED a older version of GCC like 4.1 or 4.3
and a production server should NEVER!!!!!!! have gcc installed
only TEMPORARILY install it to build the software then UNINSTALL IT

if this is a redhat server then use "yum" to install the development tools group
if debian use "apt"
 
Old 09-18-2014, 02:02 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by tux100 View Post
Does not matter what the source package is.
Yes, it DOES matter, and why the reluctance to answer a simple question? And how do you know there isn't a pre-compiled package already?
Quote:
The main issue is: Will installing GCC and all its libraries possibly break a dependency or some other package on the server ? I dont see any reason to risk breaking a live production server, if I can compile the code on a different server.
Installing a compiler wouldn't break anything, anymore than installing any OTHER package. Again, you don't tell us what version/distro of Linux you're using, or providing any details. And we again go back to "if your servers are all the same, the package won't compile on ANY OF THEM".

If you're not going to provide details or answer questions, there's not much point in posting a question, or incentive for anyone to help you.
 
  


Reply



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
Best possible syslog server for production harshaabba Linux - Server 7 06-30-2014 03:55 AM
[SOLVED] Copying OpenBSD Kernel from a non production to production machine lcxpics *BSD 3 05-05-2011 02:58 AM
32bit Test Server for 64bit Production Server jmxfield Linux - Newbie 4 03-21-2011 06:50 PM
Lampp for a production server? xpucto Linux - Newbie 9 06-10-2006 02:42 AM
Production server? RusRob Debian 2 09-02-2005 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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