Raspberry pi pip install illegal instruction erorr - pip

I was trying to install smbus2 with pip3 in raspberrypi 4(raspberry pi os 64bit).
But it says "Illegal instruction".
Why does it happen and How can I solve it?
pi#raspberrypi:~ $ pip3 install smbus2
Illegal instruction

In general, which means there may be a million exceptions, illegal instruction means you're using s/w that was compiled against a different architecture. RPI0 is arm6 so if you install something compiled with arm7 for example you'll get that error.
You might find a better explanation here: https://forums.raspberrypi.com/viewtopic.php?t=293114

Related

Installing Ipopt for anaconda python windows 64bit

I'm trying to install Ipopt using mingw64(TDM-GCC) in Windows 64bit. I'm thinking about using it in anaconda python.
I closely followed instructions here (http://www.coin-or.org/Ipopt/documentation/node15.html#SECTION00045300000000000000), but I couldn't compile it at all.
I used reference BLAS/Lapack sources, and compiled them together with Ipopt.
I got the message that configuration is successfully done, but when I tried to make it, I kept getting the error message that *
dasum.lo requires libcoinblas library
*.
I also tried to connect it to Intel MKL library(lp64,latest version) instead of compiling reference libraries, but it gave me an error
"Makefile:272: *** target pattern contains no '%'. Stop"
.
Ipopt version:3.12.4
Reference BLAS/LaPack version:3.6.0
Can anyone help me with this problem?
Thanks.
conda install -y -c pycalphad cyipopt
Executing this in an anaconda prompt should complete the installation of ipopt using cyipopt for python in anaconda.

Installing TensorFlow in a Virtualenv on OSX

I am following the instructions for installing TensorFlow in a virtual environment on Mac, however I am not sure what this instruction means:
(tensor flow)$ pip install --upgrade <$url_to_binary.whl>
Specifically the url_to_binary.whl bit.
Installation has progressed fine so far. I tried using that exact command but it printed an error:
-bash: syntax error near unexpected token `newline'
I assume that everything between the <> is a placeholder and refers to some location, not sure what though.
Solved.
It's now installed and up and running.
<$url_to_binary.whl> should be replaced by https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
I assume that was the file they meant.
They meant the binary they told about previously in the binary installation section for MacOS
Only CPU-version is available at the moment.
$ pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
So the path to binary is https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
In my opinion,you may try like this:
(tensorflow)$ pip install --upgrade
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

Cannot install Clang on Archlinux

For my second year we need to learn how to use linux (at a beginner level) and our professor told us to use Ubuntu, or ArchLinux if we wanted to learn more. I installed ubuntu and the required tools (he gave us a short list) but Archlinux freeze completly when I try to install clang and I have to recreate a new Virtual machine (I am on a Mac using VMWare) each time
here is the list of tool needed:
emacs
clang (>=3.4)
gcc (>= 4.8)
make
xterm
For each one it works but for clang
Here is the error I get:
image http://img11.hostingpics.net/pics/876673ScreenShot20140906at182459.png
and it doesn't respond anymore so I have to forcequit my VM and reinstall a new one. Has anybody already encountered this error ? Does anybody know what it means ? I tried pacman -Syu but it has not done anything...
Thank you
First It looks like a error that your VM hard drive is broken.
But it just 'maybe'.
Try to reboot it and try install commands again.
If it still can't work try to add -o $(pidof mount.ntfs-3g) to kill_all_wait() in /etc/rc.d/functions and reboot it.

Linux kernel source not configured - missing > version.h. when intall a driver

I'm trying to install a intel e1000 ethernet card driver on ubuntu 12.04 LTS.
When i type
make install
The following error occur:
Makefile:111: * Linux kernel source not configured - missing
version.h. Stop.
in the README file thy say:
When trying to compile the driver by running make install, the
following error may occur:
"Linux kernel source not configured - missing version.h"
To solve this issue, create the version.h file by going to the Linux
source tree and entering:
make include/linux/version.h.
I try to run this command in the /usr/src/linux******* folder but no results
(
i have linux-headers-3.8.0-29 linux-headers-3.8.0-32
linux-headers-3.8.0-29-generic linux-headers-3.8.0-32-generic
)
any suggestions to fix the problem?
Some people just like to compile. Searching this error pointed me here.
As it turns out the compiler is looking at the wrong kernel version, and the headers for this are not installed on the OS.
Best solved editing the specfile.
Install build-essential using terminal or synaptic.
Restart computer, it will work.
Thank you.

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