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 01-20-2022, 03:51 PM   #1
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Rep: Reputation: Disabled
More on dependencies...


Hi everyone

Once again I'm here to ask you something about dependencies.

I am trying to install some programs in my Slackweare, and sometimes this weird thing happens: The program demands one dependencie, but I already have it installed into system. In the actual case, I am trying to install geoclue2, and the only dependencie it needs is the json-glib. I have the json-glib-1.6.6 installed, with is the last version available... but the slackware package manager (I1m using sboui) still asks for the installation or upgrade of it.

What to do?

Thank you in advance.
 
Old 01-20-2022, 03:58 PM   #2
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
I don't use Slackware, and I don't know what geoclue is. But, can you provide more details? How did you install json-glib? If you manually installed, is it possible you're missing a link somewhere? Can you provide any output/errors from your geoclue install attempt?
 
Old 01-20-2022, 04:03 PM   #3
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 340

Rep: Reputation: Disabled
More on dependencies...

Which version of the dependency does Sboui believe is the latest release. If you have a newer release sboui will say you need to upgrade. You would have to ignore that recommendation.
 
Old 01-20-2022, 04:13 PM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
What version of Slackware, (14.2, current?)

Are you installing from a Slackbuild? https://slackbuilds.org/repository/1...earch=geoclue2

if you

Code:
ls /var/log/packages/json*
what do you see?
 
Old 01-20-2022, 04:21 PM   #5
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SlowCoder View Post
I don't use Slackware, and I don't know what geoclue is. But, can you provide more details? How did you install json-glib? If you manually installed, is it possible you're missing a link somewhere? Can you provide any output/errors from your geoclue install attempt?
I installed it manually, from source code. Possibly the problem is missing a link...
 
Old 01-20-2022, 04:23 PM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,468

Rep: Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227Reputation: 4227
Quote:
Originally Posted by slackuser222 View Post
I installed it manually, from source code. Possibly the problem is missing a link...
ponce repo provides a slackbuild for geoclue2

https://cgit.ponce.cc/slackbuilds/pl...stem/geoclue2/
 
Old 01-20-2022, 04:25 PM   #7
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enine View Post
What version of Slackware, (14.2, current?)

Are you installing from a Slackbuild? https://slackbuilds.org/repository/1...earch=geoclue2

if you

Code:
ls /var/log/packages/json*
what do you see?
bash-5.1# ls /var/log/packages/json*
/var/log/packages/json-c-0.15_20200726-x86_64-3
/var/log/packages/json-glib-1.6.6-x86_64-1
bash-5.1#
 
Old 01-20-2022, 04:26 PM   #8
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
ponce repo provides a slackbuild for geoclue2

https://cgit.ponce.cc/slackbuilds/pl...stem/geoclue2/
Nice tip. I'll try it
 
Old 01-20-2022, 04:27 PM   #9
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Edit: ignore this post. New information was posted while working on this reply.

Quote:
Originally Posted by slackuser222 View Post
I installed it manually, from source code. Possibly the problem is missing a link...
I don't use sboui, but I'm guessing it's complaining json-glib isn't installed because you don't have a Slackware package of json-glib installed.

Solution options:
(1) Remove your manually-installed json-glib and install a proper Slackware package (I would presume using sboui to do so).
(2) Tell sboui to ignore the fact that it thinks json-glib isn't installed.

Last edited by drumz; 01-20-2022 at 04:32 PM.
 
Old 01-20-2022, 04:31 PM   #10
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by slackuser222 View Post
bash-5.1# ls /var/log/packages/json*
/var/log/packages/json-c-0.15_20200726-x86_64-3
/var/log/packages/json-glib-1.6.6-x86_64-1
bash-5.1#
Wait, earlier you said you installed json-glib manually from source.

Are you running Slackware 14.2 or Slackware-current? Based on this output it sure looks like you're running Slackware-current, and you have the json-glib Slackware package installed.
 
Old 01-20-2022, 04:40 PM   #11
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Yeah, hold on a sec before you start installing stuff, clarify for us because I first read you used sboui but then you said you build from source, so I'm confused, maybe I'm just not understanding.

To start with, Slackware 14.2 or current?

Which there is nothing wrong with installing from source and/or newer versions, it just takes a little more checking.

Did you build json-glib manually from source, or from a Slackbuild or from sboui?
How are you trying to install geoclue2, manually from source, or from a Slackbuild or from sboui?

Can you copy/paste the exact command your using to (attempt to) install geoclue2?

Basically when software like geoclue2 has a dependency on something else, you have to be careful that whatever library/code/api call/whatever didn't get dropped/replaced/changed in a newer version. You also would need to make sure that geoclue2 knows where to find what its depending on. The person who made the geoclue2 Slackbuild tested it with 1.2.8 so its possible that something has changed/moved in 1.6.6.

Last edited by enine; 01-20-2022 at 04:45 PM.
 
Old 01-20-2022, 04:41 PM   #12
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drumz View Post
Wait, earlier you said you installed json-glib manually from source.

Are you running Slackware 14.2 or Slackware-current? Based on this output it sure looks like you're running Slackware-current, and you have the json-glib Slackware package installed.
Sorry, I wasn't clear about it... in fact, i'm using Slackware-Current. And yes, I do have the json-glib Slackware package installed. But the sboui still asks it as a dependencie for the program I am trying to install... The system had it installed in a previous version, and I manualy updated it.
 
Old 01-20-2022, 04:55 PM   #13
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by slackuser222 View Post
Sorry, I wasn't clear about it... in fact, i'm using Slackware-Current. And yes, I do have the json-glib Slackware package installed. But the sboui still asks it as a dependencie for the program I am trying to install... The system had it installed in a previous version, and I manualy updated it.
Ok, so one small gotcha with -current, you want to check first to make sure what you want isn't already there. Pat will add new packages in occasionally. And this is an example. I'm running current so checking:

Code:
bash-5.1$ cat /etc/slackware-version
Slackware 15.0
bash-5.1$ ls /var/log/packages/json*
/var/log/packages/json-c-0.15_20200726-x86_64-3
/var/log/packages/json-glib-1.6.6-x86_64-1
bash-5.1$
I already have json-glib even though I've never installed it and checking https://packages.slackware.com/?r=sl...6.6-i586-1.txz confirms it.

So what you want to do before installing anything is check to see if Pat already did for you.

So I then search for geoclue2 https://packages.slackware.com/ and its not there.

Since I now know the dependency has been updated that tells me there might be differences that the geoclue build on 14.2 might need updated for. There is a lot of testing getting ready for -current to become 15 so check https://www.linuxquestions.org/quest...ls-4175561999/ and the -current slackbuilds https://github.com/Ponce/slackbuilds...ystem/geoclue2

Notice the .info no longer lists json-glib as a dependency since its already in -current. That should build fine, however I wonder if your manual install could have messed up json-glib, you might have to use slackpkg to reinstall it https://slackpkg.org/documentation.html#usage first if geoclue still won't build.

Also make sure you have Slackpkg and/or sboui pointed at the -current repo

Last edited by enine; 01-20-2022 at 05:01 PM.
 
Old 01-20-2022, 08:08 PM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,491
Blog Entries: 7

Rep: Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581Reputation: 2581
Quote:
Originally Posted by slackuser222 View Post
I installed it manually, from source code. Possibly the problem is missing a link...
Did you run ldconfig after installing it?
 
Old 01-20-2022, 08:10 PM   #15
slackuser222
Member
 
Registered: Jan 2022
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
Did you run ldconfig after installing it?
Nope... Is this always necessary?
 
  


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
Issues with dependencies when installing php70-fpm. I have newer versions of the dependencies installed, but php70-fpm requires older KurtisKewl *BSD 9 05-02-2017 01:23 PM
LXer: More Linux Phones, More Mint Hack & Just Plain More… LXer Syndicated Linux News 0 02-27-2016 09:12 PM
LXer: Google's Knol: More Rules, More Accountability, More Money LXer Syndicated Linux News 0 07-25-2008 04:11 AM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM
More on Mozilla Uninstall Dependencies Spotnik Linux - Software 2 01-29-2004 07:48 PM

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

All times are GMT -5. The time now is 08:25 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