LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-27-2011, 12:27 PM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Rep: Reputation: 24
compiling from source, make error


Slackware 13.37
Compiling 2 apps from source this morning. Both failed with essentially the same error
Quote:
checking for libsigc... configure: error: Package requirements (sigc++-2.0) were not met:

No package 'sigc++-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 libsigc_CFLAGS
and libsigc_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
3 questions:
1. Is there any particular reason why it does not recommend simply installing 'sigc++-2.0'?
2. What is a "non-standard prefix" with reference to PKG_CONFIG_PATH? When installing software I always use the default paths set by slackware.
3. Neither libsigc_CFLAGS nor libsigc_LIBS are mentioned in "man pkg-config", and even if they were, do I really want "to avoid the need to call pkg-config"? There would seem to be a whole lot of unstated consequences to such an action.
 
Old 10-27-2011, 12:34 PM   #2
bruinshockey
Member
 
Registered: Dec 2010
Location: Chilliwack, BC
Distribution: Slackware 14.1 64 Bit
Posts: 34

Rep: Reputation: 10
Slack doesn't work that way. It leaves it up to you to resolve your dependencies. You will need to install sigc++ either from compiling from source, or through sbopkg by searching for libsigc.
 
Old 10-27-2011, 12:46 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
http://slackbuilds.org/repository/13...ies/libsigc++/

Slackbuilds.org should your first port of call to look for dependencies.
 
1 members found this post helpful.
Old 10-27-2011, 01:11 PM   #4
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Thank you for your responses, but I really wanted answers to the 3 questions I asked.
Quote:
checking for libsigc... configure: error: Package requirements (sigc++-2.0) were not met:

No package 'sigc++-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 libsigc_CFLAGS
and libsigc_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


3 questions:
1. Is there any particular reason why it does not recommend simply installing 'sigc++-2.0'?
2. What is a "non-standard prefix" with reference to PKG_CONFIG_PATH? When installing software I always use the default paths set by slackware.
3. Neither libsigc_CFLAGS nor libsigc_LIBS are mentioned in "man pkg-config", and even if they were, do I really want "to avoid the need to call pkg-config"? There would seem to be a whole lot of unstated consequences to such an action.
 
Old 10-27-2011, 01:26 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
1) That would be up to the developers of the source code. Sometimes you get a message and on rare occasions a link to the dep's website. Sometimes the README or INSTALL file have that info too. A lot of the time though, we are left in the dark until an error pops up like yours above.

2) Well you can install software anywhere, but what it is suggesting is if that is the case then you need to point that out during the configure or via PKG_CONFIG_PATH variable. It's a pretty standard message to get now. It means basically that it can't find sigc++ in the places that pkg-config knows about.

3) If I understand you correctly, usually make will call pkg-config during the compile anyway. If there are problems you may want to have a look yourself to see exactly what it's outputting. I've had problems when make doesn't seem to get the correct info (or doesn't even use pkg-config) and I've had to add a -I or -l in the CFLAGS of a slackbuild manually.

Last edited by dive; 10-27-2011 at 01:27 PM.
 
2 members found this post helpful.
Old 10-27-2011, 02:02 PM   #6
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by dive View Post
1) That would be up to the developers of the source code. Sometimes you get a message and on rare occasions a link to the dep's website. Sometimes the README or INSTALL file have that info too. A lot of the time though, we are left in the dark until an error pops up like yours above.

2) Well you can install software anywhere, but what it is suggesting is if that is the case then you need to point that out during the configure or via PKG_CONFIG_PATH variable. It's a pretty standard message to get now. It means basically that it can't find sigc++ in the places that pkg-config knows about.

3) If I understand you correctly, usually make will call pkg-config during the compile anyway. If there are problems you may want to have a look yourself to see exactly what it's outputting. I've had problems when make doesn't seem to get the correct info (or doesn't even use pkg-config) and I've had to add a -I or -l in the CFLAGS of a slackbuild manually.
Many thanks. Not being a programmer I have only the vaguest notion of what goes on in
./configure
make
make install
Which is fine when the process goes without a hitch. But when it doesn't, the information given by the process is often obscure.
 
Old 07-24-2012, 11:18 PM   #7
slugman
Member
 
Registered: Jun 2010
Location: AZ
Distribution: Slackware
Posts: 106

Rep: Reputation: 1
Quote:
http://slackbuilds.org/repository/13...ies/libsigc++/

Slackbuilds.org should your first port of call to look for dependencies.
Thanks Dive.

However, per the slackbuilds.org guidelines, I believe that any dependencies that a slackbuild requires are supposed to be mentioned in the package descriptions requirements.

Although libtorrent is mentioned, libsig++ is not. (Its a keyword, but it should be listed on the bottom along the requirements.)

Last edited by slugman; 07-24-2012 at 11:19 PM.
 
Old 07-25-2012, 03:00 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
1. 'why it does not recommend...': Package requirements (sigc++-2.0) were not met
2. Standard prefix would be either /usr/local or /usr. pkg-config will only look there unless you tell it to look elsewhere by setting PKG_CONFIG_PATH.
3. Neither libsigc_CFLAGS nor libsigc_LIBS are mentioned ... The installation of libsigc++ will install the libsigc++.pc file which pkg-config then finds when trying to compile something which requires libsigc++ and thereby set libsigc_CFLAGS and libsigc_LIBS.
 
  


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
make: *** [all] Error 2 ? Need Help compiling DOSBOX source code! d3vi4nt Linux - Software 7 01-08-2010 12:41 AM
how to make bind-9.6.01 work after compiling from source code win281 Linux - Newbie 2 05-11-2009 04:33 PM
compiling from source problems (make) Thane Ubuntu 5 09-10-2007 02:28 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:37 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
Open Source Consulting | Domain Registration