asterisk 11 installation in ubuntu 14.04 - installation

I am trying to install Asterisk 11 in Ubuntu 14.04 by following http://blogs.digium.com/2012/11/14/how-to-install-asterisk-11-on-ubuntu-12-4-lts/.
I am getting following error:-
READ THIS OR YOUR BUILD WILL FAIL format_mp3.o
format_mp3.c:39:24: fatal error: mp3/mpg123.h: No such file or directory
compilation terminated.
make[2]: *** [format_mp3.o] Error 1
make[1]: *** [addons] Error 2

You need to run the script to generate those libs:
./contrib/scripts/get_mp3_source.sh

First of all there are numerous dependency changes between Ubuntu 14.04 and Ubuntu 12.04. There are several options in the build interface for asterisk and understanding how they interact is key to getting a good working environment when building from source.
If you're looking to get asterisk up and running so that you can work with it I highly recommend just installing from apt-get. I have several systems in limited production roles. They are running on VMs that perform without issue or complaint. It is not necessary to build from source to run asterisk 11 on Ubuntu 14.04. Asterisk 11 is the default version in the REPO. There are plenty of add-ons that install via apt-get as well.
Just run:
sudo apt-cache search asterisk
For a quick list
I'm aware that this is not a complete answer to your question, but it would provide you with a working asterisk environment in about 30 minutes.
If you do have a reason or situation where in you absolutely must install Asterisk from sources, please provide more detailed information about how closely you followed this guide. Following it to the letter is simply not possible due to library and other changes in Ubuntu.
This guide from FreePBX includes complete working instructions for building Asterisk 11 on Ubuntu 14.04. You will need to allow for changes if you do not want to use the FreePBX GUI.
For beginners I highly recommend AsteriskNow or FreePBX. Be aware that Schmoozecom the company behind FreePBX is now doing development and support for AsteriskNow. This isn't a problem per say, but ...

#Klemorai 's answer worked for me. (I don't have the points to comment on h/er post)
This is what i did
sudo apt-get update && sudo apt-get upgrade and sudo reboot
sudo apt-get install asterisk dahdi asterisk-mp3
sudo apt-get install yate-qt4

Related

pgadmin3 install on CentOS7

I am using CentOS7 and PostgreSQL-13. As it is very difficult to work database-related queries in the command line I want to install pgadmin3. Aas it is available on the yum repository and in my CentOS, I do not have any internet connection. So I have installed pgadmin3 with the following installation command only: yum install pgadmin3.
I have seen in some tutorials they modified the sudo /usr/pgadmin4/bin/setup-web.sh file. But I did not find such a file in my CentOS machine after pgadmin3 installation. Now I have no idea how to configure it with my already installed PostgreSQL-13 and httpd and how I can use this. I have not found any documentation regarding this.
PostgreSQL-13 not supported for pgadmin3, you must install pgadmin4

apt in Linux Subsystem for Windows 10 is failing with 404 Not Found

OK, so this is my first SO question so I'm gonna try my best to lay this out.
I have a Windows 10 laptop on which I am trying to install gcc. I have in the past tried alternatives such as netbeans, cygwin and various emulators and virtual machines all to no avail.
What has been working so far is that I enabled the 'new' windows developer mode which allowed me to download a Linux bash shell from the windows store. It works for all the regular Linux commands, but doesn't have gcc installed.
When I type in gcc (or gcc --version) in the shell, it prints the following line:
The program 'gcc' is currently not installed. You can install it by typing:
sudo apt install gcc
Which I tried, it then ran through a bunch of installer stuff but consistently seemed to run into errors such as the following:
Err:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg- >perl all 1.18.4ubuntu1.2
404 Not Found [IP: INSERT IP ADDRESS HERE ]
where the ip address is different on each error line.
It ultimately fails with the following line:
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have tried but again I get the same kinds of errors as above.
I would really like to get gcc working in the Windows/Linux shell as it is working great for everything else, and I'm trying to keep the number of programs on my computer to a minimum.
Does anyone know why this isn't working, or how (if possible) I can make it work?
P.S I do need it to be gcc because of school reasons
For what it's worth: I landed on this SO topic after having a similar issue.
What fixed it for me was to run
sudo apt-get update
sudo apt-get upgrade
I guess the repo URLs were too old, even though my Ubuntu was in a recent version.
I just ran into the same thing attempting to install python-pip. According to this article, this happens when you have the Windows 10 Anniversary Update (older) instead of the Creators update (newer). The solution is to either uninstall and re-install Ubuntu, or upgrade it (from 14.04 to 16.04). I found the upgrade to be simple and painless:
sudo do-release-upgrade
To check what you have, before and after via:
lsb_release -a
I had the same problem. Pinging the IP resulted in no response and visiting the website returned a 404.
I found a ppa with most current GCC and registered the PPA and was able to successfully install GCC with it; ppa website. I used GCC to build some software I wanted that was not found with apt-get.
From their page:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
Try to run Ubuntu application in Windows with an option "Run as Administrator".

OS X Yosemite - Vagrant: Failed to install / update plugins (ruby invalid option -H)

I've done a fresh install of OS X Yosemite and Vagrant on my Mac some days ago. The problem is, that every time when I try to update all plugins or install a vagrant plugin (vagrant-cachier), I'll get the following error:
An error occurred while installing json (1.8.2), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.2'` succeeds before bundling.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/opt/vagrant/embedded/bin/ruby extconf.rb
/opt/vagrant/embedded/bin/ruby: invalid option -H (-h will show valid options) (RuntimeError)
If I install a gem over the system's binary it works. So it seems to be a problem with the built-in vagrant binaries. I've also already installed the command line tools. My Vagrant Version is 1.7.2
I've already googled the problem for hours, but I didn't find this problem.
Did I forget anything or does anybody has a workaround for this problem?
Thanks!
Thanks for your help. I found the problem.
The problem was the path were Vagrant is installed. My SSD partition on OS X is called "Macintosh SSD" with a space in it.
I renamed it to "MacintoshSSD" and now it works fine.
The issue appears to be that the 'embedded' binary of ruby is not happy with some older code in the JSON gem. Or something... I literally know nothing about ruby other than that it is a programming language and I installed it to use compass. And now here it is again with Vagrant.
ANYWAY I moved the embedded ruby to the side, and copied OS X's built-in ruby into the vagrant embedded binaries folder.
Something like:
sudo mv /opt/vagrant/embedded/bin/ruby /opt/vagrant/embedded/bin/ruby.2.0.0.p598
sudo cp /usr/bin/ruby /opt/vagrant/embedded/bin/ruby.2.0.0.p481
sudo ln -s /opt/vagrant/embedded/bin/ruby.2.0.0.p481 /opt/vagrant/embedded/bin/ruby
sudo vagrant plugin install vagrant-vmware-fusion
Installing the 'vagrant-vmware-fusion' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vmware-fusion (3.2.1)'!
Yay.
Straight from HashiCorp... here is the troubleshooting checklist:
Hey there,
I am really sorry you are having problems installing that Vagrant plugin. We are aware of these issues, but we have not been able to narrow it down to a specific cause because it only affects a small subset of machines and we have not identified a common denominator yet.
First, please do not try and install the plugin using sudo. This can tamper with the permissions of other Vagrant plugins and cause Vagrant to error.
Second, please ensure you have the XCode Command Line Tools installed. You can install them by running:
sudo xcode-select --install
and following the on-screen prompt.
After completing those steps, many users have found success by doing the following:
Completely uninstall Vagrant
Removing the /opt/vagrant and /Applications/vagrant directories.
Remove Vagrant's storage directory (~/.vagrant.d). Warning: If you
have installed other Vagrant plugins or Vagrant plugin licenses,
they will be removed!
Reinstall Vagrant from the official Vagrant installers:
https://www.vagrantup.com/downloads.html
Install the plugin
Additionally, please ensure the following:
If there is a special character anywhere in Vagrant's path, you must
choose a different directory. This includes spaces (like in a
username or folder name) and parenthesis (like C:/Program Files
(x86)). Unfortunately there is a bug in the language in which Vagrant
is written that prohibits compiling native extensions under these
circumstances.
If you are using a Mac, please make sure you have accepted the XCode
license agreement. In some situations, native extensions will fail to
compile because XCode is prohibiting the installation due to an
unaccepted license agreement. To accept the license agreement, simply
open XCode - you will be prompted if you need to accept the
agreement.
If the problem persists after taking these steps, please provide the output of the plugin installation's debug logs.
Please let me know if you have any questions.
Best,
Seth

ns-2 - ./validate fails in Ubuntu 13.10

I was able to make ns-2 (ns-allinone-2.35) install on Ubuntu 13.10 successfully by modifying linkstate/ls.h, but one test case in the validation suite always seems to fail - tcpLinux. This bothers me because validation works properly in Ubuntu 12. Would you know how to fix this or if this is an issue at all?
Thanks in advance!
So it looks like ns-2 doesn't play nice with the newer versions of gcc.
Before installing, do
export CC=gcc-4.4 CXX=g++-4.4
If you don't have these older versions, use
sudo apt-get install gcc-4.4 g++-4.4
Using this method, I didn't have to modify any source code before building.

Issue on installing iperf on ubuntu

I am trying to install iperf on ubuntu 11.10. I refer this site to install.
After I gave ./configure, the error would be "bash: ./configure: No such file or directory"
Then, i found out where is configure, and I have given command as ./iperf-2.0.5/configure. Then i have followed further step given by that link.
But, If I give iperf -s -D command, I am getting the error as given below:
The program 'iperf' is currently not installed. You can install it by typing:
sudo apt-get install iperf
What mistake have I done? Please point it out.
Thank you in advance!!!
You should really read what that error message said. If you simply run command:
sudo apt-get install iperf
you will get iperf installed without the need to compile it from source - at least it did for me.
That said, please consider using (or least trying) more modern equivalent of iperf, namely nuttcp. nuttcp seems to be better supported, and, according to some sources, works better.
You can install nuttcp on Ubuntu using:
sudo apt-get install nuttcp
I would have commented on mvp's answer, but unfortunately I do not have enough reputation at the moment.
First of all, to cover your question, if you are building from source like you do, after you run the "configure" script, you should:
sudo make
and then
sudo make install
in the folder that the configure script is located, so in your case in "iperf-2.0.5" folder.
Having said that, I highly suggest that you drop iperf version 2 and move to iperf version 3. As somebody that uses iperf to examine and teach protocols, I believe it follows the protocols much more closely and behaves more predictably.
You can download the source form: https://code.google.com/p/iperf/ and the instructions to install it are similar with the ones you followed and can be found in the README file in the tarball.

Resources