LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2017, 07:13 PM   #1
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Rep: Reputation: Disabled
Install System Libraries - Linux


Hello,

I am new to Linux and specifically running it on a Rasberry Pi 3 with Raspbian (Jessie) distro.

I am looking to install an open source PBX called Asterisk. I was reviewing the requirements before installing the main application. I came across this page:

https://wiki.asterisk.org/wiki/displ...stem+Libraries

It refers to the need for installing a number of system libraries using the Package Management System.

After a bit of research, I think the Package Management System is APT (https://en.wikipedia.org/wiki/Advanced_Packaging_Tool) but did not know how to really install these libraries.I found this page (http://raspberrypi.stackexchange.com...l-new-software) which said:

to install use:
sudo apt-get install <what you want to install>

however when I type in 'sudo apt-get install ncurses' - it gives me a message I dont really understand and for the ones that do something like 'sudo apt-get install openssl' I am not sure what it is doing.

Could someone give me some more information to help me understand this?

Thanks,

Harry
 
Old 01-31-2017, 08:02 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
In order to install the necessary libraries and or the dependencies that "Asterisk" requires you will have to pretty much install what the terminal is telling you.
APT will continue to complain until you have satisfied all dependencies.

First install all of the dependencies/libraries that Asterisk requires than you can install Asterisk.

In an effort to help you we would need to see and read the output of the command you are executing.
-::-Please post that output so we can look at it and advise you.-::-

Copy and paste what's in the terminal and put it in {CODE TAGS}.
The [code tags] are made possible by clicking the # (pound sign) above the message box that you type us your message.
To paste the output place your cursor in between the tags, right click and paste.
 
Old 01-31-2017, 08:03 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
This is a good tutorial for installing Asterisk:-

https://www.howtoforge.com/tutorial/...isk-on-debian/

Here's the actual pkg Asterisk:
https://packages.debian.org/jessie/asterisk

Last edited by Ztcoracat; 01-31-2017 at 08:33 PM.
 
1 members found this post helpful.
Old 02-01-2017, 06:17 AM   #4
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Ztcoracat - thanks for the reply, links and info. I will look at the links and also try to continue with the install of the libraries. I'll post back as your suggest any errors I get. Is there a way to confirm if an installation of a library was successful?
 
Old 02-01-2017, 03:10 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
You're Welcome:-

Quote:
Is there a way to confirm if an installation of a library was successful?
Yeah, you can use the dpkg command with the -L flag to see if the libraries are installed. Like this; for example if the library was called 'bluezip'.

Code:
dpkg -L bluezip
 
Old 02-11-2017, 03:04 PM   #6
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Ztcoracat,

Thanks for the above - I tried to install a library (required by Asterisk) and check it was installed using the approach mentioned - this is what I see.

Code:
pi@raspberrypi:~ $ sudo apt-get install DAHDI
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dahdi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
pi@raspberrypi:~ $ dpkg -l DAHDI
dpkg-query: no packages found matching DAHDI
It looks like it does not install because it is already installed and then when I check it is installed it says there is no matching package?
 
Old 02-11-2017, 03:08 PM   #7
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
I also tried libspeex and see this - I think this has a problem too with the install, but it did find it?

[CODE]
pi@raspberrypi:~ $ sudo apt-get install libspeex
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libspeex
[\CODE]
 
Old 02-11-2017, 03:15 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
dahdi is already the newest version
It's already installed per that output. Running a check for DAHDI is not the same as dahdi, case sensitivity applies.
 
Old 02-11-2017, 03:28 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Have you seen this? You can download a complete image for the Pi.

http://www.raspberry-asterisk.org/
 
Old 02-11-2017, 03:51 PM   #10
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi michaelk - thanks for the link, I did know about the Project, however I was trying to use this Project to learn more about Linux and the basics.

Hi yancek - I understand DADHI and dadhi are not the same. Asterisk say the correct library needed is DADHI - why would dpkg -l DAHDI not confirm it is install/there?
 
Old 02-11-2017, 07:24 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by gisvpn View Post
Hi michaelk - thanks for the link, I did know about the Project, however I was trying to use this Project to learn more about Linux and the basics.

Hi yancek - I understand DADHI and dadhi are not the same. Asterisk say the correct library needed is DADHI - why would dpkg -l DAHDI not confirm it is install/there?
It's dpkg -L (capital L not small letter l)

Anytime that the shell returns:
Code:
already the newest version
it's complete confirmation that the pkg is already installed.
 
Old 02-11-2017, 07:36 PM   #12
gisvpn
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Ztcoracat - thanks; I will try with -L instead

thanks for the confirmation that when it says already the latest version, it means it is installed and there are no updates - what got me is I had not installed the library so was not expecting it to be already installed; must have been included in the distribution I used.

Were you able to help with this too - was not sure what it means

[CODE]
pi@raspberrypi:~ $ sudo apt-get install libspeex
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libspeex
[\CODE]
 
Old 02-11-2017, 09:35 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by gisvpn View Post
Hi Ztcoracat - thanks; I will try with -L instead

thanks for the confirmation that when it says already the latest version, it means it is installed and there are no updates - what got me is I had not installed the library so was not expecting it to be already installed; must have been included in the distribution I used.

Were you able to help with this too - was not sure what it means

[CODE]
pi@raspberrypi:~ $ sudo apt-get install libspeex
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libspeex
[\CODE]
You're Welcome-

This:
Code:
Unable to locate package libspeex
means that the package/library libspeex is not in the repo's.

Opus is better than Speex in all aspects, users are encouraged to switch—
https://speex.org/

Look here:
https://packages.debian.org/search?s...keywords=speex

It's the second one in the list "speex_1.2~rc1.2.orig.tar.gz"
https://packages.debian.org/source/jessie/speex

Last edited by Ztcoracat; 02-11-2017 at 09:42 PM.
 
Old 02-11-2017, 09:57 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Raspian is a distribution based upon debian optimized for the Raspberry Pi hardware which is an ARM device. Which makes installing Asterisk from source more difficult then a regular PC. The Ubuntu armhf is compatible with the Pi but can not say if the Ubuntu packages are compatible with Raspian.
 
Old 02-11-2017, 11:13 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by michaelk View Post
Raspian is a distribution based upon debian optimized for the Raspberry Pi hardware which is an ARM device. Which makes installing Asterisk from source more difficult then a regular PC. The Ubuntu armhf is compatible with the Pi but can not say if the Ubuntu packages are compatible with Raspian.
I see:-

If you don't mind me asking what is it that would make installing Asterisk from src more difficult?
 
  


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
LXer: Install Kodi, VLC and multimedia libraries on Fedora 25 Linux LXer Syndicated Linux News 1 12-18-2016 01:45 AM
How to Install a non-system-level binary blob as a fake linux system without VM Find Linux - Software 3 09-11-2014 08:08 PM
Is it possible to install 32-bit libraries on a 64-bit system? CamTheSaxMan Linux - Newbie 5 01-11-2014 04:48 PM
how to install x11 libraries on Red- hat Linux? anshika_sonal Linux - Newbie 6 11-12-2010 02:58 AM
How does the system know where libraries are? paulclark Linux - Newbie 4 02-07-2009 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 AM.

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