LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install System Libraries - Linux (https://www.linuxquestions.org/questions/linux-newbie-8/install-system-libraries-linux-4175598674/)

gisvpn 01-31-2017 07:13 PM

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

Ztcoracat 01-31-2017 08:02 PM

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.

Ztcoracat 01-31-2017 08:03 PM

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

gisvpn 02-01-2017 06:17 AM

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?

Ztcoracat 02-01-2017 03:10 PM

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

gisvpn 02-11-2017 03:04 PM

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?

gisvpn 02-11-2017 03:08 PM

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]

yancek 02-11-2017 03:15 PM

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.

michaelk 02-11-2017 03:28 PM

Have you seen this? You can download a complete image for the Pi.

http://www.raspberry-asterisk.org/

gisvpn 02-11-2017 03:51 PM

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?

Ztcoracat 02-11-2017 07:24 PM

Quote:

Originally Posted by gisvpn (Post 5669071)
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.;)

gisvpn 02-11-2017 07:36 PM

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]

Ztcoracat 02-11-2017 09:35 PM

Quote:

Originally Posted by gisvpn (Post 5669158)
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

michaelk 02-11-2017 09:57 PM

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.

Ztcoracat 02-11-2017 11:13 PM

Quote:

Originally Posted by michaelk (Post 5669222)
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?


All times are GMT -5. The time now is 03:11 PM.