LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-12-2018, 09:51 PM   #1
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Rep: Reputation: 0
Question about differences between apt and compile my own


I install qbittorrent using apt-get on my Raspberry Pi running Raspbian stretch. Because the version is old (v3.x). I followed the guide at https://github.com/qbittorrent/qBitt...ian-and-Ubuntu to install v4.x. One thing I have to do is to update LD_LIBRARY_PATH in order for qbittorrent to find libtorrent which I don't have to do when I used apt-get. How does the apt version find the libtorrent it need?
 
Old 06-13-2018, 07:26 AM   #2
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
If you install something using apt you are actually installing a deb file. The deb file was probably created using a tool like dpkg-buildpackage or builddeb. The tools make sure files and other stuff are installed in a "Debian standard location" and in theory they should take care of all the details of ensuring the package works after being installed.

I haven't looked at the qbittorrent code but often code compiled from source will install stuff to a location like /usr/local or some other location that is not a debian standard location and you may have problems finding the shared libraries and other files and so on after installation.

I know from packaging deb files for Bodhi linux that even if one compiles code with the option: --prefix=/usr this does not guarantee all the files will end up in the same location as the same package installed via compiling. Enlightenment any version as well as Moksha (e17 fork) is a good example of this. Compiling these on top of a version installed from a deb file BREAKS things as a result of this "file confusion."

Last edited by rbtylee; 06-14-2018 at 05:59 AM.
 
Old 06-13-2018, 07:40 AM   #3
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
One more thing you may need to run the command sudo ldconfig if you install by source. Deb files will do this automatically for you if needed.
 
Old 06-13-2018, 09:25 AM   #4
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
Thanks. I did run ldconfig as part of the build process.
I found qbittorrent installed with apt-get under /usr/bin but I can't find libtorrent under /usr/lib . Is /usr/lib the default or the default lib directory is somewhere else?
 
Old 06-13-2018, 09:51 AM   #5
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Debian often places stuff like that in

/usr/lib/i386-linux-gnu/
/usr/lib/x86_64-linux-gnu/
/usr/lib/aarch64-linux-gnu/
/usr/lib/arm-linux-gnueabihf/

Depending on your system

Last edited by rbtylee; 06-13-2018 at 10:10 AM.
 
Old 06-13-2018, 09:55 AM   #6
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rbtylee View Post
Debian often places stuff like that in

/usr/lib/i386-linux-gnu/
/usr/lib/x86_64-linux-gnu/
/usr/lib/aarch64-linux-gnu/
/usr/lib/arm-linux-gnueabihf/

Depending in your system
Thanks. Found it under /usr/lib/arm-linux-gnueabihf/
 
Old 06-15-2018, 05:01 PM   #7
milomak
Member
 
Registered: May 2009
Posts: 147

Rep: Reputation: 18
i've run raspbian after having run debian sid for some time.

it is based on debian. but it is quite different.

you should probably also state which pi it is.
 
Old 06-15-2018, 05:14 PM   #8
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by milomak View Post
i've run raspbian after having run debian sid for some time.

it is based on debian. but it is quite different.

you should probably also state which pi it is.
I thought Raspbian Stretch runs on every version of Raspberry Pi incoulding Pi Zero, no?
 
Old 06-16-2018, 01:46 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
"Question about differences between apt and compile my own"
i feel that one important point has not been addressed yet:
if you install any software by compiling it yourself & using the install command, you are circumventing the system's package management.
this nedd not be a problem, but you should consider carefully whether you want (need) to do that. you should also keep in mind (or on a list) the applications you installed that way, because it might help to fix weird errors later on.

the package management is the single biggest piece of magic on any gnu/linux system, and on debian it is 'apt'.
 
Old 06-16-2018, 10:40 AM   #10
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
"Question about differences between apt and compile my own"
i feel that one important point has not been addressed yet:
if you install any software by compiling it yourself & using the install command, you are circumventing the system's package management.
this nedd not be a problem, but you should consider carefully whether you want (need) to do that. you should also keep in mind (or on a list) the applications you installed that way, because it might help to fix weird errors later on.

the package management is the single biggest piece of magic on any gnu/linux system, and on debian it is 'apt'.
For the sake of discussion, what option do I have if I want qbittorrent 4.x but the package maintainer does not update it for stretch? qbittorrent 4 has been built for Debian Buster but not available on Stretch.
https://packages.debian.org/search?k...ll&section=all
 
Old 06-17-2018, 01:21 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by toolbox1234 View Post
For the sake of discussion, what option do I have if I want qbittorrent 4.x but the package maintainer does not update it for stretch? qbittorrent 4 has been built for Debian Buster but not available on Stretch.
https://wiki.debian.org/DontBreakDeb...Stuff_Syndrome
so, for the sake of discussion, the question is:
do you have any real reason to need that newer version?
debian stable is safe as it is, there's no "newer is better" here.
 
  


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
[SOLVED] Academic question - what are differences between module / driver / kernel? Jim232 Linux - Newbie 7 05-03-2018 12:30 AM
[SOLVED] Question: Differences between NoMachine NX 3.5.0 and NX 4? haertig Linux - Software 6 01-10-2014 02:26 PM
question on Lilo and Grub differences cicerone.ali Linux - Desktop 5 09-09-2009 11:49 AM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
Differences between Synaptic and apt-get? Virp00 Debian 3 01-15-2005 05:54 AM

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

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