Linux - NewbieThis 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.
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.
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:
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?
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.
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?
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?
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?
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.
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]
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/
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.