ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, not sure what is the problem but my GDB is complaining about some packages as not being available when they are in fact installed. Can someone please take a look at the following and provide some suggestions?
GDB complaining about certain packages not available
Code:
# gdb ./dist/Debug/GNU-Linux-x86/cppcode-test
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /appvol/NetBeansProjects/test/cppcode-test/dist/Debug/GNU-Linux-x86/cppcode-test...done.
(gdb) run
Starting program: /appvol/NetBeansProjects/test/cppcode-test/dist/Debug/GNU-Linux-x86/cppcode-test
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff74ae700 (LWP 3991)]
[Thread 0x7ffff74ae700 (LWP 3991) exited]
Program exited with code 01.
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
(gdb)
Trying to install as per GDB's instruction
Code:
# debuginfo-install glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12 .9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.01link.hk
* extras: centos.01link.hk
* updates: centos.01link.hk
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 4.1 MB 00:11
Checking for new repos for mirrors
Could not find debuginfo for main pkg: glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo for main pkg: libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo for main pkg: libstdc++-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.4.6-3.el6.x86_64
Could not find debuginfo for main pkg: nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
No debuginfo packages available to install
Yum also indicated the packages are already installed
Code:
# yum info glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.01link.hk
* extras: centos.01link.hk
* updates: centos.01link.hk
Installed Packages
Name : glibc
Arch : x86_64
Version : 2.12
Release : 1.47.el6
Size : 12 M
Repo : installed
From repo : base
Summary : The GNU libc libraries
URL : http://sources.redhat.com/glibc/
License : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Description: The glibc package contains standard libraries which are used by
: multiple programs on the system. In order to save disk space and
: memory, as well as to make upgrading easier, common system code is
: kept in one place and shared between programs. This particular package
: contains the most important sets of shared libraries: the standard C
: library and the standard math library. Without these two libraries, a
: Linux system will not function.
Name : libgcc
Arch : x86_64
Version : 4.4.6
Release : 3.el6
Size : 114 k
Repo : installed
From repo : base
Summary : GCC version 4.4 shared support library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: This package contains GCC shared support library which is needed
: e.g. for exception handling support.
Name : libstdc++
Arch : x86_64
Version : 4.4.6
Release : 3.el6
Size : 964 k
Repo : installed
From repo : base
Summary : GNU Standard C++ Library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: The libstdc++ package contains a rewritten standard compliant GCC Standard
: C++ Library.
Name : nss-softokn-freebl
Arch : x86_64
Version : 3.12.9
Release : 11.el6
Size : 375 k
Repo : installed
From repo : base
Summary : Freebl library for the Network Security Services
URL : http://www.mozilla.org/projects/security/pki/nss/
License : MPLv1.1 or GPLv2+ or LGPLv2+
Description: NSS Softoken Cryptographic Module Freelb Library
:
: Install the nss-softokn-freebl package if you need the freebl
: library.
knudfl, sorry but have absolutely no clue what you are trying to say. Can you please elaborate.
NevemTeve, is there a proper way to install gdb without having to compile from sources?
Hi, just checked on my box and it does have the debug repo listed. And as described in the original post, Yum believes all the required packages were installed also (shown also again below). Any other things I can check?
Code:
# cat CentOS-Debuginfo.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# All debug packages from all the various CentOS-5 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#
[debug]
name=CentOS-6 - Debuginfo
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
enabled=0
Code:
# yum info glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.01link.hk
* extras: centos.01link.hk
* updates: centos.01link.hk
Installed Packages
Name : glibc
Arch : x86_64
Version : 2.12
Release : 1.47.el6
Size : 12 M
Repo : installed
From repo : base
Summary : The GNU libc libraries
URL : http://sources.redhat.com/glibc/
License : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Description: The glibc package contains standard libraries which are used by
: multiple programs on the system. In order to save disk space and
: memory, as well as to make upgrading easier, common system code is
: kept in one place and shared between programs. This particular package
: contains the most important sets of shared libraries: the standard C
: library and the standard math library. Without these two libraries, a
: Linux system will not function.
Name : libgcc
Arch : x86_64
Version : 4.4.6
Release : 3.el6
Size : 114 k
Repo : installed
From repo : base
Summary : GCC version 4.4 shared support library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: This package contains GCC shared support library which is needed
: e.g. for exception handling support.
Name : libstdc++
Arch : x86_64
Version : 4.4.6
Release : 3.el6
Size : 964 k
Repo : installed
From repo : base
Summary : GNU Standard C++ Library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: The libstdc++ package contains a rewritten standard compliant GCC Standard
: C++ Library.
Name : nss-softokn-freebl
Arch : x86_64
Version : 3.12.9
Release : 11.el6
Size : 375 k
Repo : installed
From repo : base
Summary : Freebl library for the Network Security Services
URL : http://www.mozilla.org/projects/security/pki/nss/
License : MPLv1.1 or GPLv2+ or LGPLv2+
Description: NSS Softoken Cryptographic Module Freelb Library
:
: Install the nss-softokn-freebl package if you need the freebl
: library.
I just ran into this exact problem and wanted to post a quick update for other newbies such as myself. The answer is here, but I needed to do a little extrapolation to come to the solution.
As shown in the original post, calling debuginfo-install glibc-2.12-1.149.el6_6.5.x86_64 resulted in an initial error starting with "Could not find debuginfo for main pkg" followed by bunch of errors starting with "Could not find debuginfo pkg for dependency package".
In my case anyway, the file /etc/yum.repos.d/CentOS-Debuginfo.repo didn't exist. I'm not sure if that is to be expected, but I couldn't find the file anywhere. Finally, I created the file myself, pasted in the content as shown in the example and changed "enabled=0" to "enabled=1". Running yum update after saving this file didn't give me what the debug info I wanted, but when I ran "debuginfo-install glibc-2.12-1.149.el6_6.5.x86_64" again it worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.