24
votes
Accepted
How to compiler OpenMP program using clang?
I had the same problem.
sudo apt install libomp-dev
Fixed it with Ubuntu 16.10
//test.c
#include "omp.h"
#include <stdio.h>
int main(void) {
#pragma omp parallel
printf("thread %d\n", ...
21
votes
Accepted
Installing an older gcc version(3.4.3) on Ubuntu 14.04 (currently 4.8 installed)
Check your current version by running gcc -v.
Next,
You want to install a previous version.
For gcc-3.4
Since this version is available in the older releases of Ubuntu, we need to have the ...
21
votes
How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?
Install clang version 9 from the default Ubuntu repositories in Ubuntu 19.10 and later.
sudo apt install clang-9
/usr/bin/c++ is actually a symbolic link to:
/etc/alternatives/c++
which in turn is ...
16
votes
Accepted
What are the GCC and clang versions available in Ubuntu 18.04?
Thanks to the commenters, I checked Ubuntu's package server:
Default compiler: GCC 7.4.0
Can install: GCC 4.8.5, GCC 5.5.0
Can install from the "universe" repositories: GCC 6.4.0, GCC 8 (version ...
10
votes
Accepted
Update GCC to the 6.3 version
The only option exist is to Build it from Sources, since you're running Vivid (15.04) version which has reached EOL (End Of Life).
Download the source code and its prerequisites:
wget https://ftp....
10
votes
How to install clang-14 on Ubuntu 18.04?
You can download clang 14 for with the instructions on the llvm page here:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
9
votes
How do i install less css compiler?
To Install Less Compiler
sudo npm install -g less
To know the location of it
sudo which lessc
To compile ".less" File to ".css"
lessc /home/--Your LESS File Location--/File.less > /home/--...
9
votes
Where are header files for GCC located?
To look for header locations just use the locate command:
locate -b '\math.h'
locate -b '\graphics.h'
or a simpler approach
locate \*/math.h
locate \*/graphics.h
If you are more familiar with ...
6
votes
Accepted
How do I install gcc 4.8 in Ubuntu 18.04?
Open the terminal and type:
sudo apt install linux-libc-dev
sudo apt-get -f install
sudo apt install gcc-4.8
5
votes
How can I use Fortran compiler?
If you have the code below in the text file hello.f90
Program Hello
Print *, "Hello World!"
End Program Hello
To compile the code, start the terminal and type:
gfortran -o hello hello.f90
To run ...
4
votes
Update GCC to the 6.3 version
Ubuntu 15.04 has reached end of life and has no support, which means no more updates or fixes (security, bugs or features) will be published.
You should update or reinstall with a newer Ubuntu ...
4
votes
How do I install gcc 4.8 in Ubuntu 18.04?
In your terminal type: sudo apt install gcc and enter. That should install the latest version of gcc.
If you want to install GCC 4.8 specifically, you may follow the post: How to install gcc-4.8.
As ...
3
votes
Software compiled from source does not work after first run
You should not compile the package by yourself. Remove it with
cd mecab-0.996
sudo make uninstall
and then proceed with deb-package mecab from repository. It has exactly the same 0.996 version as ...
3
votes
Accepted
How to install `sprof` in Ubuntu 14.04
Check libc-dev-bin package.
Found with :
$ apt-file search sprof | grep '/usr/bin/sprof'
so :
$ sudo apt-get update; sudo apt-get install libc-dev-bin
3
votes
How can I install Dev C++ in Ubuntu 16.04
Dev-c++ is basically a Windows program, with some work done to port to Unix like environments (cygnwin, Linux, etc). Run it under wine if you like, it's rated by winehq as silver or platinum, ...
3
votes
Making a snap to run on Ubuntu Touch
snapd is not integrated with Ubuntu Touch yet, so on the phone or on the tablet, you won't be able to easily install snap packages.
That said, you can take a look at https://github.com/ubuntu/snappy-...
3
votes
Compatible compilers for Matlab R2015a
Did you update your repositories? And did you try installing the matlab-support package.
sudo apt-get matlab-support
If you are facing problem with your version. Try this one.
https://kat.cr/...
2
votes
How do i install less css compiler?
Installation:
sudo apt install node-less
Using:
lessc source_file.less file.css
2
votes
Visual Studio Replacement for C#?
Xamarin, a developer for Mono, created MonoDevelop, which is an IDE for C# on Ubuntu.
As far as I know, it can open VS projects. You can find it within the Synaptic Package Manager or Ubuntu Software ...
2
votes
Compiler Problem
This does not look like an error: If you type man g++ you will see that the form of the command g++ requires an input file to compile. What you are doing instead, is starting the command with an ...
2
votes
Accepted
Runing a java program, Oracle JDK installed
Copy the following into a script called Hello.java:
package com.company;
public class Hello {
public static void main(String[] args) {
System.out.println("hello, world");
}
}
The -d ...
2
votes
Runing a java program, Oracle JDK installed
The problem generating the error
Java looks for your application in the path specified by your package directive. In this case com.company.
You can compile that simple program by commenting out the ...
2
votes
Accepted
PROBLEM WITH COMPILER C/ PLEASE HELP ME
You did not define tope.
When you initialize your arrays and also when you run through your for-loop the compiler does not know what tope is and therefore cannot determine the size of the arrays. ...
2
votes
Accepted
Find latest modified *.c file and compile it within terminal with pipelining?
You are piping the name of the file as code to be compiled by gcc
You can pass the name as a file argument instead using xargs:
find . -type f -mmin -1 -name "*.c" | xargs gcc -o output.o -xc
...
2
votes
Accepted
How to install gcov that is compatible with gcc version 10.1?
I had a similar issue and I found a way to update gcov between gcc 7 and 8 which needed a gcov and gcovr update as well as different versions of python (python 3). see more details here: how-to-update-...
2
votes
Accepted
How to install qmake compiler on Ubuntu
You can compile VNote by following their official build documentation at https://vnotex.github.io/vnote/en_us/#!docs/Developers/Build%20VNote.md .
So on Ubuntu 20.04 LTS you have to open terminal and ...
2
votes
Accepted
Ubuntu 23.04 C Compiler cannot create executables - C compiler works no
This is likely the problem:
/usr/local/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when ...
1
vote
Software compiled from source does not work after first run
I did not find a solution directly answering my own question, but I find a way to work around it.
I came to conclusion that the problem is related to the way mecab handle utf8 encoding, it defaults ...
1
vote
Accepted
cpp version "end of search list"
It is neither an error nor a warning - it is the verbose output, including the pre-processor search path. From man cpp:
-v Verbose mode. Print out GNU CPP's version number at the beginning
...
1
vote
Install older version of gfortran in ubuntu 16.04
The E: Unable to locate package gfortran-4.8.4 error message means exactly what it says. There is no package named gfortran-4.8.4 in Ubuntu 16.04. The closest match in 16.04 is gfortran-4.8 which ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
compiler × 142gcc × 38
compiling × 23
c++ × 20
software-installation × 14
c × 14
g++ × 14
command-line × 9
16.04 × 7
fortran × 7
14.04 × 6
apt × 6
java × 6
18.04 × 5
package-management × 5
make × 5
ide × 5
clang × 5
installation × 4
11.10 × 4
software-recommendation × 4
programming × 4
versions × 4
matlab × 4
code-blocks × 4