LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2013, 01:49 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
yum install problem


Hi ,

I tried to use yum to install package "pkg-config" but fail , I am wonder the package "pkg-config" is common that should be available to install ( except this package , I also found other package is not available to install ) , could advise why I can not find it by yum ? except download it from http web page ( eg. rpmfind ) how to install it ? do I need to re-config the yum setting ? thanks



yum install pkg-config
Loaded plugins: downloadonly, rhnplugin, security
Setting up Install Process
No package pkg-config available.
Nothing to do
 
Old 12-16-2013, 02:05 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Try

Yum */provides pkg-config

If there is a package containing the command, that should how the correct package.
 
Old 12-16-2013, 02:27 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
Try

Yum */provides pkg-config

If there is a package containing the command, that should how the correct package.

thanks reply ,

I tried yum */provides pkg-config , but it seems not have this parameter , could advise if this command is correct ? thanks
 
Old 12-16-2013, 02:46 AM   #4
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
Try
PHP Code:
yum provides */pkg-config 
 
Old 12-16-2013, 03:05 AM   #5
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Glennzo View Post
Try
PHP Code:
yum provides */pkg-config 
thx reply ,

it tried many sites but still can not installed , the error is as below.


HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/04beb06960588ca2774ec666e566ce1344122443-filelists.sqlite.bz2 from epel: [Errno 256] No more mirrors to try
 
Old 12-16-2013, 03:36 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by byran cheung View Post
thx reply ,

it tried many sites but still can not installed , the error is as below.


HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/04beb06960588ca2774ec666e566ce1344122443-filelists.sqlite.bz2 from epel: [Errno 256] No more mirrors to try
The package is named pkgconfig. Try yum install pkgconfig.

The above error message indicates that something is wrong with your repository configuration, so that yum install is unlikely to work either.
What Linux distro and version are you using?
 
Old 12-16-2013, 03:39 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
the machine is connected to the internet?

or check out this link:
http://www.kodkast.com/linux-package...?pkg=pkgconfig
 
Old 12-16-2013, 04:19 AM   #8
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
The package is named pkgconfig. Try yum install pkgconfig.

The above error message indicates that something is wrong with your repository configuration, so that yum install is unlikely to work either.
What Linux distro and version are you using?

thanks it works
 
Old 12-16-2013, 04:20 AM   #9
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Another question , if it asks to install prerequisites when yum package , how to automatically install prerequisites ? thanks
 
Old 12-16-2013, 07:46 AM   #10
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by Glennzo View Post
Try
PHP Code:
yum provides */pkg-config 
Damn do i feel stupid now for putting the */ in the wrong spot!!!
 
Old 12-16-2013, 05:09 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by byran cheung View Post
Another question , if it asks to install prerequisites when yum package , how to automatically install prerequisites ? thanks
yum does install prerequisites automatically if they are available in one of the configured repos. If it doesn't, it's because it can't find the prerequisites.

In such a case you have to figure out where the required package is and install it manually, or add the repository that has it to your configuration.
 
Old 12-16-2013, 07:04 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
almost everything is going to be missing if you only install package config by it's self
"yum " so guessing this is ???????
RHEL 6.5
RHEL 5.10
CentOS 6.5
CentOS 5.10
SL 6.4
SL 5.10
or
Fedora 18
fedora 19
fedora 20 -testing

or did you install yum on suse and bypass zypper ?

pkgconfig is part of the development group as part of autotools

the best way to install it is to install EVERYTHING it is going to NEED also
Code:
su -
yum groupinstall "Development Tools"
for a list of installable software groups
see:
Code:
su -
yum grouplist
 
Old 12-17-2013, 02:39 AM   #13
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
yum does install prerequisites automatically if they are available in one of the configured repos. If it doesn't, it's because it can't find the prerequisites.

In such a case you have to figure out where the required package is and install it manually, or add the repository that has it to your configuration.
thanks reply , if it can't find the prerequisites , is it because the server point to wrong web site ? do I need to re-config the yum setting ? thanks
 
Old 12-17-2013, 02:51 AM   #14
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by byran cheung View Post
thanks reply , if it can't find the prerequisites , is it because the server point to wrong web site ? do I need to re-config the yum setting ? thanks
There are more reasons than I can imagine. One needs to check error messages in such a case.
 
Old 12-17-2013, 02:59 AM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
thanks reply , if it can't find the prerequisites
see :
Code:
su -
yum groupinstall "Development Tools"
that will install everything needed by gcc including "auto tools"
and "pkgconfig" is part of auto tools .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install lib getting fails yum install lib* leads to install 1050 dependency pkg LittleMaster Linux - Server 3 10-29-2012 01:14 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum Install flvtool2 (and ruby install) Problem athomas Linux - Server 1 10-01-2009 06:04 PM
Yum install problem. Syn1ster Linux - Newbie 4 12-14-2008 03:43 PM
yum install problem lin_myworld Fedora 1 03-16-2008 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration