ICD loader reports not usable format after installing OpenCL - ubuntu-14.04

I installed OpenCL on my Ubuntu 14.04 using this link: http://yuleiming.com/install-intel-opencl-on-ubuntu-14-04/ However when I followed last step:
sudo clinfo | grep Intel
I got the following error:
ICD loader reports not usable format
What might have gone wrong? I've also installed clinfo.

I read the guide you followed and it installs the old OpenCL Driver for Inetl CPUS. I have list down steps for the latest OpenCL Driver:
install rpm
sudo apt-get install -y rpm alien libnuma1
install clinfo utility
sudo apt-get install clinfo
download and install the OpenCL™ Runtime for Intel® Core™ and Intel® Xeon® Processors
wget -c http://registrationcenter-download.intel.com/akdlm/irc_nas/9019/opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25.tgz
tar xvzf opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25.tgz
cd opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25
sudo rpm --import PUBLIC_KEY.PUB
cd rpm
fakeroot alien --to-deb opencl-1.2-base-6.4.0.25-1.x86_64.rpm
fakeroot alien --to-deb opencl-1.2-intel-cpu-6.4.0.25-1.x86_64.rpm
sudo dpkg -i opencl-1.2-base_6.4.0.25-2_amd64.deb
sudo dpkg -i opencl-1.2-intel-cpu_6.4.0.25-2_amd64.deb
>
sudo nano /etc/ld.so.conf.d/intelOpenCL.conf
and add the following line -> /opt/intel/intel-opencl-1.2-6.0.0.1049/lib64
create a symbolic link for Intel ICD
sudo ln /opt/intel/opencl-1.2-6.4.0.25/etc/intel64.icd /etc/OpenCL/vendors/intel64.icd
sudo ldconfig
Now you can check Intel OpenCL with clinfo
sudo clinfo | grep Intel
Now, you can proceed with OpenCL SDK installation.

Related

Error while trying to open Acrobat Reader in Debian Bullseye

I installed Acrobat reader on Debian 11/Bullseye following instructions from here
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libxml2:i386
Download the Adobe Acrobat Reader (acroread) package here:
​ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
​Install it as follows:
cd ~/Downloads
sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
sudo apt-get -f install
acroread
When I run acroread from the terminal, I get the following error:
opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading shared libraries: libgdk_pixbuf_xlib-2.0.so.0: cannot open shared object file: No such file or directory
I followed instructions in this ubuntu forum and added i386 architecture (which is already done above):
sudo dpkg --add-architecture i386
I understood that I need to install ia32-libs, which in debian is done as per this
dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386
Also followed advice to install libc6-i386 in the same thread.
But still get the error:
/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading shared libraries: libgdk_pixbuf_xlib-2.0.so.0: cannot open shared object file: No such file or directory
Please advice how to solve and any pointers will be greatly appreciated
I simply had to install the i386 package for libgdk-pixbuf2.0-0:
sudo apt-get install libgdk-pixbuf2.0-0:i386
Now acroread runs fine.
Yeah !
After quite a few trials and errors, this is how i could install acrobat reader on Ubuntu 22.04 :
$ wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
$ sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
$ sudo apt-get install libgdk-pixbuf2.0-0:i386
At some point i also did
$ sudo dpkg --add-architecture i386
(but not sure that last line is required)

How to reinstall the latest cmake version?

I would like to install cmake the latest version, on Linux environment. I have cmake version 3.5 installed and is not supported by some applications. I tried to upgrade it by uninstalling the current version. But when I reinstall with sudo apt-get install cmake, I get the same version 3.5 re-installed. How do I install the latest version with sudo apt-get install ....?
As far as I know the best way to get the latest CMake version installed on any Linux is not by apt but using pip.
Remove the apt cmake and install the latest version from pip which can easily keep up-to-date.
apt remove cmake -y
pip install cmake --upgrade
Edit: As GNUton has pointed out, the following only works on Ubuntu 16.04 and 18.04(Checked on June 2019).
Now CMake developer team in Kitware Inc provides APT repositiory. It allows you to install latest CMake via apt-get.
If you are using a minimal Ubuntu image or a Docker image, you may need to install the following packages:
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg \
software-properties-common wget
Obtain a copy of our signing key:
wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc |
sudo apt-key add -
Add the repository to your sources list and update.
For Ubuntu Bionic Beaver (18.04):
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
For Ubuntu Xenial Xerus (16.04):
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
sudo apt-get update
... Optional steps. See details in reference.
... Optional steps. See details in reference.
Now call
sudo apt-get install cmake
Reference: Kitware APT Repository.
You can try the following steps that have worked for me on Ubuntu 18.04.3 LTS as OS of the NVIDIA jetson Nano to get the last version of cmake "cmake-3.14.0" from https://cmake.org/download/.
Delete the installed version in your system
sudo apt purge cmake
Download cmake3.13.4 source
wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
Extract files
tar zxvf cmake-3.13.4.tar.gz
Execute the following commands in this order to build it
cd cmake-3.13.4
sudo ./bootstrap
sudo make
sudo make install
Verify the version is installed correctly
cmake --version
Following the comments made on how to Install the latest CMake version and to post the answer for this question:
Ans:
This depends with Ubuntu OS version currently installed on your PC or Mac. If you have the following Ubuntu OS version then you have this CMake installed or that you could install and reinstall with "sudo apt-get install cmake". Even if you uninstall your version and try to reinstall later version.
Ubuntu 16.04 ships with cmake-3.5.1
Ubuntu 17.10 ships with cmake-3.9.1
Ubuntu 18.04 ships with cmake-3.10.2
Ubuntu 20.04 ships with cmake-3.16.3
Ubuntu 21.04 ships with cmake-3.18.4
Now if you have Ubuntu 16.04 installed and you want cmake-3.10, there is OS problem since you can only install and reinstalled cmake-3.5.1. To get cmake-3.10 or any other version, you have to download and install the package from https://packages.ubuntu.com/. Once you find the latest version of cmake .targz files, you have to build it yourself from the command line.
For CentOS/RHEL you can help these following steps:
yum -y install python-pip
pip install cmake --upgrade
If you are using Google Colab like me and wanted a higher version of cmake in it. Then do the following,
!pip uninstall cmake
!pip install cmake
This will install cmake 3.22 instead of the default version 3.12
pip install cmake --upgrade
if the following occurs after cmake .. :
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/.../.../...
CMake Error: Error executing cmake::LoadCache(). Aborting.
then try
hash -r
the following worked for me:
sudo apt remove cmake
pip install cmake --upgrade
then, I exited the terminal and again entered to check the version with cmake --version command
3.20.5 in ubuntu 16.04
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
sudo apt update
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DE19EB17684BA42D
sudo apt install cmake cmake-qt-gui cmake-curses-gui
yum remove cmake
wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
tar zxvf cmake-3.13.4.tar.gz
cd cmake-3.13.4
sudo ./bootstrap --prefix=/usr/local
sudo make
sudo make install
vi ~/.bash_profile
...
# PATH=$PATH:$HOME/bin
PATH=/usr/local/bin:$PATH:$HOME/bin
export PATH
source ~/.bash_profile
cmake --version
vi ~/.bash_profile
centos7 it help me
In case someone still finds it hard to remove cmake from their machine.
This command works for me (requires sudo permissions):
$ sudo find / -name "cmake" | xargs -I % sudo rm -rf "%"

Installing g++ 5 on Amazon Linux

I'm trying to install g++ 5.x on an EC2 instance running Amazon Linux; in Amazon's central repository the latest version is 4.8.3. What configuration to can I make to allow yum to find a newer gcc-c++ package?
Late to the party, but for those like me:
sudo yum install gcc72 gcc72-c++
For Amazon Linux 2, you have to install the following
sudo yum install -y gcc-c++
It's a requirement to install some Ruby gems that need native extensions
Installing gcc5:
# Install required libraries
sudo yum install libmpc-devel mpfr-devel gmp-devel
# Gather source code
export GCC_VERSION=5.5.0
cd /tmp
curl -o "gcc-${GCC_VERSION}.tar.gz" \
https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc- ${GCC_VERSION}.tar.gz
tar xvzf "gcc-${GCC_VERSION}.tar.gz"
cd gcc-${GCC_VERSION}
# Configure and compile
./configure --with-system-zlib --disable-multilib --enable-languages=c,c++
make -j 8
# Install
sudo make install
Ensure /usr/local/bin/ is in your PATH
You may advantageously install version 7.3.0 released on 25th January 18 here
You can run yum whatprovides g++ and it will output a list of different packages versions that provide the the g++ file.
example output:
...
gcc-c++-7.3.1-12.amzn2.x86_64 : C++ support for GCC
Repo : amzn2-core
Matched from:
Filename : /usr/bin/g++
gcc-c++-7.3.1-13.amzn2.x86_64 : C++ support for GCC
Repo : amzn2-core
Matched from:
Filename : /usr/bin/g++
On Amazon Linux 2 you can run sudo yum groupinstall "Development Tools" which will install many compilers and dependencies including g++
Probably like "amazon linux ami release 2016.03", when you have gcc-4.8.3 .
This OS is very close to CentOS 7.2 / RHEL 7.
Please try : # yum install centos-release-scl
If OK, you can do : # yum install devtoolset-4-gcc-c++ ... and get g++, gcc version 5.2.1 .
Enabling "5.2.1" : $ scl enable devtoolset-4 bash . Be aware that the setting is valid for the current terminal session only.
If any issues, I can supply a link to the four packages required for g++, gcc.

Installing node.js on raspberry pi 2

I have installed Raspbian on my Raspberry Pi 2 and now I am trying to install node.js on it, however I am hitting an issue.
I followed the instructions and typed these commands into the terminal
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
But when I check the version of node using
node -v
I get this error:
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /lib/arm-linus-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by node)
I am quite new to using raspberry pi, so any help to fix this issue would be great!
Just putting the response from #Prashant Pathak above here:
Download latest nodejs build for Raspberry Pi:
wget https://nodejs.org/download/release/v0.10.0/node-v0.10.0-linux-arm-pi.tar.gz
Unpack files in local directory:
cd /usr/local
sudo tar xzvf ~/node-v0.10.0-linux-arm-pi.tar.gz --strip=1
That's it.
You can confirm it's there by checking the node version with:
node -v
and:
npm -v
The actual url to get the files for node will change as the version changes, you can always see the list of files available for download here:
http://nodejs.org/download/
All these instructions came from:
http://www.robert-drummond.com/2015/01/08/server-side-javascript-on-a-raspberry-pi-how-to-install-node-js-2/
Alternatively you can upgrade your GCC to V4.8 for this package to work!
Option 1 (the better option):
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
Options 2: Upgrade to Debian Jessie
Replace all instances of "wheezy" in /etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade
After this you download the Node.js using command line as follows:
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
Next step is to install the Node.js:
sudo dpkg -i node_latest_armhf.deb
Finally, you can verify the installation:
node -v
These instructions are mentioned on http://node-arm.herokuapp.com/
That runs for me:
http://blog.wia.io/installing-node-js-v4-0-0-on-a-raspberry-pi/
Raspberry Pi Model A, B, B+ and Compute Module
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz
tar -xvf node-v4.0.0-linux-armv6l.tar.gz
cd node-v4.0.0-linux-armv6l
Raspberry Pi 2 Model B
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz
tar -xvf node-v4.0.0-linux-armv7l.tar.gz
cd node-v4.0.0-linux-armv7l
sudo cp -R * /usr/local/
use nodejs instead of node
sudo apt-get update && sudo apt-get install nodejs
for npm
sudo apt-get install npm
The Latest Node is released for the below platforms, which helped for my old R-PI which is of model name : ARMv6-compatible processor rev 7 (v6l)
https://nodejs.org/download/release/v4.1.0/
node-v4.1.0-linux-arm64.tar.gz 17-Sep-2015 04:24 10886090
node-v4.1.0-linux-arm64.tar.xz 17-Sep-2015 04:24 7100824
node-v4.1.0-linux-armv6l.tar.gz 17-Sep-2015 17:37 10763504
node-v4.1.0-linux-armv6l.tar.xz 18-Sep-2015 00:15 7005048
node-v4.1.0-linux-armv7.tar.gz 17-Sep-2015 05:17 10773951
node-v4.1.0-linux-armv7.tar.xz 17-Sep-2015 05:18 7004760
node-v4.1.0-linux-armv7l.tar.gz 18-Sep-2015 12:58 10773951
You can try the following command:
wget node-arm.herokuapp.com/node_archive_armhf.deb
then
sudo dpkg -i node_archive_armhf.deb
node -v should work now!

how to install adobe air sdk in linux?

i'm trying to install the adobe air sdk in linux. i unzip the package downloaded from http://www.adobe.com/products/air/tools/sdk/ into a folder "AdobeAIRSDK", and add the /bin folder into the PATH environment variable. but when i tried to run the adl, it gives me the following error:
Error loading the runtime (/home/monuser/AdobeAIRSDK/bin/../runtimes/air/linux/Adobe AIR/Versions/1.0/Resources/nss3/None/libnss3.so: file too short)
what's the problem here and how do i get it fixed?
Are you trying to install on a 64-bit OS? Either way, Adobe has a KB on installation that might help.
Installing Adobe Air on Ubuntu 13.10
Install i386 libraries, that are required for successful installation and running of Adobe Air and air applications:
sudo apt-get install libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386
Install gnome-keyring:i386.
It can't be installed using apt-get as other i386 (at least at the moment of writing this), because of it's dependencies. So we'll need to download it and install manually. In fact, this is easy:
download deb-package using apt-get to /tmp:
cd /tmp
sudo apt-get download libgnome-keyring0:i386
extract deb-package into gnome-keyring subfolder (note version in the file name, it may be different):
sudo dpkg-deb -R libgnome-keyring0_3.8.0-2_i386.deb gnome-keyring
install library in the system by copying:
sudo cp gnome-keyring/usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/i386-linux-gnu/
create symlinks so Adobe Air could see it:
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/i386-linux-gnu/libgnome-keyring.so.0
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
Download Adobe Air installer from Adobe official site: http://helpx.adobe.com/air/kb/archived-air-sdk-version.html
Install Adobe Air using downloaded installer (don't forget to allow execution of the installer file):
chmod a+x AdobeAIRInstaller.bin
sudo ./AdobeAIRInstaller.bin
Adobe Air should be installed successfully now! Now you may remove excess symlinks:
sudo rm /usr/lib/libgnome-keyring.so.0
sudo rm /usr/lib/libgnome-keyring.so.0.2.0
Source

Resources