Qt is not available error while compiling a wireshark plugin - qt

I am trying to built a wireshark plugin code on my RHEL5 Virtual machine and while I am trying to compile it, I am getting the below error.
On ./configure command , below is the error message I receive and the make file is not being generated.
checking for Qt5Core - version >= 4.6.0... no
checking for QtCore - version >= 4.6.0... no
configure: error: Qt is not available
Please advise on how to go about this error. I have looked up for various rpm files and tried installing them but none works!

Try installing below packages as stated in this answer. Worked for me.
libqt4-dev (4:4.8.2+dfsg-11)
libqt4-dev-bin (4:4.8.2+dfsg-11)
libqt4-opengl-dev (4:4.8.2+dfsg-11)
libqtwebkit-dev (2.2.1-5)
qt4-linguist-tools (4:4.8.2+dfsg-11)
qt4-qmake (4:4.8.2+dfsg-11)

The error message you post is telling you that you need a version of Qt greater than or equal to 4.6.0. Since you are building software against Qt you will need the developer version of the package. There seems to be packages named qt47-devel that should be suitable.

Related

No module named 'charset_normalizer.md__mypyc'

I'm using PyInstaller to compile a program and keep coming across the error "No module named 'charset_normalizer.md__mypyc.'" The Charset-Normalizer package is installed.
As a test, I tried re-compiling a program that I had previously created in early September without issue, but now receive the same error. I thought that maybe there is an issue with the versions of either PyInstaller or Charset-Normalizer so I've experimented with different versions, but cannot get it to work.
You are probably missing the "chardet" library
I installed it and it worked.
pip install chardet
I had the EXACT problem. Scripts that I was able to make into executables using Pyinstaller before I could no longer do so again. In my script I used the pdfplumber package, which when you install it also installs other packages like pillow, wand, charset-normalizer, etc.
Since the error was regarding charset-normalizer for me as well, I tried different versions of it. For me it was version 2.1.0 that made the executable work again. Install it with the "pip install charset-normalizer==2.1.0" command: https://pypi.org/project/charset-normalizer/2.1.0/.
If it does not work, go to "Release history" on that link and try another version. Try to remember when was the last time you created a working executable and get the version you think will work for you.
This worked for me:
I just added
from charset_normalizer import md__mypyc
to the top of my python script.
https://stackoverflow.com/a/58449206/20576777
If you don't have the charset-normalizer library installed, then you should install it using the following command:
pip install charset-normalizer
I got it to work by installing older versions of PyInstaller and Charest-Normalizer. Anytime this messages pops-up, consider installing an older version of the package.
Pyinstaller may sometimes miss your dependency. In such a case run pyinstaller with the --collect-all option.
In this case --collect-all charset_normalizer should force pyinstaller to include the dependency.

Install MPFR 3.X on Apple M1

I am on Apple M1. I tried to install a special package (Vienna RNA Package, precompiled binary package, https://www.tbi.univie.ac.at/RNA/#pack_macosx).
Installation is finished, but when I type the following
$ RNAduplex
I get the following:
dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib
Referenced from: /usr/local/bin/RNAfold
Reason: image not found
Abort trap: 6
Mpfr is installed via homebrew, but only the most recent version (4.1.0). I guess I need to install the previous version (3.1.6), but I don't get it work.
I tried to install it from https://www.mpfr.org/mpfr-3.1.6/ downloaded from https://www.mpfr.org/mpfr-3.1.6/.
When I do
./configure
I get
configure: error: gmp.h can't be found, or is unusable.
even though gmp is already installed via homebrew (present at /opt/homebrew/Cellar/gmp/).
Any advice on this?
Looking forward to any comments!
Best,
Stefanie
The config.log file may give more information about the error, but I suppose that gmp.h isn't in the include search path. You can try something similar, by compiling:
#include <gmp.h>
int main (void) { return 0; }
You will probably get an error as well.
So you may need to add the directory where gmp.h has been installed to the CPATH or C_INCLUDE_PATH environment variable. You will need to do something similar for the library. Another solution is to use the --with-gmp=... configure option with the GMP installation directory. See the INSTALL file for more information.

zlib/bz2 library and headers are requried for compiling R

Trying to compile R-3.3.2 on Debian Jessie, all dependencies are installed. However the ./configure script complains about the zlib/bzip2 library versions not matching with the minimum requirement.
Minimum version required:
zlib: 1.2.6 (installed version: 1.2.11)
bzip2: 1.0.6 (installed version: 1.0.6)
After looking at the parts of configure script checking the library versions, it seems that it compares versions with strcmp or strncmp. Since "1.2.11" is lexicographically smaller that "1.2.6" it return a non-zero value indicating that the match failed. Besides, it just compares the first 5 characters which is also not what it is intented. So, it's a bug in configure script. Changing the script fixed the issue.
For zlib, find this line:
exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0);
Change it to:
exit(ZLIB_VERNUM < 0x1250);
I had some issues installing R myself, specifically with the error
checking for BZ2_bzlibVersion in -lbz2... no
I had to install libbz2-dev to get that error to go away.
Unfortunately, I came across a few more issues while running ./configure and had to do a little more digging to find out how to solve it.
Discussion on issue
After reading that, I had realized I had to install a couple packages like libcurl4-openssl-dev, libpcre3, and liblzma-dev to finally finish the configuration.
The cited link suggested
At this stage you could have as well tried to install R 3.2.0RC ...
R-devel has not yet diverged much.
Personally, I think that installing an older version to resolve dependency issues reeks of laziness, but that's just my two cents.

QtWebKit gstreamer1.0 not found

I want to compile PhantomJS with gstreamer. I downloaded the source code and started the build process with
./build.sh --qmake-args WEBKIT_CONFIG+='use_gstreamer'
I get the following Error
Project ERROR: gstreamer-1.0 development package not found
I have an debian 8.0 system with installed libgstreamer1.0 and glib2.0 (installed with apt-get).
Can someone help me?
If you haven't installed them, you'll need the development packages as well which should be something like libgstreamer(X.X.X)-dev, where X.X.X is whichever version of gstreamer you have installed. The development package has the necessary header files required for compilation.
you may need to modify the build script to add "{GStreamerInstallDir}/1.0/{architecture}/lib/pkgconfig" to the CMAKE_MODULE_PATH configuration so cmake can find the package.
Not sure how to do this in your environment as I build on a windows OS where I just specify this using an environment variable from a wrapping batch script.

How do I run qmake to install templar?

This is a borderline question but it's a bit programmy so I thought I'd try here instead of Super User. I am trying to install templar, so I downloaded the source and attempted to run qmake to install it. When I do, I get this message:
Project ERROR: Unknown module(s) in Qt: xmlpatterns
I don't have particular interest in learning about the internals of Qt, other than what is needed to compile templar. Is this message telling me that the module can't be found, or that Qt doesn't know what to do with it?
And how do I remedy this error?
I had the same error while building an other project using Ubuntu.
This worked for me:
sudo apt-get install libqt5xmlpatterns5-dev
Your Qt distribution wasn't build with the xmlpatterns module. You need to download a new distribution from the website. In the worst case you will have to compile it yourself but it isn't quite hard.

Resources