GrADS -- libssl.so.10: wrong ELF class: ELFCLASS64 - linux

I have installed GrADS on my Ubuntu 16.04.4 LTS system (x86_64) and after following all the INSTALL steps, I am getting the following error in my terminal:
/usr/local/bin/grads: error while loading shared libraries:
libssl.so.10: wrong ELF class: ELFCLASS64
What have done wrong? I definitely have OpenSSL installed on my system.

Ok, I have determined why I was having so many issues installing the latest version of GrADS (v2.2.1) the other day... My system is 64-bit and I was trying to install the 32-bit version... Doh!
Here are the commands that I used for v2.2.1:
cd /usr/local/lib/grads
wget ftp://cola.gmu.edu/grads/data2.tar.gz
tar -zxvf data2.tar.gz
cd
clear
wget ftp://cola.gmu.edu/grads/Supplibs/2.2/builds/supplibs-centos7.4-x86_64.tar.gz
tar -zxvf supplibs-centos7.4-x86_64.tar.gz
sudo apt-get install libcurl4-openssl-dev libssl1.0.0 libssl-dev libjpeg62-dev libgeotiff-dev
sudo apt-get install libtiff-dev
sudo apt-get install libcurl4-openssl-dev libssl1.0.0 libssl-dev libjpeg62-dev libgeotiff-dev
sudo ln -s /usr/local/lib/grads/supplibs/libpng15.so.15 /usr/lib/
sudo ln -s /usr/local/lib/grads/supplibs/libhdf5.so.8 /usr/lib/
sudo ln -s /usr/local/lib/grads/supplibs/libnetcdf.so.7 /usr/lib/
sudo ln -s /usr/local/lib/grads/supplibs/libhdf5_hl.so.8 /usr/lib/
sudo ln -s /usr/local/lib/grads/supplibs/libtiff.so.3 /usr/lib/
sudo ln -s /usr/local/lib/grads/supplibs/libgeotiff.so /usr/lib/
sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.10
sudo apt-get install libjpeg62-dev

Related

Installing .NET SDK on Ubuntu produces no executable dotnet file

Installing .NET SDK on Ubuntu 20.04 with the commands listed in the Install .NET on Ubuntu docs:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
produces no dotnet executable.
Command 'dotnet' not found, but can be installed with:
sudo snap install dotnet-sdk
Listing files from the package:
dpkg -L dotnet-sdk-6.0 | grep -P "dotnet$"
gives
/usr/share/dotnet
The /usr/share/dotnet directory contains no executable. I compared this result with my other Ubuntu installation where I installed dotnet ages ago, and there it is installed in /usr/share/dotnet but there exists a /usr/share/dotnet/dotnet executable.
What am I doing wrong? How to install dotnet on Ubuntu with APT?
Using snap is not an option.
sudo apt reinstall dotnet-host and then sudo apt install dotnet-sdk-6.0 fixed the issue.
See: https://github.com/dotnet/installer/issues/12939
dpkg -S /usr/bin/dotnet says that it was created by dotnet-host.
So maybe that package is missing in dotnet-sdk-6.0 and must be installed separately. I imagine they will fix it in some future version.
tl;dr $ sudo apt install dotnet-host

Strange errors and tried reinstalling open cv and face_recognition and still get errors tried all kinds from this site and nothing has worked

I got 2 errors while trying to install pip3 install face_recognition command failed building wheel for dlib and failed building wheel for face-recognition models on linux
Failed building wheel for face-recognition-models
Failed building wheel for dlib
Then it said it was successful face-recognotion-1 instead of without the 1 and scripts using module face_recognition still fails! How do I purge all opencv and face_recog and start again from scratch?
import face_recognition
The strangest error I'm not even trying to run that file as you can see but its referring to it like it depends onit
./test.py
Traceback (most recent call last):
File "./test.py", line 3, in <module>
import face_recognition
File "/home/jay/Documents/Scripts/PYTHON/Face_Recognition/Newest_2021/face_recognition_examples/face_recognition.py", line 14, in <module>
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
NameError: name 'cv2' is not defined
I need to purge it all and start again without reinstalling the os how do U guarantee a fix for this issue please?
I'm on linux mint using python3
Any ideas?
I want to purge everything to do with opencv cmake pip face_recognition completely so it all can be done from the start without wiping the whole os.
Solved it with
#!/bin/bash
# (c)J~Net 2021
# jnet.sytes.net
#
# Use sudo or give exec perms! sudo chmod +x *.sh
# sudo -H ./reinstall.sh
# USE # YOUR OWN RISK! I ACCEPT NO LIABILITY FOR ANY DAMAGE CAUSED TO YOUR OS!
#
echo "Uninstalling Face Recog & Dlib"
echo ""
sudo pip3 uninstall face_recognition -y
sudo pip3 uninstall dlib -y
sudo pip2 uninstall face_recognition -y
sudo pip2 uninstall dlib -y
sudo pip uninstall face_recognition -y
sudo pip uninstall dlib -y
sudo apt-get --purge autoremove face_recognition
sudo apt-get --purge autoremove opencv
sudo apt-get --purge autoremove cmake
sudo apt-get --purge autoremove dlib
sudo apt-get --purge autoremove python-opencv
#
echo "Now Reinstalling For Python3 for use with OpenCV By J~Net 2021"
echo "Please, wait, this will take some time do not use computer for anything while its working!"
echo ""
sudo apt install -y cmake
#
git clone https://github.com/davisking/dlib.git
#
cd dlib
mkdir build; cd build; cmake ..; cmake --build .
#
cd ..
python3 setup.py install
pip3 install face_recognition
#
sudo apt install -y build-essential cmake pkg-config
sudo apt install -y libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt install -y libxvidcore-dev libx264-dev
sudo apt install -y libgtk-3-dev
sudo apt install -y libatlas-base-dev gfortran
sudo apt install -y python2.7-dev python3.5-dev
sudo apt install -y libx11-dev
sudo apt-get -y install libopencv-dev build-essential cmake git libgtk2.0-dev pkg-config python-dev python-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev libtbb-dev libqt4-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip
#
mkdir opencv
cd opencv
wget https://github.com/Itseez/opencv/archive/3.2.0.zip -O opencv-3.2.0.zip
unzip opencv-3.2.0.zip
cd opencv-3.2.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
make -j $(nproc)
sudo make install
sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
echo ""
echo "Setup Complete!"
echo ""
echo ""
echo "Reinstall Complete!"
echo ""

Getting an error when installing the .Net 5 Runtime on Armbian (on an Orange Pi Zero)

I'm trying to install the .Net 5 Runtime on Armbian Focal (Ubuntu 20.04) or Buster (Debian 10), running on an Orange Pi Zero.
So I followed Microsoft's instructions here:
https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
but on the last step:
sudo apt-get install -y aspnetcore-runtime-5.0
I get this error:
E: Unable to locate package aspnetcore-runtime-5.0
E: Couldn't find any package by glob 'aspnetcore-runtime-5.0'
E: Couldn't find any package by regex 'aspnetcore-runtime-5.0'
I then followed Microsoft's suggestion for installing it manually from here:
https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#apt-troubleshooting
But on the last step, again I get the same error.
Any ideas?
In summary, these are the steps I tried first:
wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-5.0
and these are the steps I tried when the above failed:
sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y gpg
wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget https://packages.microsoft.com/config/ubuntu/{os-version}/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-5.0
EDIT:
I've previously installed the .Net Core 3.1 Runtime on this exact same setup without any issues. I'm not sure if there is something in .Net 5 that is different which won't allow me to install it
From the first URL you linked: https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must install .NET by some other means such as with Snap, an installer script, or through a manual binary installation.
A Pi is an ARM device, so the installation method you are trying to use is not supported.

Wine 1.9.24 on Centos 7

The problem
When I try to start any windows program I get no error and nothing happens. I tried on 3 different machines with Centos 7. Also tried older versions of Wine. Tested with winbox.exe from Mikrotik and with putty.exe. What could be the problem?
$ ./wine winbox.exe
$
CentOS 7 version
$ cat /etc/*elease | grep "release" | head -1
CentOS Linux release 7.3.1611 (Core)
Kernel version
$ uname -r
3.10.0-514.2.2.el7.x86_64
Openbox version
$ openbox --version | grep "Openbox"
Openbox 3.5.2
Wine install steps
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
cd /tmp
wget http://dl.winehq.org/wine/source/1.9/wine-1.9.24.tar.bz2
tar xjf wine-1.9.24.tar.bz2
cd wine-1.9.24
./configure --enable-win64
make -j4
and the executable is working
$ ./wine --version
wine-1.9.24
wine-2.0-rc3
Had no time to try the latest Wine 2.0 version, but all my problems are gone with wine-2.0-rc3. Tested only 32bit install. Step by step:
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
sudo yum install -y samba-winbind samba-winbind-clients samba-winbind-modules libwbclient-devel mod_auth_ntlm_winbind
# OpenGL support
sudo yum install mesa-dri-drivers.i686 mesa-libGL.i686
mkdir ~/bin && cd ~/bin
wget http://dl.winehq.org/wine/source/2.0/wine-2.0-rc3.tar.bz2
tar xjf wine-2.0-rc3.tar.bz2 && cd wine-2.0-rc3
# run provided install tool and write the output to file
./tools/wineinstall | tee output.file
# get the winetricks tool
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
WINE=~/bin/wine-2.0-rc3/wine sh winetricks corefonts vcrun6 mfc40 ie8 ie7
# start the downloaded windows program
./wine ~/Downloads/winbox.exe
winbox from Mikrotik
SketchUp

Error while building Boot to Gecko

I was trying to build B2G for emulator, but I've got an error.
Environment:
Ubuntu 12.04.1 x64
gcc 4.6.3
Install: out/host/linux-x86/bin/traceview host SharedLib:
libGLES_CM_translator
(out/host/linux-x86/obj/lib/libGLES_CM_translator.so) /usr/bin/ld:
cannot find -lGL collect2: ld returned 1 exit status make: *
[out/host/linux-x86/obj/lib/libGLES_CM_translator.so] Error 1
real 1m33.903s user 0m46.539s sys 0m6.088s
Build failed! <
How do I fix it?
Firefox OS build prerequisites
When building on 64-bit Ubuntu, you may find that you need to add symlinks for the 32-bit >versions of libX11.so and libGL.so:
$ sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Here you should find the solution to your problem.
#> sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
and then:
#> sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
from the Firefox OS wiki (Firefox OS build prerequisites), about building on Ubuntu 12.04 x64:
$ sudo apt-get install autoconf2.13 bison bzip2 ccache curl flex gawk gcc g++ g++-multilib git ia32-libs lib32ncurses5-dev lib32z1-dev libgl1-mesa-dev libx11-dev make
and then,
$ sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so
I had the exact same error while compiling Android. The following fixed it:
sudo apt-get install libgl1-mesa-dev:i386
I did not have to create any symbolic links or anything, just this simple install

Resources