Where can i find gtkglextmm package for CentOS 8? - centos

I'm looking for gtkglextmm, the gtk/gl C++ wrapper, for CentOS 8. On Ubuntu system, I know you can get it with sudo apt-get install libgtkglextmm-x11-1.2-dev but I can't find an equivalent package for yum.
I've tried grabbing the source and compiling that with ./configure then with make; make install, but I get an error saying
/usr/lib/libGL.so: could not read symbols: file in wrong format
I've always been weak with understanding compiler errors and how to fix them...
So, can someone either direct me to a precompiled rpm for gtkglextmm, or tell me what I need to do to compile the source?
Thanks!

/usr/lib/libGL.so: could not read symbols: file in wrong format
/usr/lib/libGL.so is a 32bit file: i686. (64bit libraries are in /usr/lib64/). Find package providing libGL.so: # dnf provides */libGL.so → # dnf install libglvnd-devel-1:1.3.2-1.el8.x86_64
Build example, gtkglextmm:
RHEL 8 is based on Fedora 28: Get the source package https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/source/tree/Packages/g/gtkglextmm-1.2.0-28.fc28.src.rpm .... to check what else "BuildRequires" is missing: # dnf builddep gtkglextmm-1.2.0-28.fc28.src.rpm.
Missing files from Fedora 28 https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/ : pangox-compat.x86_64, pangox-compat-devel.x86_64, etc.
# dnf install ./pangox-compat-*
# dnf install ./gtkglext-libs-1.2.0-32.fc28.x86_64.rpm
# dnf install ./gtkglext-devel-1.2.0-32.fc28.x86_64.rpm
Get other 'BuildRequires'
# dnf builddep gtkglextmm-1.2.0-28.fc28.src.rpm : Total package count installed for gtkglextmm, including the four "fc28" and their dependencies was 62 packages!
Install the SRPM to /home/name/rpmbuild/: $ rpm -Uvh gtkglextmm-1.2.0-28.fc28.src.rpm
Build gtkglextmm packages:
$ cd rpmbuild/SPECS/
$ rpmbuild -bb gtkglextmm.spec
.
Wrote: /home/knudfl/rpmbuild/RPMS/x86_64/gtkglextmm-1.2.0-28.el8.x86_64.rpm
Wrote: /home/knudfl/rpmbuild/RPMS/x86_64/gtkglextmm-devel-1.2.0-28.el8.x86_64.rpm
Wrote: /home/knudfl/rpmbuild/RPMS/x86_64/gtkglextmm-debugsource-1.2.0-28.el8.x86_64.rpm
Wrote: /home/knudfl/rpmbuild/RPMS/x86_64/gtkglextmm-debuginfo-1.2.0-28.el8.x86_64.rpm
... So then you can either install the new el8 packages, or the Fedora 28 packages gtkglextmm.x86_64, gtkglextmm-devel.x86.64 from
https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/g/

Related

How to install the perl DateTime module under CentOS8. yum install "perl(DateTime)" worked in CentOS7 but not in 8

There are some Perl modules that could previously be installed with:
yum install "perl(DateTime)"
Under CentOS7. In CentOS8 I get the error:
No match for argument: perl(DateTime)
I have the same problem for perl(Template), perl(YAML::XS), perl(Crypt::Eksblowfish::Bcrypt) and perl(JSON::XS)
I tried searching with:
yum provides *DateTime*
But I can't find anything there either.
perl-DateTime is no longer part of the CentOS 8 base OS. You'll need to enable the PowerTools repository, i.e. as root
# yum config-manager --set-enabled PowerTools
# yum update
# yum repolist
repo id repo name status
...
PowerTools CentOS-8 - PowerTools ...
...
# yum install "perl(DateTime)"
or...
# yum install perl-DateTime
perl(YAML::XS) (AKA perl-YAML-LibYAML) should also be available.
perl(Template) (AKA perl-Template-Toolkit) and perl(Crypt::Eksblowfish::Bcrypt) (AKA perl-Crypt-Eksblowfish) no longer seem to be provided, not even in EPEL8. So you'll have to install them from CPAN.

How to install GTK+-3.22.7 on fedora 25

I try to install gtk+-3.22.7.tar.gz,but after typing I am getting below error. Request help for same.
./configure result :configure: error: Package requirements (glib-2.0 >= 2.49.4 atk >= 2.15.1 pango >= 1.37.3 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0) were not met:
No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'cairo-gobject' found
No package 'gdk-pixbuf-2.0' found
Consider adjusting the `PKG_CONFIG_PATH` environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
And then I type make but result : make: *** No targets specified and no makefile found. Stop.Anyone Can Help me !!!
Fedora 25 already provides GTK+ 3.22.2, which I believe should be more than enough for what you're trying to do. Just install the -devel package for GTK+ 3: gtk3-devel-3.22.2 using the DNF package manager.
See also this Fedora developper guideline for GTK+.
To search:
$ dnf search gtk3*
To install:
$ sudo dnf install gtk3-devel
Just run this command:
sudo dnf install gtk3-devel

How can I install the perl-RRD-Simple package on CentOS 7?

I'm trying to install TSung on CentOS 7, but I'm having trouble installing the dependencies.
When I tried to install perl-RRD-Simple.noarch, yum shows no package available. So I downloaded an RPM file and did:
rpm -ivh perl-RRD-Simple-1.43-1.el5.rf.noarch.rpm
But I got an error:
error: Failed dependencies:
perl(RRDs) is needed by perl-RRD-Simple-1.43-1.el5.rf.noarch
How can I install the perl-RRD-Simple package? RRDtool is already installed.
RRD::Simple depends on RRDs.pm, the Perl bindings for RRDtool. RRDs.pm is in the rrdtool-perl package; on CentOS 7, rrdtool-perl is in the base repo, so you can just do:
yum install rrdtool-perl
You'll also need to find a different perl-RRD-Simple RPM, since perl-RRD-Simple-1.43-1.el5.rf.noarch.rpm is for EL5. The only one I can find for EL7 is here.
Alternatively, you can build your own RPM.

Which missing library results in the message '/usr/bin/ld: cannot find -lglib-2.0'?

I am cross compiling a Lazarus program, creating a 32bit program on a 64bit Ubuntu 14.04 Trusty Tahr system, and everything apparently compiles to the very end when I get this messsage
/usr/bin/ld: cannot find -lglib-2.0
What is the full name of the library whose absence results in this error mesage?
libc6-dev:i386 appears to be the most likely library, but when I try to install it with apt indicates build-essential g++ gcc gcc-multilib will be removed so I abort it.
sudo apt-get install libc6-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-libc-dev linux-libc-dev:i386
Suggested packages:
glibc-doc:i386 manpages-dev:i386
Recommended packages:
gcc:i386 c-compiler:i386
The following packages will be REMOVED
build-essential g++ gcc gcc-multilib
The following NEW packages will be installed
libc6-dev:i386 linux-libc-dev:i386
The following packages will be upgraded:
linux-libc-dev
1 to upgrade, 2 to newly install, 4 to remove and 18 not to upgrade.
Need to get 3,126 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
It turns out it was the libglib2.0-0:i386 package. It was already installed earlier, but it had not been fully configured.
It was present in the /lib/i386-linux directory and I had to create a symlink to it include it to the fpc.cfg configuration file used by Free Pascal.
locate libglib | grep ^/lib produced:
/lib/i386-linux-gnu/libglib-2.0.so.0
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4002.0
I symlinked it with the expected name:
ln -s /lib/i386-linux-gnu/libglib-2.0.so.0 /lib/i386-linux-gnu/libglib-2.0.so
then added to the Lazarus installations fpc.cfg file
#ifdef cpui386
-Fl/usr/lib32
-Fl/lib/i386-linux-gnu
#endif

How can I install XML::LibXML on Ubuntu

Here is the stdout for install:
$sudo cpanm XML::LibXML
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0014.tar.gz ... OK
Configuring XML-LibXML-2.0014 ... N/A
! Configure failed for XML-LibXML-2.0014. See /home/kahmed/.cpanm/build.log for details.
details:
Unpacking XML-LibXML-2.0014.tar.gz
Entering XML-LibXML-2.0014
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring XML-LibXML-2.0014
Running Makefile.PL
enable native perl UTF8
running xml2-config...ok (2.9.0)
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0014. See /home/kahmed/.cpanm/build.log for details.
i tried installing libxml2 manually, but still getting the same issue.
also, i checked for libxml2-dev:
sudo apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
here is the system info:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
uname -a
Linux autobot 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
I think the relevant line is:
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
So, you've covered off libxml. Have you installed the appropriate zlib package? Try:
sudo apt-get install zlib1g-dev
Then try installing XML::LibXML again.
Why do you want to use CPAN for this anyway? It is typically very bad idea to install CPAN packages if you have native packages provided by standard operating system installer.
Ubuntu provides a lot of Perl packages natively, with following naming convention: package name always starts with lib, then Perl package name like XML::LibXML is converted to lower case and :: replaced to dash - (XML::LibXML => xml-libxml), and finally -perl suffix is added. In other words, native package name for XML::LibXML would be libxml-libxml-perl.
So, in your case, you simply run this command and it will pull all necessary dependencies automatically:
sudo apt-get install libxml-libxml-perl
If you don't like this package for any reason you can uninstall it with sudo apt-get remove. If you use CPAN, it is very difficult to uninstall it reliably.
Overlooked the obvious:
sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev
then:
sudo cpanm XML::LibXML
works!
Maybe this is new version. I did:
sudo apt-get install libxml2-dev
After this module builded and installed successfully