Questions tagged [gcc]
The GNU Compiler Collection is the standard compiler system used on many Unix-like operating systems, including Linux. Originally meant for compiling C programs, it can now also handle C++, Java and several other languages.
1,196
questions
0
votes
1
answer
175
views
After downgrade gcc Nvidia driver doesen't work,fallback to default gcc doesn't work
As I downgrade the gcc to 4.4 I changed the symlinks to the 4.4 Version. This doesen't work and now my System (kubuntu 20.04 64bit) doesen't boot. As I learned now the Nvidia driver need the gcc ...
0
votes
0
answers
188
views
how to custom ubuntu live CD with gcc installed
I want to make an Ubuntu image with gcc so that I can run gcc directly after the system is installed. The version of Ubuntu is Ubuntu Server 20.04.2 LTS. How can I package the gcc related installation ...
1
vote
0
answers
47
views
Installing of graphics.h library [duplicate]
When I try to install the following packages using this command
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev
it shows
Reading package lists... Done
Building dependency tree
Reading ...
0
votes
0
answers
205
views
How to use gcc -7 if a have build essential installed (ubuntu 16.04)
I'm on Ubuntu 16.04 and installed build-essential because I need gfortran, gcc, g++. I'm trying to run Nek5000 but I get an error with makenek:
gcc: error: unrecognized command line option ‘-fno-plt’
...
1
vote
0
answers
348
views
Cannot compile aircrack-ng [closed]
Downloaded the tarball for aircrack-ng and then followed the instructions to compile and then install it. The first step it asked me to do was to run autoreconf -i so I did. It gave the following ...
1
vote
1
answer
4k
views
About files in /usr/include/x86_64-linux-gnu
I see libc6-dev have files installed in /usr/include/x86_64-linux-gnu.
It seems that files in /usr/include/x86_64-linux-gnu/sys are pointed by symlinks from /usr/include/sys. And it seems that /usr/...
0
votes
0
answers
1k
views
/usr/bin/ld: cannot find -ly (flex and bison, Ubuntu 20.04.2)
I just switched from Windows10 to Ubuntu 20.04.2, and after installing Flex and Bison using these commands :
sudo apt-get update
sudo apt-get flex bison
I get an error after running gcc lex.yy.c ...
2
votes
2
answers
4k
views
Experiencing gcc 5 failure running poetry install on Ubuntu 20.04
Multiple error: command 'gcc-5' failed: No such file or directory..
gcc version: 9.3
poetry version: 1.1.4
python: 3.9.1
Ubuntu 20.04
1
vote
1
answer
6k
views
gcc/g++ 10 is installed but I can not use it on Ubuntu 20.04.2 LTS [duplicate]
I used the information here How to install g++ 10 on Ubuntu 18.04? to install gcc/g++ 10 on Ubuntu 20 and when I try to do it again:
sudo apt install g++-10
Reading package lists... Done
Building ...
0
votes
0
answers
72
views
configure: error: Cannot enable MemorySanitizer ubuntu18.04
make powerdns in ubuntu18.04 server by this option ./configure --enable-msan and I install 100+ packages but it could resolve
error
checking whether to enable MemorySanitizer... yes
checking whether ...
1
vote
0
answers
4k
views
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
i am trying to run the ovs faucet tutorial. One of steps is to compile the faucet container package. I am getting the following error when I tried to run it
gcc: error trying to exec 'cc1plus': execvp:...
0
votes
0
answers
31
views
gcc: error trying to exec '/usr/lib/gcc/x86_64-linux-gnu/7/cc1': execv: Input/output error [duplicate]
I've searched for an attempted fix for this problem but it seems that people haven't had this problem.
When I try to compile a C program with gcc (Ubuntu 18.04, GCC 7.5.0) I get the error as said in ...
0
votes
1
answer
14k
views
How to install guest addition in Ubuntu 20.04 LTS?
Today, i installed Ubuntu 20.04 LTS on latest virtualbox. everything is fine except fullscreen. I tried to install guest addition by clicking on " Insert guest addition CD image ". At first ...
1
vote
1
answer
2k
views
C++ not able to install 32-bit gcc-9/g++-9-multilib on Ubuntu 18.04
I have multiple version of c++ compilers installed on my laptop. I am trying to build my code using g++-9.3 with a 32-bit compiler. So I tried to install the multilib by using
sudo apt-get install gcc-...
1
vote
1
answer
703
views
gcc usb.h not found
I'm trying to compile a little program with GCC, but the command make ./temper gives me this error:
gcc -Wall temper.c pcsensor.c -o temper -lusb In file included from temper.c:8: pcsensor.h:25:10: ...
0
votes
1
answer
114
views
Compile error for hifiberryos
I am trying to compile hifiberryos. I cloned the Git repository, followed the instructions and everything was OK until I compiled it when it gave me this error.
**arm-buildroot-linux-gnueabihf-g++....
0
votes
1
answer
4k
views
VirtualBox guest additions crashes and fails to fully install on Ubuntu 20.04 guest
My virtualbox 6.1.4 vm with Ubuntu 20.04 guest on Windows 10 Pro fails to install:
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.4 Guest Additions for Linux........
VirtualBox ...
0
votes
1
answer
1k
views
/usr/bin/ld: cannot find -lXinerama [duplicate]
I am trying to build dmenu but I got this error.
dmenu build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -...
1
vote
0
answers
56
views
Trouble installing basic packages
I'm having difficulty installing the dependent packages required to install a r8125 driver.
I have one machine with Ubuntu 20.10 installed fresh. The network card requires the r8125 driver to function....
0
votes
1
answer
4k
views
Change gfortran version on ubuntu
I want to change gfortran version on ubuntu 20.04. The current version of gfortran on my system is 9.3.0 but I want to switch it to 7.5 please suggest me how to do it
0
votes
0
answers
185
views
Do I have GCC somewhere? (Ubuntu 20.04.1 LTS). Sudo apt-get is not an option (no driver for ethernet)
I can't sudo apt-get because I need an ethernet driver. I can't install the driver because I apparently don't have gcc.
"cat /proc/version" tells me that I have gcc version 9.3.0 but how do ...
-1
votes
1
answer
419
views
Where do i extract strcasestr.3.gz to for gcc, gnu compiler on ubuntu 18.04?
I have Ubuntu 18.04 and gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, GNU Compiler on a desktop computer. I want to use strcasestr in c. But gcc does not find it. gcc gives me:
warning: implicit ...
0
votes
1
answer
797
views
GCC is showing "pow" as an undefined directory
I'm using Code::Blocks on Ubuntu 18.04. However, I'm unable to compile the following program successfully.
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
...
0
votes
1
answer
83
views
Is "Ubuntu Desktop for Developers" different from "Ubuntu Desktop"?
Is "Ubuntu Desktop for Developers" different from "Ubuntu Desktop"? If so, how do I download the Developers' version. I want to make sure that I get things like gcc, g++, gdb, ...
1
vote
0
answers
18
views
Will default gcc version change in 20.04 [duplicate]
I'm writing a book that discusses the assembly language generated by gcc. I'm using Ubuntu 20.04. The default version of gcc is 9.3.0. The latest version of gcc in the repositories is 10.2.0. It's an ...
0
votes
0
answers
111
views
vowpal_wabbit library does not build on ubuntu 20.04
I am trying to build vowpal_wabbit library version 8.1.1 on Ubuntu 20.04 and get the following error while building the Java JNI lib.
mkdir -p target;
g++ -shared -o target/vw_jni.lib src/main/c++/...
0
votes
0
answers
192
views
I can not find coredump
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
***** Source ******
// This is a disposable program for ...
0
votes
1
answer
6k
views
cmake cannot find c compiler even though gcc and g++ are installed
I am using Ubuntu 18.04 and I am trying to install cmake by executing the command:
./bootstrap
But I am getting an error:
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this ...
0
votes
0
answers
1k
views
How to install gcc without internet connection?
I am trying to install the software necessary for a wifi adapter on my linux machine. In order to do so I need gcc, which I can't download because I don't have wifi access. I have tried installing ...
2
votes
0
answers
323
views
Compiling hello world in Ubuntu fails
I have a hello world c++ file and When I compile I get some bogus error. It seems something is off with c++ setup.
Here is what I get:
root@localhost:/home/student/tmp/gios/pr4/part1# g++ -o hello ...
0
votes
1
answer
209
views
How do I put a c lib on ubuntu to make extension to gcc?
I have a file named "h1.c", which contains this line of code
#include <stdio.h>
I can run this command
gcc h1.c
in any directory on Ubuntu, as Ubuntu puts the stdio.h file in /usr/...
2
votes
1
answer
17k
views
`GLIBCXX_3.4.26' not found
usr/local/MATLAB/R2018b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /usr/local/lib/libIlmImf-2_5.so.25).
I am using this
to install gcc 9.1.0 as ...
0
votes
0
answers
665
views
How to go back to default GCC version of Ubuntu 18.04?
$ gcc --version
gcc (Ubuntu 10.1.0-2ubuntu1~18.04) 10.1.0
$ type -a gcc
gcc is /usr/bin/gcc
$ update-alternatives --query gcc
Name: gcc
Link: /usr/bin/gcc
Slaves:
g++ /usr/bin/g++
Status: auto
Best:...
1
vote
1
answer
261
views
Getting error while trying to run ./configure --prefix=/tools so to install systemc
I am trying to install systemc-2.3.3 on ubuntu 18.04LTS. Previously I tried with 20LTS that didn't work for some reason.I am following these instructions :Installation of SystemC-2.3.3. I am a newbie ...
0
votes
0
answers
637
views
Cannot initiate the connection to in.archive.ubuntu.com:80 (2403:8940:3:1::f). - connect (101: Network is unreachable) [duplicate]
I am trying to install "GCC" and "GFORTRAN" using the command sudo apt-get install gcc and sudo apt-get install gfortran.
I have seen a solution related to this problem "Go to ...
0
votes
0
answers
784
views
Unable to install GCC in Ubuntu 20.04.1 [duplicate]
I am using Ubuntu 20.04.1. The output of apt-cache policy gcc:
gcc:
Installed: (none)
Candidate: 4:9.2.1-3.1ubuntu1
Version table:
4:9.2.1-3.1ubuntu1 500
500 http://repos.del....
1
vote
1
answer
4k
views
Installing gcc-8 g++-8 on ubuntu 18.04
Hi I tried installing gcc-8 and g++-8. It is giving below error
$ sudo apt-get install gcc-8 g++-8 -y
Some packages could not be installed. This may mean that you have
requested an impossible ...
0
votes
1
answer
4k
views
Vmware - gcc version (null) was not found
I couldn't install my VMware on Ubuntu. Whenever I execute sudo vmware, I receive a popup asking me to choose the version of gcc. However, unlike other errors similar to this, I am faced to choose a ...
0
votes
1
answer
3k
views
GCC Issue with Building an Old Linux Kernel
I am trying to build from source version 2.6.37 of the Linux Kernel compiled for ARM. The reason I need to do so is related to work; I need that specific version. I am able to build the most recent ...
1
vote
0
answers
102
views
GCC C code compiling
I have a problem regarding gcc. Although I have a background programming in C, I have never actually used gcc. Until now that is. I have a Go program I am creating, that uses a library (Fyne) that in ...
4
votes
3
answers
7k
views
How do I install gcc 4.8 in Ubuntu 18.04?
I am currently using Ubuntu 18.04, and I need gcc 4.8 for MATLAB. So I tried to install gcc-4.8 using
$ sudo apt-get install gcc-4.8
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/...
0
votes
1
answer
178
views
ln -s fails to create símbolic to a file
I am trying to install arm toolchain and my programming teacher gave me instructions how to do it.
I extracted the downloaded libraries in /opt and I tried to create links in /usr/local/bin pointing ...
2
votes
1
answer
4k
views
Does Ubuntu 20.04.1 LTS not come with a c compiler by default?
I recently downloaded the official desktop version of 20.04.1 and installed it on a machine. I was surprised to find that there was no gcc command available! I installed it with apt but I always ...
0
votes
1
answer
288
views
accessing libraries using gcc -l option
/usr/lib/x86_64-linux-gnu contains over 1000 useful libraries. One expects to be able to access them using the -l option in gcc where
-lfoo means "insert library libfoo.so".
But many common ...
0
votes
0
answers
458
views
help compiling gcc-10-source with debian patches on ubuntu 20.04
After extracting gcc-10-source_10.2.0-8ubuntu1_all.deb,
I entred into dir usr/src/gcc-10, then issued the command:
$ debian/rules control
I downloaded the prerequisites in the folder src/
then ...
0
votes
0
answers
330
views
Cannot install old versions of gcc
I need gcc-6 and g++-6 to compile a specific program (related with CUDA), I am tried to follow these instructions but for some reasons I get the following:
> sudo apt-get install gcc-6 g++-6 -y
...
0
votes
1
answer
115
views
I got errors with gcc and ./install
I'm triying to download and install droidcam from https://www.dev47apps.com/droidcam/linux page oficial
gcc make linux-headers-`uname -r`
cd /tmp/
wget https://files.dev47apps.net/linux/...
0
votes
1
answer
627
views
Problem Installing Network Simulator 2 in Ubuntu 18.04
A university course on Computer Networks requires to have Network Simulator 2 installed. But I struggle a lot to make this install happen.
What I Have Done So Far
Have downloaded the ns2 binaries ...
1
vote
0
answers
2k
views
collect2: error: ld returned 1 exit status while compiling
first i want to say that i looked for every solution for this problem in the site ,but no luck !
i have a project which i'm trying to compile , when i compile it on Ubuntu 14 everything is ok , but ...
0
votes
2
answers
10k
views
How to set path to newly built GCC
I just built and installed gcc6.3.0 for MATLAB, but I can't set the path to it. I tried
export PATH=/home/mo/GCC-6.3.0:$PATH
but this still gives the path to default gcc9.3.0. Ubuntu20.04.