Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.