Questions tagged [gcc]

GNU Compiler Collection

Filter by
Sorted by
Tagged with
46 votes
6 answers
10k views

Is it safe for a production server to have make installed?

During the setup of my virtual server instances I require some applications to be built using make. Are there any security risks associated with having make installed? Or should I clean it up before ...
S-K''s user avatar
  • 1,311
41 votes
1 answer
102k views

Unable to execute gcc: No such file or directory

I am running Ubuntu LTS and I'm getting errors when trying to do some of my pip install stuff, like scrapy for example. This is the error I get: Unable to execute gcc: No such file or directory Error:...
J.Zil's user avatar
  • 1,123
11 votes
1 answer
48k views

How can I get information about a binary file that won't execute?

When I run one of my user's applications named "myfile". $ ./myfile I receive the following output bash: ./myfile: cannot execute binary file My user expects the binary file to run. I assume ...
Eric's user avatar
  • 554
11 votes
4 answers
13k views

Siege: descriptor table full sock.c:119: Too many open files

I am trying to make a stress test in my own server using siege with the following command: $ siege -c 500 myweb.com/somefile.php But I get this error: [error] descriptor table full sock.c:119: Too ...
shakaran's user avatar
  • 356
9 votes
2 answers
2k views

Build gcc without a c compiler

Is it possible to build gcc without a c compiler already on the machine? If so, how?
David Nehme's user avatar
  • 2,166
6 votes
2 answers
2k views

Remote server security: handling compiler tools

I was wondering wether to remove compiler tools (gcc, make, ...) from a remote production server, mainly for security purposes. Background: The server runs a web application on Linux. Consider Apache ...
user avatar
5 votes
3 answers
3k views

Trouble compiling modern GCC with antique glibc

I am trying to get a modern GCC to compile on Centos 6.4. The problem is that Centos does not have a modern glibc and GCC 4.8.x and 4.7.x keep giving me the following compile error: ... -DL_gcov -c .....
vy32's user avatar
  • 2,148
4 votes
1 answer
9k views

Where does gcc keep its built-in include directory paths

GCC has built in include directories for certain standard headers. I just need to know where this list is. My newly compiled gcc will not compile my little test C++ program because it cannot find ...
Charles's user avatar
  • 165
4 votes
1 answer
7k views

How to install the latest g++ version on CentOS

I tried yum install gcc-c++, however, the repos have an old version (4.1) which causes lots of problems and stops me from building a library. I would like to update it to latest. How can I do that?
Rad'Val's user avatar
  • 267
3 votes
3 answers
13k views

`cannot find "-lgcc_s"` from gcc-3.4 on Ubuntu 11.04

I'm trying to use gcc-3.4 on the latest Ubuntu. The package is from debian snapshots. It probably assumes different default directory structure, so for example I was forced to give it -I /usr/include/...
Elazar Leibovich's user avatar
3 votes
2 answers
3k views

Centos 6.6: [yum install *anything*] fails with [protected multilib error]

I have some problems with installing or upgrading anything on Centos 6.6. Problem is pretty much summed up in the topic name. When i try: yum install gcc-c++ I get: ... Error: Multilib version ...
dishonorableDeath's user avatar
3 votes
2 answers
14k views

Can I install a recent gcc from binaries on Amazon Linux?

I'm using Amazon Linux on an EC2 instance started from the most recent 2017.03 AMI (ami-6df1e514). This distribution comes with g++ 4.8.3 from 2013. I need something more recent that can compile C++...
bcattle's user avatar
  • 161
3 votes
1 answer
398 views

Need to install libstdc++-5 on ubuntu 9.10

I'm running ubuntu 9.10 which has gcc4 (libstdc++6) installed, and I need to install a program that requires libstdc++5 that comes with gcc3. I don't see gcc-3 listed when I run "apt-cache search" so: ...
xain's user avatar
  • 677
2 votes
1 answer
1k views

Dependency Hell trying to install GCC on CentOS4

I have a production CentOS 4.4 box running Virtuozzo VPSes, and I'm trying to install GCC inside one of them so I can install the latest PHP from source. I downloaded gcc and its dependencies from a ...
Ian Dunn's user avatar
  • 194
2 votes
5 answers
7k views

GCC missing from Solaris 11, and server already deployed (no access to internet)

I'm having a peculiar problem, where a server has already been deployed, and it's no longer connected to the network. For it's original purpose, it didn't need any C/C++ compiling tools, and thus ...
julumme's user avatar
  • 145
2 votes
2 answers
3k views

My yum repository able to search packages, but not able to install it in RHEL?

I set up yum from dvd. Following is the containts of my .repo file: [dvd] name=Red Hat Enterprise Linux Installation DVD baseurl=file:///media/dvd enabled=0. I'm able to search packages. However ...
Mandar Pande's user avatar
2 votes
1 answer
3k views

missing shared library in ldd

I compiled Apache httpd on CentOS 6.x. Works fine there. Then I moved the binary files to CentOS 7. I needed to install some missing libraries and now works fine there. Then I moved the binary files ...
Nick's user avatar
  • 862
2 votes
1 answer
31k views

configure: error: C compiler cannot create executables while build ruby from source [closed]

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I am trying to build Ruby from source as describe here: https://www.ruby-lang.org/en/installation/#...
Pradeep Gupta's user avatar
2 votes
1 answer
795 views

Compiling Apache 2.2.11 on AIX 6.1, .so files not genereated

I am compiling Apache 2 (2.2.11 yeh, Its old...but its a requirement) on AIX 6.1 with GCC 4.2.0. I am using the configure options: ./configure \ --enable-module=rewrite\ --enable-module=log_referer\ ...
user176514's user avatar
2 votes
3 answers
2k views

finding binaries/files/libraries not in Path -- specifically gcj

I am trying to build pdftk, which apparently requires gcj. Since it is not already in my path, I can either add the directory holding gcj to my path or define the path in the pre-made Makefile. The ...
Anthony's user avatar
  • 325
2 votes
1 answer
7k views

/usr/bin/ld: cannot find -lmysqlclient Error but I have installed libmysqlclient-dev

I'm trying to compile this source code I have from a developers website that made his personal small MMO public, when trying to compile I get: gcc -O -g -m32 -rdynamic -L/usr/lib/mysql -o server .obj/...
Datsik's user avatar
  • 125
2 votes
1 answer
620 views

Error while compiling PHP extension

I'm trying to install a php extension that is written in c and make use of MongoDB c driver. I have been trying for the last 2 days to compile and install the extension, however, I'm getting the same ...
user avatar
2 votes
1 answer
66 views

Bash build environment settings

I'm newbie in Bash and I'm using MinGW as a GCC compiler. I have .profile in my home directory which sets building environment. Here is .profile content. What's a difference in commented/uncommented ...
Toktik's user avatar
  • 147
2 votes
1 answer
584 views

apt remove gcc-5 dependency errors

I'm face on some troubles here. I'm trying to remove gcc-5, however there are a lot of dependencies that will be affect by it. I'm looking for a magician that could help me uninstall it without make a ...
Levi Resende's user avatar
2 votes
1 answer
44 views

Squeeze/Lenny compilation : Library Link error [closed]

I've got a problem here : I have a C++ Library ("DataTsBroad") and a C++ Test app ("DataTsBroadTest"), to test it. Actually, the Lib and the Test app are both compiled an a Debian Lenny. Now, i ...
PEZ's user avatar
  • 21
2 votes
1 answer
2k views

gcc46 and no c compiler found on Amazon EC2

I've been trying to install Gearman on my EC2 instance, but when I try to ./configure gearmand, I get this: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-...
Ghostcode's user avatar
1 vote
2 answers
23k views

How To install gcc 5.2 on centos 7.1? [closed]

How To install gcc 5.2 on centos 7.1 ? with g++,cpp ? I compiled it once, but it need newer glibc which cannot be switched in system
  sm1Ly's user avatar
  • 131
1 vote
4 answers
5k views

GCC compile result from Bash script

hi i'am not really fluent in bash shell script, i'am doing some compilation using gcc that executed by bash script, how do I know (check) if the compilation was successful or not? any example?
uray's user avatar
  • 255
1 vote
3 answers
1k views

Phusion Passenger Installation Not Working

I've been trying without success to install the Nginx version of Phusion Passenger (mod_rails) on my server by using the command gem install passenger followed by passenger-install-nginx-module. ...
Luke Crowe's user avatar
1 vote
1 answer
209 views

vfw.h no longer present on RHEL 4.8? [closed]

I maintain an application which relies on vfw. Unfortunately, I am not able to remove this deprecated video encoding mechanism at this time. My application compiles fine on Windows, but on RHEL 4.8 it ...
Brian Stinar's user avatar
1 vote
3 answers
3k views

Using gcc instead of SUNWspro cc in ruby mkmf for yajl on Solaris 10

How do I get mkmf to use gcc instead of /opt/SUNWspro/bin/cc on Solaris 10? I am trying to install chef using gem install chef. It is failing with: Building native extensions. This could take a ...
Sarge's user avatar
  • 189
1 vote
1 answer
1k views

What's the preferred way of upgrading CentOS 5.5 to use the latest stable release of gcc?

Seems that gcc on CentOS 5.5 is a few versions behind the latest, which has some optimizations that I would seriously welcome. What is the best practice for installing and upgrading gcc?
TallPines's user avatar
1 vote
2 answers
207 views

Latest stable of gcc

I need to install the latest stable release of gcc. I'm looking at all the gcc releases here. I'm assuming these are all stable releases?
Banjer's user avatar
  • 4,024
1 vote
1 answer
467 views

How do I compile ImageMagick with support for a patched version of Autotrace?

yum is not an option here I have downloaded, patched, configured, compiled, and installed autotrace. Files on the system with the autotrace name are: /usr/local/include/autotrace/autotrace.h /usr/...
Chris Adams's user avatar
1 vote
1 answer
2k views

Compiling passenger-install-nginx-module; "C compiler gcc is not found"

I am in the middle of a process of installing Redmine served with passenger and nginx with this tutorial. With the passenger-install-nginx-module, it works fine and during compiling it outputs an ...
MacMac's user avatar
  • 2,141
1 vote
1 answer
188 views

Is running my Unreal Tournament server like this slower than it has to be?

Unreal Tournament 2004 is an old game, and it does not run on a new server. I was said to run the server like this. LD_LIBRARY_PATH=$HOME/archive/gcc3 ./ucc-bin server BR-Serenity?game=XGame....
ujjain's user avatar
  • 4,033
1 vote
2 answers
7k views

SUSE EC2 Problem - zypper - Permission denied

I'm trying to use zypper to install gcc on my Amazon EC2 instance running SUSE.When I try:zypper in gcc I get: Retrieving repository 'SLE11-SDK-SP1' metadata [] Permission to access 'http://eu-west-1-...
phuu's user avatar
  • 111
1 vote
3 answers
2k views

Installing gcc on AIX 5.3

we have a development AIX 5.3 on PowerPC CPU having the standard CC compiler. I downloaded the gcc 4.2.4, unpacked it and tried to install it seems there is something missing; untar takes around 15 ...
A.Rashad's user avatar
  • 293
1 vote
2 answers
229 views

Should I install GCC 64 bit on a new server?

I am going to rebuild my server and I am wondering whether I should install GCC 32 or 64 bit. I develop in Python and I use some libraries that would benefit from a 64 bit GCC installation but I am ...
drdee's user avatar
  • 113
1 vote
0 answers
171 views

Setting /usr/bin/gcc and /usr/bin/g++ on SLES 15 when using gcc-12 package

I'm trying to consume GCC 12.3 in SLES when using the packaged gcc-12 installed with zypper. The compiler works and it's available on /usr/bin/gcc-12 alongside with /usr/bin/g++-12, but I don't have a ...
Vinícius Ferrão's user avatar
1 vote
0 answers
1k views

Getting a list of all project owners , folder path from GCP

I am trying to get a list of all GCP projects on the domain and the project owners and export it to a CSV, I have written a script which provide me details of projectid, name, projectnumber date and ...
vikash's user avatar
  • 11
1 vote
0 answers
98 views

Distcc refuses to compile with arm-none-eabi-gcc

I have distcc 3.3.3 (Ubuntu 20.04, kernel 5.4.0, both x86) on both the server and the client. Setup correctly, as far as I can tell, because it works when compiling for the x86 architecture with gcc. ...
Flu's user avatar
  • 11
1 vote
1 answer
247 views

nginx 1.15.8 loses TLS 1.3 after gcc 8 installation

I run a centos 7.6 server with nginx. Centos repos do not have latest nginx, so I compiled manually using instructions from here. This left me a nginx binary: nginx version: nginx/1.15.8 built by ...
Michael Chourdakis's user avatar
1 vote
0 answers
337 views

Unable to update packages / Package manager crash (Ubuntu 14.04)

I've been having troubles installing updates lately. Updating via the Software Updater gave no list of packages, though it still said it had to download ~100MB worth of updates. The update failed as ...
Jiyah's user avatar
  • 11
1 vote
1 answer
2k views

What version of libc.so is compiled in ESXI 6

In ESXI 6.0 what is the version of the library at '/lib64/libc.so.6'. This would be most helpful if someone could run that and post the info. For example my ESXI 5.5 current has: GNU C Library vmware ...
Nimjox's user avatar
  • 217
1 vote
0 answers
518 views

clang does not see gcc installation

I have such a system: uname -a FreeBSD gpskomsa 10.2-RELEASE FreeBSD 10.2-RELEASE #0: Thu Aug 20 18:25:34 VLAT 2015 root@gpskomsa:/usr/obj/usr/src/sys/GENERIC amd64 with default clang: clang -...
gpskomsa's user avatar
1 vote
1 answer
363 views

Error compiling GhostPDL for PASE (AIX) on OS/400 V5R4

I'm trying to compile ghostpdl 9.07 on V5R4 in QP2TERM (the AIX-like PASE environment). After downloading and untarring the package to /QOpenSys, I ran: CALL QP2TERM and then in QP2TERM: ./...
hewhocutsdown's user avatar
1 vote
0 answers
140 views

Why can't rsyslogd find libgcc_s.so.1?

Scenario: Running a debootstrapped Ubuntu 11.4 lxc guest on a Ubuntu 12.4 lxc host. Inside the lxc guest, rsyslogd is constantly crashing with SIGABRT stating: libgcc_s.so.1 must be installed for ...
UsAaR33's user avatar
  • 1,136
1 vote
0 answers
187 views

2 diferent versions of gcc in RHEL

I need to test a matlab EDA-LINK with Cadence Incisive. For this , one of the libraries complains of an error: version `GCC_3.3' not found (required by/appli/cadence/IUS82_ISR11/tools/lib/libstdc++....
user70247's user avatar
  • 125
0 votes
1 answer
870 views

Upgrading the old stock GCC in CentOS 5.5 to a current (stable) version

What would be the optimal way to do that? Are there any precompiled RPMs available somewhere? I read this question here, but the answer was not really satisfactory. The cause for wanting to upgrade: ...
brandstaetter's user avatar