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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-31-2017, 08:13 PM
|
#1
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Rep:
|
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
|
|
|
01-31-2017, 09:02 PM
|
#2
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
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.
|
|
|
01-31-2017, 09:03 PM
|
#3
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Last edited by Ztcoracat; 01-31-2017 at 09:33 PM.
|
|
1 members found this post helpful.
|
02-01-2017, 07:17 AM
|
#4
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
02-01-2017, 04:10 PM
|
#5
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
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'.
|
|
|
02-11-2017, 04:04 PM
|
#6
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
02-11-2017, 04:08 PM
|
#7
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Original Poster
Rep:
|
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]
|
|
|
02-11-2017, 04:15 PM
|
#8
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,154
|
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.
|
|
|
02-11-2017, 04:51 PM
|
#10
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
02-11-2017, 08:24 PM
|
#11
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
Originally Posted by gisvpn
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.
|
|
|
02-11-2017, 08:36 PM
|
#12
|
LQ Newbie
Registered: Jan 2017
Posts: 6
Original Poster
Rep:
|
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]
|
|
|
02-11-2017, 10:35 PM
|
#13
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
Originally Posted by gisvpn
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 10:42 PM.
|
|
|
02-11-2017, 10:57 PM
|
#14
|
Moderator
Registered: Aug 2002
Posts: 26,448
|
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.
|
|
|
02-12-2017, 12:13 AM
|
#15
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
Originally Posted by michaelk
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 11:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|