Gcc: Error: Libgomp.Spec: No Such File or Directory with Amazon Linux 2017.09.1

how to resolve libgomp.spec missing while attempting to install rmagick gem with ruby 2.3.8 | Rails 3.2.22.5 | Amazon Linux 2018.03

The libgomp.spec file is not available in the expected location. To resolve this issue we had to symlink the libgomp.spec from gcc 6.4.1 into the /usr/lib64/ directory

ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/lib64/libgomp.spec
ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.a /usr/lib64/libgomp.a
ln -s /usr/lib64/libgomp.so.1.0.0 /usr/lib64/libgomp.so

Thank you to @3D0G for the solution from this post:

gcc: error: libgomp.spec: No such file or directory with Amazon Linux 2017.09.1

Adding this question / answer for easier finding of the solution in regards to the issue with rmagick gem installation.

-fopenmp does not include omp.h on amazon linux?

As usual, header files such as omp.h come with relevant version of gcc compiler. When the compiler can't find the header file, I guess you are using the different version compiler (other than 4.8.5 in this case).

You can find all gcc versions by typing:

sudo yum list installed | grep gcc

If there are other versions of gcc such as gcc72, you can erase them by:

sudo yum erase gcc72

After that, you will compile the code successfully.

Unable to install data.table in R version 3.4.1

Adding the following symbolic links worked.

ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/lib64/libgomp.spec
ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.a /usr/lib64/libgomp.a
ln -s /usr/lib64/libgomp.so.1.0.0 /usr/lib64/libgomp.so

Disable IntelliTrace during execution of application

Disable IT completely:

Tools -> Options -> IntelliTrace -> [ ] Enable IntelliTrace

or figure out what exactly event type degrades the performance and disable it:

Tools -> Options -> IntelliTrace -> IntelliTrace Events

What are the benefits of types being first-class objects?

Take a look at Agda2, ats-lang.org and other languages with dependent types. Not quite what you asked, but related.



Related Topics



Leave a reply



Submit