Sorry, no QEMU binary has been found. Please make sure QEMU is installed before continuing - qemu

Sorry, no QEMU binary has been found. Please make sure QEMU is installed before continuing
I have installed GNS3 on Centos 8, but when I want to create a QEMU vms Machine the program gives me this error.

Installing GNS3 on Fedora family OS's can be tricky; you have to get all the dependencies right. Have you tried:
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum -y install qemu # Not qemu-kvm
I just tested it using GNS3 on CentOS 7. BTW, I wrote a bash script to install GNS3, if you want some ideas.

Related

ERROR: DTC (libfdt) version >= 1.4.2 not present. Please install the DTC (libfdt) devel package

I am trying to compile qemu from source, I'm trying to install qemu for hisilicon, but when I run ./configure I receive the error
ERROR: DTC (libfdt) version >= 1.4.2 not present.
Please install the DTC (libfdt) devel package
I have already installed qemu
sudo apt-get install -y qemu-kvm qemu virt-manager virt-viewer libvirt-bin
and I've already installed libfdt
sudo apt install libfdt-dev
But I'm still getting this message.
How can I install libfdt?
To fix this issue:
I cloned dtc from its repository and extracted the tarball to qemu/dtc/.
Compiled dtc from source first using make
Restarted configuring qemu.
The problem was qemu tries to search for dtc binaries in qemu/dtc. Even if you have installed dtc using sudo apt-get install device-tree-compiler, you will get the above error(mentioned in the question), so you probably need to have the binaries in qemu/dtc.

Remove CUDA 10.0 and install CUDA 9.2 on Ubuntu 18.04

I'm trying to install TensorFlow-gpu, so I need the CUDA toolkit 9.2.
Unfortunately I installed CUDA 10 and then realized that.
How can I easily remove CUDA 10.0 and install CUDA 9.2, without touching the drivers (since I have Ubuntu 18 I would like to maintain the latest video drivers)?
I already tried to simple install CUDA 9.2 from .deb (network) file, it says
dpkg: error processing archive cuda-repo-ubuntu1710_9.2.148-1_amd64.deb (--install):
trying to overwrite '/etc/apt/sources.list.d/cuda.list', which is also in package cuda-repo-ubuntu1804 10.0.130-1
I already tried to simple install CUDA 9.2 from .run file as described here, it says
Not enough space on parition mounted at /tmp.
Need 2895511552 bytes.
Disk space check has failed. Installation cannot continue.
+1 to installing a stand-alone CUDA-9.2 in a separate dir using .run installer. That should work.
You can specify an alternative location for the temporary files using --tmpdir=... option when you run the .run installer.
I solved this issue as follow :
sudo apt-get purge nvidia*
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /usr/local/cuda-10.0
This will remove cuda-10.0 and then you can install cuda-9.2 as you want
I have solved the problem using #Cs20 answer and doing:
sudo dpkg -P <package name>
in this case <package name> is cuda-repo-ubuntu1804

apt-get update Bad header line

I'm hosting a reprepo debian package server with a bunch of arm packages for an embedded linux project. I have arm symbol files in the repo. On my host machine, Ubuntu 14.04 LTS, I want to -force-architecture install them. When I update my PPAs with my debian repo apt-get update is erroring with Bad header line. I've been searching for hours for a solution. Can't even find a way to turn on verbose for apt-get. dpkg has --debug= so I tried sudo apt-get -o Dpkg::Options::="--debug=3773" update with no success.
Checked /var/log/dpkg.log and /etc/apt/*.logs nothing in them... How do you debug apt-get?

How to install expect and tcl on linux RHEL server 6.5

I am new to linux and i have few expect scripts to execute. I read few blogs on how to install expect and tcl. The command i am trying is
sudo yum install expect
sudo yum install tcl
I am getting
No package expect available
No package tcl available
It seems RHEL should have tcl and expect prebuilt but this is not the case in my version of linux.
How should i proceed from here ?
Help will be highly appreciated..Thanks :)
Install the development tools:
yum groupinstall "Development tools"
then
./configure
make
make install
should be good to go.
Have you tried this? In this way you will be able to compile from source.
1) Download the expect package from the below link
http://sourceforge.net/projects/expect/
2) Install the required dependecy packages "Tcl/Tk" language toolkit
# yum install tcl
3) Install the "expect" package using the below commands
# tar -zxvf expectx.xx.tar.gz
# ./configure
# make
# make install
I tried the following links and it worked for me. http://www.linuxfromscratch.org/blfs/view/svn/general/tcl.html http://www.linuxfromscratch.org/blfs/view/svn/general/expect.html
Try ActiveTcl from ActiveState:
http://downloads.activestate.com/ActiveTcl/releases/8.6.4.1/ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz
You can add EPEL Repo
On 32-Bit -
# rpm -Uvh http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm
On 64-Bit -
# rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/epel-release-6-8.noarch.rpm
and then you can use yum to install.
Also you can compile from source or get from ActiveState like in previous answers.

MacPorts is unusable

I've recently installed MacPorts as explained on MacPorts website. All the process went well. The .profile file in my home directory has been updated (in this file the paths "/opt/local/bin" and "/opt/local/sbin" are added to the environment variable PATH) and all the macports files are in the directory "/opt". When I type "which port" in the shell, it returns "/opt/local/bin/port".
But something weird happens when I ask to install the port "octave-devel" (I've installed MacPorts to use Octave on my Mac in the first place). So when I enter the command "sudo port install octave-devel +atlas+docs" (as explained in GNU Octave wiki) in the terminal and type my password, the shell replies "Error: Port octave-devel not found". However the port "octave-devel" seems to exist because I've found its description on this page of the macports website.
Because I had to use Octave quickly I first wanted to uninstall MacPorts and install Fink instead and I tried the method described on the MacPorts website but after I typed "sudo port -fp uninstall installed" it returned "Error: No ports matched the given expression". I couldn't even uninstall this software! I really think that it is a problem of MacPorts itself and not the octave port but I can't find what exactly.
Eventually I used Octave on a Windows computer but it annoys me not to know what is wrong with MacPorts on my computer. And mainly, I want to be capable to use GNU Octave on my Mac because I need it for school.
Thank you in advance and happy holidays.
I'm not sure which version of OSX you are running, however, I have octave (not octave-devel) version 3.6.4 installed via macports on a machine running OSX 10.9.1. This was built using:
sudo port install octave
which yields a known bug building the atlas dependency that results from a missing fortran compiler. At this point you have two options. Before attempting to install octave first try to install atlas separately, either overriding the standard clang compiler with the gcc4x flag, or install atlas using:
sudo port install atlas +nofortran
which runs fine using clang. With atlas installed, octave should build to completion although there is a possibility that you will find an error regarding the use of arpack by apple as a vector library. Using +arpack is preferred, so it may be useful to load this by hand as well before starting your octave install.
Trying to install Octave using MacPorts I ran into a similar problem.
Summary
My solution was to first clean & build atlas separately using gcc47 instead of the default mpclang34. Then to build the default octave.
Details
This is on a MacBook running an older OS (10.7.5), the standard Octave (3.8.2) package failed to build - it hung on building the atlas dependency.
Solution:
sudo port clean atlas
sudo port -v install atlas +gcc48
sudo port -v install octave +atlas+docs
I'm currently going through the process of installing Octave via MacPorts. I used the following command which I found on Shifteleven.com:
sudo port install octave-devel +gcc45
It seems to be working so far. You also need to make sure you've installed the Xcode command line tools, which is something that I forgot to do the first time I tried.
I also ran into problems installing Octave using Macports on OSX 10.10.1 and solved them, similar to #Tom_N_PDX and #isak.
Short version
I got it working using one of the options described by #isak.
More detailed version
Running sudo port install octave failed because of the missing Fortran compiler problem.
I next installed Fortran using Macports sudo port install gcc48 and then tried re-installing Octave
sudo port clean octave
sudo port install octave
This "hung" on Atlas, as others have mentioned, although I now realize it just takes a long time and I killed it before it finished. Likely it would have worked, as the output said it had found Fortran
Selected C compiler: /usr/bin/clang
Selected F77 compiler: gfortran48
I then installed atlas separately, using the +gcc48 flag, as suggested by #isak
sudo port install atlas +gcc48
but it displayed the same compiler information as above (consistent with my conjecture that the above would have worked). This process took about 4 hours. You can monitor the progress of the task in the logfile (found with the command sudo port logfile atlas), which reassures you it's doing something and not "hung". (Oddly the output does halt mid-message, but it always eventually resumed. Also there were a lot of warning messages.)
Last, running the following worked:
sudo port clean octave
sudo port install +arpack
I actually first tried without the +arpack option and it worked but I got the following message, consistent with #isak's answer
WARNING: Dependency 'arpack' is installed with the +accelerate variant, using Apple's Vector Libraries which have some known bugs that can cause Octave to crash if using certain functions in arpack. The +atlas variant does not have these issues with Octave, but does take many hours to compile even on modern hardware.
When I reinstalled Octave with the +arpack flag it took less than a minute (because I had already installed Atlas).
I had a similar problem with MacPorts. I would recommend using HomeBrew instead. Here are the commands to install Octave on HomeBrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew upgrade
brew install octave