Illegal instruction error comes when i start asterisk 1.8.22 - centos

I have installed the asterisk 1.8.22 in centOS 32 bit.I have execute the command as below for installing asterisk:
./configure
make
make install
make samples
make config
.When i start the asterisk service then it shows like Starting asterisk:.But when i am starting asterisk CLI asterisk -vvvvvvvvvr then it shows Illegal instruction.I have searched about this on net but didn't get any solutions.I have installed all the dependencies for that.Can anyone help me what should i do to solve this problem to start asterisk.
Thanks in advance.

Very likly you are using virtualization or cpu like via-eden.
Solution:
enter in "make menuselect" -> "Compiler flags" and disable "BUILD_NATIVE"
option; then recompile Asterisk
If not help, you need edit Makefile and change architecture.
Also issue can be incorrect binary for g729 codec. So before install remove all files in /usr/lib/asterisk/modules/

Related

VS Code cannot find Arduino IDE path

I have been trying to use the Arduino extension for VS Code in Ubuntu 18, but when I execute the initialize command, I get the error "Cannot find the Arduino IDE. Please specify the arduino.path in the user settings". So I wrote every path that comes out when executing the command "whereis arduino", I've also tried leaving the box empty (in theory that makes VS Code search for the IDE) and reinstalling both the Arduino IDE and VS Code several times, without any result. Does somebody knows a possible fix for this issue?
Download and extract the appropriate Arduino version according to your need from here, and install it using command sudo ./install. In my case, I have downloaded Arduino 1.8.6 Linux 64 Bit .
Goto Files -> Preferences -> Settings, Open Settings(JSON) as shown below.
Change arduino.path to the path location of extracted Arduino file. In my case it is /home/user/Downloads/arduino-1.8.6 and arduino.commandPath to arduino.
OR
For those who installed Arduino through snap platform refer this post.
Your Settings JSON file should look like this.
{
"arduino.path": "/home/user/Downloads/arduino-1.8.6",
"arduino.commandPath": "arduino",
}
Save and restart.
It's Done!!
Good Luck
P.S.:Add arduino.commandPath if not already exist and should point to Arduino executable present in the arduino.path.
Even when its on mac, someone can find this helpful as I had the same problem and found this thread. On MAC I have solved this one with arduino-cli and following:
install homebrew (if you have, proceed to step 2)
install arduino-cli with brew install arduino-cli
find where the arduino-cli is installed. Usually (on mac) it will be /opt/homebrew/bin/arduino-cli... Which means, if you run the command arduino-cli, it will execute this script... You can find the location with:
which arduino-cli (I have zsh, I am not aware if it will be the same for older bash, probably it will, I am not so skilled in this one, but you can try to use find instead of which. But which is working for me
lets assume you have the path, for me it was /opt/homebrew/bin/arduino-cli
proceed to VScode, go to settings (well, lets assume we will be working with the json settings
in my case, the input is following:
"arduino.useArduinoCli": true,
"arduino.path": "/opt/homebrew/bin/",
"arduino.commandPath": "arduino-cli"
Note, even when the path to arduino-cli is /opt/homebrew/bin/arduino-cli, we are removing the script name from the path... But we are adding this to the commandPath
I found that running whereis arduino or which arduino gave me /usr/local/bin/arduino. However, this didn't make Visual Studio Code happy. After some more digging, it turns out that that path is just a symlink to /opt/arduino-1.8.13. (Use ls -la /usr/local/bin/arduino to see where the symlink points to on your system.)
Also of note: be sure to give the path to the directory, not to the actual executable. For instance, in my case, the proper path was /opt/arduino-1.8.13 NOT /opt/arduino-1.8.13/arduino!
tl;dr
Use /opt/arduino-1.8.13, but be sure to update the version number to whatever is installed on your system.
This might not work for everyone, but the problem for me was using Visual Studio Code for flatpak. There was probably a better way to fix this, but the easiest way to do it (for me) was to install the binary from their website.
Go to "User Settings" > "Extensions" > "arduino.commandPath" > change it to "arduino_debug.exe"
In my case whereis arduino gave me /usr/bin/arduino and /usr/share/arduino, however putting either of them in the arduino.path didn't work.
Entering /usr/bin did the trick though. hope it helps!
(Ubuntu 20.04)
I use Windows and I solved it as follows.
The problem is because you are using the new version Arduino IDE 2.x.x and it has another way to code its sketches and more (I don't know how to say it, I'm a beginner in this) or you haven't activated to use Arduino Cli at least, so -- ->
Intall Arduino 1.8.x. You can donwload it here: Arduino Software
Open your vscode, go to Files>preferences>settings and find your Arduino extension under "Extensions". and put the standard path for Arduino 1.8.x like: C:\Program Files (x86)\Arduino (Remember this is where you installed the Arduino 1.8.x path) in "Arduino Path".
Next, you need to click on "Arduino: Use ArduinoCli" to link the Arduino extension to the correct version (Arduino Legacy is not allowed).
Arduino CLI option in vscode settings
Here's what fix my issue!
1st - Make sure you have the right path ("The path to the folder which contains the 'arduino.exe'", and not the path with the 'arduino.exe') copied to your Arduino Settings in VS Code.
2nd (The Actual Fix for me) - After installing the Arduino IDE and the VS Code extension RESTART you entire computer!! This somehow updates the Registry.
After which you can just Initialize your project, F1 - Arduino Initialize.
That's it enjoy and start up your Golden IoT project.

NetBeans IDE: Resolve Missing Native Build Tools

I am trying to install Fortran in my Windows 10 laptop.
I followed step-by-step this tutorial.
On the last step I am promted to run the following piece of code:
program testfortran
implicit none
print*,'Hello world '
end program testfortran
However a Resolve Missing Native Build Tools window pops-up: it seems that the Make command field is empty.
To be more specific at the bottom of this window there is a message that Tolls marked with * are required. There are three such fields:
(1)C++ compiler to which is attributed the message C:\MinGW\bin\g++.exe
(2)Fortran compiler to which is attributed the message C:\MinGW\bin\gfortran.exe
(3) Make command which is empty (it comes with a red *)
What should I write inside the Make command field?
P.S. All I want is Fortran 90/95 installed on my Windows 10 laptop. I try to do this with step-by-step tutorials because installing software is not exactly what I am good at. So any alternatives would be welcome.
MinGW comes with the mingw32-make program (or it can be installed by mingw-get install mingw32-make). So you should use
C:\MinGW\bin\mingw32-make.exe

VSCode is not installed although I use the recommended rpm way - Fedoa 29

I use the described way for Fedora 29 but when I type sudo dnf install code I receive a long list of - nothing provides and , for example libgconf-2.5.4 (64 bit) ...etc etc.
I have tried to use nogpgcheck, but that also does not work.
If it is relevant when it starts after dnf check-update it says Failed to set locale, defaulting to C.UTF-8
I have previously installed VSCode on this laptop but then when I wanted to use another file, using File the path is shown a the top but there is no list of files. I then deleted VSode from the laptop and now I cannot install it again.
Thank you for your attention. I am awaiting your answer, thank you.
James Gibbens
So, I use Fedora, and I always do it like so:
Go to: https://code.visualstudio.com/docs/?dv=linux64_rpm (hopefully this triggers a download for you)
Then I just double click to install, through nautilus. That works like a charm for me. You should also be able to do sudo dnf install code-*.rpm in the command line, but I tend not to bother since I'm running gnome and chrome anyway, so it's pretty seamless to just use the UI provided.

Eclipse Arduino makefile,subdir.mk Error

I've intsalled Eclipse and added Arduino plugin after when ı created new arduino sketch I faced to these errors.How Can ı fix these errors.
The solution is "Cygwin"
To install Cygwin:
From https://cygwin.com/install.html click setup.exe according to your computer’s version(32/64
bit)When it downloaded,click setup.exe and follow the steps.
1)Click Next
2)Install from internet
3)Determine the root directory for Cygwin
4)Choose the Install for All Users(Recommended)
5)Choose the right internet settings for you->Direct Connection
6)Choose A Download Site
7)Select packages ->Download all things under Base Default ->Search gcc and make,download all you find.
Set path in Windows on Preference Eclipse.
Find where Cygwin placed and copy the address.Go to Windows Control Panel->System and Security->System->Advanced
System settings->Environment Variables->System Variables->Path add a semicolon(;) and paste the address to here.
After Cygwin’s path adjustment ended, Here are the path on my computer:
AVR-GCC: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\bin
GNU make: C:\cygwin64\bin
AVR Header Files: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\avr\include
AVRDude: C:\Programs\arduino-1.6.5-r2\hardware\tools\avr\bin
These steps will fix the problem.
This worked for me:
On the IDE go to Windows->Preferences, then expand the Arduino tab and select Platforms and Boards. Then select all the items in package_esp8266com_index.json and install all the missing packages.
After that it compiled with no issues.
Let me know if it helped you too.
I found that the make.exe installed with ac6 tools was the cause . Replaced with make.exe installed with gnu tools download problem fixed

Eclipse: Cannot run program "cs-make": Launching failed

For the past week, i have been hunting a free development environment for STM32F1xx, which is supported by FreeRTOS. And no success yet :( .
Now I've found this: http://www.stf12.org/developers/ODeV.html
It's an Eclipse configuration for STM32 compiling and debugging, and there is a FreeRTOS demo too. Perfect!
So I downloaded a preconfigered version of eclipse and tried to compile a demo project to get this error:
Cannot run program "cs-make": Launching failed.
Depressing. Please help, i am very bad at configuring IDE's, compilers and linkers so this has to be newbie-friendly :)
The Eclipse project is configured for CodeSourcery toolchain. You need to install CodeSourcery compiler toolchain from: http://www.mentor.com/embedded-software/codesourcery. Choose Lite Edition, ARM-NONE-EABI package. After the installation make sure you can start cs-make from command prompt (by typing it's name there). Generally, you want all toolchain programs to be accessible from command prompt, which implies that their installation path must be in system PATH variable.
P.S.
Make sure the path DOES NOT contain spaces like standard Windows programs directory "C:\Program Files", instead install the tools in a directory like "C:\arm-none-eabi", "C:\ARM_tools" or something like that.
Ah, thank you got it to work now!
And I ran into another problem too. When I tried to compile another error came up saying something like: "C:\Program is no file or directory". I Solved it by placing all compilers and OpenOCD in the root of my C-drive. I think it's because the make doesn't understand spaces in the make file, if anyone else get the same problem.