bash: ./QGroundControl.AppImage: cannot execute binary file: Exec format error. This error appears after trying to run the file as a program.
After completing the first set of commands here https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html
and running the chmod +x ./QGroundControl.AppImage, when the file is attempted to be executed it returns the error bash: ./QGroundControl.AppImage: cannot execute binary file: Exec format error. Have tried installing it both from a usb drive and directly. It is downloaded from the linux section. Running Ubuntu 20.10 on a raspberry pi 4.
Related
This question already has answers here:
Virtualenv Command Not Found
(31 answers)
Closed 1 year ago.
I am trying to create a python virtual environment for Django in ubuntu 20.04 using jenkins execute shell. I have seen a solution here at askubuntu and trying to reproduce this solution but getting the following error in console output:
Running as SYSTEM Building in workspace
/var/lib/jenkins/workspace/python_virtual_Env [python_virtual_Env] $
/bin/bash /tmp/jenkins8922469990510149005.sh ModuleNotFoundError: No
module named 'virtualenv.seed.embed.via_app_data'
/tmp/jenkins8922469990510149005.sh: line 3: cd: virtual_django1/bin:
No such file or directory
/var/lib/jenkins/workspace/python_virtual_Env
/tmp/jenkins8922469990510149005.sh: line 6: activate: No such file or
directory Build step 'Execute shell' marked build as failure Finished:
FAILURE
Below are my commands which i have used in jenkins execute shell:
#!/bin/bash
virtualenv virtual_django1
cd virtual_django1/bin
pwd
dir
source activate
I have ran the above commands with and without #!/bin/bash but still error persist. How can i get rid off this error in console and get able to create as well activate python virtual environment using jenkins execute shell.
I am able to resolve this issue by creating a virtual envirnoment with another command rather than virtualenv. Below is the exact shell commands which will be needed to create and activate the virtual envirnoment for python using jenkins shell:
#!/bin/bash
sudo apt install python3.8-venv
python3 -m venv Virtual_Django
cd my_env/bin
pwd
dir
source activate
I am a complete newbie to Linux and trying to open an AppImage called Magick which is an Imagemagick application.
I tried right clicking on the AppImage and checked "run file as an executable" option but that didn't work. Another thing that I tried is running this command,
chmod a+x magick.AppImage
This gives me an error,
chmod: cannot access 'magick.AppImage': No such file or directory
I have also tried running the file by navigating into the folder that contains the file and opening up the terminal there but still no luck.
I am running Ubuntu on Oracle VM VirtualBox.
ImageMagick is a command-line tool, you don't run it by clicking on it.
To run it in a terminal you need to
Set the executable flag on the .AppImage (once for all): chmod +x TheApp.AppImage
Then to run it just invoke the AppImage: ./TheApp.AppImage <arg1> <arg2> ....
If the directory with your .AppImage is in your PATH, you can remove the ./ (or whatever directory the AppImage is in).
ImageMagick is also available as a regular application from your Ubuntu repository: sudo apt install imagemagick
I am trying to run a simple Hello world python script on Multi2sim (simulator for CPUs and GPUs to test & validate new hardware designs).
I am new to Multi2sim and as per my research it seems that we have to first compile any python program normally and run the executable on multi2sim.
So, I made my hello world program executable by following the steps:
Adding #! /usr/bin/python to the first line of my script.
Renaming the script from hello.py to hello.
Running the command chmod +x hello.py on the terminal.
Finally run the executable using ./hello
It is perfectly executing and output the result. But I am not able to run the same executable on multi2sim using the command: m2s ./hello
It gives me the error: Invalid ELF file
My machine specifications are:
Ubuntu 16.04.1 LTS,
python 2.7 and python 3.5,
Muti2sim 5.0
Actually, making script program exeutable is not enough to "compile" it and make it "binary".
It still stays script (the code, which needs to go through interpreter). So, generally, you want to run m2s /usr/bin/python ./hello.py (most of the time python is either binary (compiled for your architecture) or symlink to it).
I've downloaded and unzipped ffmpeg at custom directory in my Ubuntu linux. Now I want to run this ffmpeg using terminal like I run on windows using command prompt. But everytime it says "ffmpeg: command not found". My question is how can I run ffmpeg using terminal through extracted libraries
thanks
First you need to make sure the file has execute permissions... or just add it with chmod +x filename
Secondly either the executables must be on the path or you need to specify the path to the executable. What I mean by this is, under Windows if you are in a directory with an executable you can type in the executable name and it will work... this is not the case for Linux. If you are in the executable's directory you execute the command like this ./command. The dot means you are executing a file in the current directory
I am trying to run the following Linux commands on windows. I was able to install curl.exe and run the first command of the two below, however, without the | php at the end of it, as adding it caused an php is not recognized as an internal or external command error.
Then when trying to run the second command of the two I get a host not found error.
I am new to curl and linux command line and I was wondering if someone can help me figure out how to run the second command on my windows machine?
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
many thanks in advance!
php is not recognized as an internal or external command
That error means either PHP is not installed on the Windows machine, or it is not in the PATH.
Install it if you have not already. If you have installed it, either specify the full path to PHP in your command
curl -s http://getcomposer.org/installer | C:\Install\Path\php
or ensure that the PHP directory is in the PATH environment variable.