pkg-config

Questions about applications and software
Forum rules
Before you post please read how to get help

pkg-config

Postby amateur on Thu Feb 19, 2009 6:21 am

I've noticed that I cannot compile or install any software I download, and I finally figured out the reason; I don't have this thing called pkg-config. I can't figure out how to get it up and running, either. The readme says,

To use pkg-config, do something like the following in your configure.ac

PKG_CHECK_MODULES([GNOME], [gtk > 1.2.8 gnomeui >= 1.2.0])

This puts the neccesary include flags to compile/link something against
libgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags
for linking in $(GNOME_LIBS).

Users can define the PKG_CONFIG environment variable to point at the
right one, or if they cross-compile and have a correctly named pkg-config
(eg. arm-linux-pkg-config) in their PATH that will be used in preference.

Users can also define the GNOME_CFLAGS and GNOME_LIBS environment variables
if they think they know better, pkg-config will not be called if they do
that.


Does somebody care to translate?
amateur
 

Linux Mint is funded by ads and donations.
 

Re: pkg-config

Postby Husse on Sun Feb 22, 2009 3:22 pm

Before I translate - have you installed build-essential?
Code: Select all
apt install build-essential

I don't think you need to do anything about pkg-config in the first place and it's supposed to be there by default
And - if you can't install software from Synaptic or mintInstall (Software manager) there's something seriously wrong with your system
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: pkg-config

Postby educateme on Tue Feb 24, 2009 5:33 pm

I typed that in, and it says everything is fine.
educateme
Level 1
Level 1
 
Posts: 27
Joined: Wed Feb 11, 2009 4:29 am

Re: pkg-config

Postby Fred on Tue Feb 24, 2009 5:50 pm

educateme,

This doesn't answer your question but goes to the bigger question. Why are you, as a new user, trying to compile your own programs. Linux, Mint, has a very good package management system that has literally thousands of programs, vetted to work on your system, to choose from. Downloading programs from a third party and installing them on your system is the Windows way of doing things.

Not using the built-in package management system can create all kinds of conflicts on down the road. Yes, downloading and compiling your own programs is sometimes necessary and desirable, but for a new user it should probably be avoided until you become more familiar with Linux in general.

Just a few random thoughts. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: pkg-config

Postby educateme on Fri Feb 27, 2009 4:45 am

You're right, Fred. I just realized I can download ekiga, openoffice, xine, pretty much anything I need, from the apt-get feature. Who needs to compile anything, anyway?
educateme
Level 1
Level 1
 
Posts: 27
Joined: Wed Feb 11, 2009 4:29 am

Re: pkg-config

Postby Xtigyro on Thu May 07, 2009 4:59 pm

and i have another question... why ekiga is NOT in the list of the packages in the web Portal/Software manager but it is in the package database of apt-get?
Unless we explore, experiment and discover, we are only following the crowd.
User avatar
Xtigyro
Level 1
Level 1
 
Posts: 8
Joined: Thu May 07, 2009 4:45 pm
Location: Sofia, Bulgaria


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 11 guests