LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02: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, 03:05 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 656

Rep: Reputation: 121Reputation: 121
Try

Yum */provides pkg-config

If there is a package containing the command, that should how the correct package.
 
Old 12-16-2013, 03: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, 03:46 AM   #4
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
Try
PHP Code:
yum provides */pkg-config 
 
Old 12-16-2013, 04: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, 04:36 AM   #6
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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, 04:39 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

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

or check out this link:
http://www.kodkast.com/linux-package...?pkg=pkgconfig
 
Old 12-16-2013, 05: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, 05: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, 08:46 AM   #10
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 656

Rep: Reputation: 121Reputation: 121
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, 06:09 PM   #11
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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, 08:04 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 03: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, 03:51 AM   #14
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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, 03:59 AM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:14 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum Install flvtool2 (and ruby install) Problem athomas Linux - Server 1 10-01-2009 07:04 PM
Yum install problem. Syn1ster Linux - Newbie 4 12-14-2008 04:43 PM
yum install problem lin_myworld Fedora 1 03-16-2008 03:30 PM


All times are GMT -5. The time now is 06:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration