Why does "configure: error: zstd library not found" appear when I configure green plum, but I have downloaded zstd - greenplum

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

Related

Warning During Compilation of Gem5

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

OSX - Compiling training tools for Tesseract 4.0 - pango libraries not found

I am having trouble getting the configure script to recognise the pango libraries i have installed via Homebrew, which are dependancies for the training tools. So far, I've followed all steps detailed here:
https://github.com/tesseract-ocr/tesseract/issues/1453
and here:
https://github.com/tesseract-ocr/tesseract/wiki/Compiling#macos
and after running the configure script, I keep on getting these warnings in the output:
checking for pango >= 1.22.0... no
configure: WARNING: pango 1.22.0 or higher is required, but was not
found.
configure: WARNING: Training tools WILL NOT be built.
configure: WARNING: Try to install libpango1.0-dev package.
checking for cairo... no
configure: WARNING: Training tools WILL NOT be built because of
missing cairo library.
configure: WARNING: Try to install libcairo-dev?? package.
The libraries are located where they should be, at /usr/local/Cellar/pango/1.42.4_1
I've tried running the configure script as per the instructions above:
./configure CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib
as well as trying to add the path to the linking flags:
./configure LDFLAGS="-L/usr/local/opt/icu4c/lib -L/usr/local/Cellar/pango/1.42.4_1/lib" CPPFLAGS="-I/usr/local/opt/icu4c/include"
and I still can't get the script to see the libraries.
Thanks in advance for any advice on how to solve this.
It looks like pango and/or cairo and maybe other libraries depend on libffi. libffi is called to be keg-only in Homebrew. Even if libffi is installed it is not linked via symbolic-links. When pkg-config tries to find a library, it also checks for its dependencies. Since libffi cannot be located pkg-config tells that cairo is not available. Therefore, one needs to call
brew link libffi --force
This should solve the problem without touching anything extra. At least it worked for my case.
This is a modified version of the answer provided by Boris [Boris: just say the word and I will delete this].
Tested on macOS 10.13.6 High Sierra.
None of the pre-existing answers worked for me - I had to explicitly add libpng to my brew requirements as given by Boris:
brew install cairo pango icu4c autoconf libffi libarchive libpng
export PKG_CONFIG_PATH=\
$(brew --prefix)/lib/pkgconfig:\
$(brew --prefix)/opt/libarchive/lib/pkgconfig:\
$(brew --prefix)/opt/icu4c/lib/pkgconfig:\
$(brew --prefix)/opt/libffi/lib/pkgconfig:\
$(brew --prefix)/opt/libpng/lib/pkgconfig
./configure
Note: If you already have some of the above you might rather want to run brew reinstall in place of brew install, at the risk of damaging other projects.
I didn't need to supply any flags to configure.
The aim is of course to get the training tools to compile so that combine_tessdata, wordlist2dawg, dawg2wordlist etc. are available (I haven't found macOS binaries for these anywhere).
The full instructions then become:
git clone git#github.com:tesseract-ocr/tesseract.git
git checkout tags/4.1.0
cd tesseract
./autogen.sh
brew install cairo pango icu4c autoconf libffi libarchive libpng
export PKG_CONFIG_PATH=\
$(brew --prefix)/lib/pkgconfig:\
$(brew --prefix)/opt/libarchive/lib/pkgconfig:\
$(brew --prefix)/opt/icu4c/lib/pkgconfig:\
$(brew --prefix)/opt/libffi/lib/pkgconfig:\
$(brew --prefix)/opt/libpng/lib/pkgconfig
./configure
make -j
sudo make install
# -> You should now have access to tesseract
make training
sudo make training-install
# -> You should now have access to the training tools: combine_tessdata, wordlist2dawg, dawg2wordlist, etc.
# If not, check /usr/local/bin/ is on your PATH, i.e.
export PATH=/usr/local/bin/:$PATH
Footnote: How I diagnosed the libpng problem:
As stated above and here, the error thrown is not very helpful:
make training
Need to reconfigure project, so there are no errors
Digging a little deeper, configure throws some warnings along the lines of:
configure: WARNING: pango 1.22.0 or higher is required, but was not found.
configure: WARNING: Training tools WILL NOT be built.
configure: WARNING: Try to install libpango1.0-dev package.
checking for cairo... no
configure: WARNING: Training tools WILL NOT be built because of missing cairo library.
configure: WARNING: Try to install libcairo-dev?? package.
checking that generated files are newer than configure... done
I also had one for cairo
So you have to run configure in debug mode:
./configure --enable-debug
And check config.log by greping for pango (say):
$PKG_CONFIG --exists --print-errors "pango >= 1.22.0"
That is the line that throws the warning when configure is executed.
You can now execute that last line manually:
pkg-config --exists --print-errors pango
dyld: Symbol not found: __cg_png_create_info_struct
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libPng.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Abort trap: 6
which is how I traced the libpng cause. (In my case I had to reinstall/relink libpng because of various long-running clashes associated with gnuplot/octave/aquaterm etc. etc.).
HTH someone
This is the most elegant solution to the problem I found:
brew install cairo pango icu4c autoconf libffi libarchive libpng
export PKG_CONFIG_PATH=\
$(brew --prefix)/lib/pkgconfig:\
$(brew --prefix)/opt/libarchive/lib/pkgconfig:\
$(brew --prefix)/opt/icu4c/lib/pkgconfig:\
$(brew --prefix)/opt/libffi/lib/pkgconfig:\
$(brew --prefix)/opt/libpng/lib/pkgconfig
./configure
https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00#on-macos-mojave-with-homebrew
I fixed this by copying the pkgconfig files under libffi and icu4c
(find the path by typing brew link libffi icu4c in your terminal)
and pasting them at /usr/local/lib/pkgconfig and then set
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

installing usbmuxd under Mac OS X

I installed the latest version of libusb and now I'm trying to install usbmuxd.
However, it gives this error:
configure: error: Package requirements (libusb-1.0 >= 1.0.3) were not met:
No package 'libusb-1.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
In the installation log of libusb it says
libtool: install: /usr/bin/install -c .libs/libusb-1.0.0.dylib /usr/local/lib/libusb-1.0.0.dylib
It looks like the wrong version of the library is getting installed.
How can I solve this?
You should consider installing macports, which has usbmuxd v1.0.7 available, and then:
$ sudo port selfupdate
$ sudo port install usbmuxd
(you should de-install the libusb package you installed yourself, before doing this probably).

Installing gcc 4.8 on 13.10 “The following packages have unmet dependencies”

When I go to install gcc 4.8 using:
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8
I get the error message:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
gcc-4.8 : Depends: binutils (>= 2.23.90.20131017) but 2.23.52.20130913-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
And I've binutils at the newest version. How could I solve it?
Check your internet connection,
go to software center->edit->sources->choose best server.

Installing Thrift on CentOS: can't find Boost 1.40 or higher

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

Resources