i am using ubuntu18.04.5 and i have installed all the requisites and successfully compiled gem5 following the guide: https://www.gem5.org/documentation/learning_gem5/introduction/
But during the compilation I get 2 warnings:
*** Summary of Warnings ***
Warning: Header file <png.h> not found.
This host has no libpng library.
Disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support.
How can I fix them?
how will it affect the user experience?
For CentOS 8.3, I got the same warning messages while building gem5 -
***Summary of Warnings***
Warning: Header file <png.h> not found.
This host has no libpng library.
Disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support.
and solved it using the command -
sudo yum install libpng-devel
sudo yum -y install hdf5-devel
For Ubuntu 18.04 or 20.04 using the below command -
sudo apt-get install libhdf5-dev
sudo apt-get install libpng-dev
Related
install greenplum
./configure
problem:
configure: error: zstd library not found
If you have libzstd already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-zstd to disable zstd support.
I try to install zstd
1.pip install zstd done nothing problem
2.yum install zstd-devel "No matching distribution found for zstd-deve"
when you "./configure" ,it don't error
Greenplum needs to compile and link against zstd. Looking at the command you tried (yum install zstd-devel), I am assuming you are using RHEL/CentOS 7. There is no package for zstd in the CentOS repos --- you'll need to install it from EPEL. It should look something like
yum install epel-release
yum install libzstd-devel
I have installed protobuf using this conda install protobuf==2.6.1 in a conda environment. So once I want to install a software it showing the following error message:
#error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
.build_release/src/caffe/proto/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
.build_release/src/caffe/proto/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from .build_release/src/caffe/proto/caffe.pb.cc:5:0:
.build_release/src/caffe/proto/caffe.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
Makefile:588: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
I tried to find out which versions of protobuf has been installed
$sudo find / -name protoc
/usr/share/bash-completion/completions/protoc
find: ‘/run/user/1000/gvfs’: Permission denied
/home/ubuntu/anaconda2/pkgs/libprotobuf-3.4.1-h5b8497f_0/bin/protoc
/home/ununtu/anaconda2/envs/testenv/bin/protoc
after uninstalling the protobuf by this command conda uninstall protobuf, even after removing the compiler:
sudo apt-get remove protobuf-compiler
sudo apt-get remove --auto-remove protobuf-compiler
$ protoc --version ===>>> libprotoc 3.4.0
How can I uninstall this libprotoc 3.4.0? Even after removing by this command sudo apt-get autoremove protobuf-compiler libprotobuf-dev and removing successfully, it still shows protoc version as libprotoc 3.4.0. Could someone please help? I only need protobuf==2.6.1. Thanks
I could solve the issue inside the anaconda environment:
conda uninstall libprotobuf
When I run convert file.pdf or gs command in terminal I get the following error:
dyld: Library not loaded: /usr/local/lib/libjbig2dec.0.dylib
Referenced from: /usr/local/bin/gs
Reason: image not found
I installed imagemagick and ghostscript using homebrew:
brew install imagemagick
brew install gs
I have tried solutions in related questions such as reinstalling, relinking etc but I just can't get it to work.
I have also tried:
brew uninstall libtool
brew install libtool --universal
brew unlink libtool && brew link libtool --force
Homebrew, libtool, imagemagick and ghostscript are all up to date and I am running the latest version of Mavericks.
Any ideas on how to fix this problem?
I finally fixed the problem with a surprisingly simple solution:
I tried brew install jbig2dec which returned Warning: jbig2dec-0.11 already installed.
I then checked to see if it it was linked: brew link jbig2dec which returned Warning: Already linked: /usr/local/Cellar/jbig2dec/0.11
I then ran brew unlink jbig2dec && brew link jbig2dec to relink it.
Voilà! GhostScript now works.
The Ghostscript you are using has been compiled using shared libraries (which we don't reccomend but packagers are very keen on). You obviously don't have the JBIG2dec shared library on your system. As far as I can see you have 2 choices:
1) Find and install the shared library version of Jbig2dec (you can get jbig2dec from the ghostscript site I think). You may have to build it yourself and I'm doubtful that the standard build will create a shared object.
2) Recompile Ghostscript from source so that it doesn't use shared libraries.
I can't compile an open-source project that uses libpng under Ubuntu using gcc.
I've installed with apt-get libpng3 and libpng12-dev, but autoconf says that 'libpng' isn't installed yet.
How to make clear for autoconf that libpng3 is libpng?
I can't shake this error when trying to install Thrift:
./configure
...
checking for boostlib >= 1.40.0... configure: WARNING: We could not detect the boost libraries (version 1.40 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
I'm using CentOS. As per the Thrift docs on CentOS, I've done
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
I've tried using --with-boost to no avail.
I've also done:
[]# yum install boost141
Setting up Install Process
Package boost141-1.41.0-2.el5.x86_64 already installed and latest version
Nothing to do
[]# yum install boost141-devel
Setting up Install Process
Package boost141-devel-1.41.0-2.el5.x86_64 already installed and latest version
Package boost141-devel-1.41.0-2.el5.i386 already installed and latest version
Nothing to do
So now I have:
[root#domU-12-31-39-18-3D-20 include]# find / -name boost
/usr/local/bin/boost
/usr/include/boost141/boost
/usr/include/boost
Through various googling, I've found people with this error who say, 'Oh it was gcc-c++, I didn't have that installed,' but as far as I can tell, I have gcc-c++ installed:
[root#domU-12-31-39-18-3D-20 boost]# yum install gcc-c++
rightscale-epel | 951 B 00:00
Setting up Install Process
Package gcc-c++-4.1.2-46.el5_4.2.x86_64 already installed and latest version
Nothing to do
Any advice? Thanks in advance.
This is an old question, but I recently hit the same thing working with a Cent 5.10 machine and building Thrift
Fixup the include files for boost141 and the build will work.
ln -s /usr/include/boost141/boost /usr/include/boost