LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2010, 07:51 AM   #1
damonx
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
How to add libraries?


Just curious how you can add libraries to /lib from the command line. My box just has a server distribution on it, so I obviously can't use synaptic. I downloaded a .tar.gz file for the libraries I need, and I assumed that you would use dpkg -i <packagename.tar.gz> but that doesn't seem to work.

Last edited by damonx; 06-10-2010 at 06:59 PM.
 
Old 06-10-2010, 08:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
A server distribution? Why would that stop you using synaptic??

You could start by actually describing your system and what you're actually trying to achieve. Describing anything as "Adding things to /lib" is a very odd way to describe it. What libraries do you want to install on what distribution?
 
Old 06-10-2010, 08:06 AM   #3
damonx
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Oh, I thought synaptic was part of gnome. Don't mind me, I obviously haven't been using Linux for that long.

My system is running Ubuntu 9.10, and at the moment it's functioning as a VPN server and samba server. I'm trying install a program called bandwidthd, which monitors bandwidth usage per IP. The program requires libcap, libpng, and libgd. (According to this tut: http://infodotnet.blogspot.com/2008/...hd-per-ip.html)
 
Old 06-10-2010, 08:06 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What you have downloaded is a file that contains source and needs to be compiled. If by 'server distribution' you mean that you don't have a GUI installed and do all your work on a console then you can always turn to other options to install packages. I assume you are using Debian or a Debian-based distro. If that's the case then you can use apt or aptitude to install packages from the repositories if those are set up correctly in /etc/apt/sources.list. It works like this:
Code:
apt-get update
apt-get install packagename
apt-get remove packagename
and takes care of all dependencies. Aptitude is the ncurses based GUI you can use on a console.

You referred to dpkg, that's used to install *.deb packages you download from the web, like this:
Code:
dpkg -i packagename.deb
Kind regards,

Eric

Last edited by EricTRA; 06-10-2010 at 08:07 AM.
 
Old 06-10-2010, 09:27 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yep, bandwidthd is in the ubuntu repos, so "aptitude install bandwidthd" will get you where you want to be, with all libraries covered. Of those three though, only libpcap wouldn't already be there for sure.
 
  


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
Static libraries vs shared Libraries catallergy Linux - Newbie 2 03-16-2010 01:30 PM
Need to add correct paths for './configure' to find X libraries. GTrax Linux - Software 7 10-12-2009 04:31 AM
how to add external jars, Java program with Reference Libraries yuubouna Linux - Newbie 3 11-30-2008 09:19 PM
What's package daemon that add to /etc/fstab when you add USB sticks frenchn00b Linux - General 3 01-20-2008 08:30 PM
How to add boost libraries to gcc include list kiku Linux - Newbie 1 03-04-2005 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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