Error message when setting up ADT in Linux - linux

I installed Ubuntu 11.10, installed GNOME 3 (replaced Unity), installed Eclipse from the Ubuntu Software Center, installed the android sdk and ADT.
Now when I start eclipse I get a message saying:
Failed to get ADB version : Cannot run program
/home/ayush/android-sdk/platform-tools/adb":java.io.IOException:error=2,
No such file or directory
What is causing this error and how do I fix it?

The command to install IA32 libraries on Ubuntu is:
apt-get install ia32-libs

sudo dpkg --add-architecture i386
sudo apt-get update
apt-get install ia32-libs

Before that please check your ubuntu version. if you are running with 64 bits, you need to install a linux emulator, IA32 bit I thinks. Verify on Google.
after that, your ADB can run easily on ubuntu.

I'm using Fedora 17 and I got the same error as the poster:
[2013-08-29 21:44:08 - adb] Unexpected exception 'Cannot run program
"/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb":
error=2, No such file or directory' while attempting to get adb version from
'/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb'
I know this works if you are using Fedora 17/18 (login as root)
yum install redhat-lsb.i686
And then restart the IDE and the errors no longer show.

I had the exact same error as you had, but on my Ubuntu 12.04 LTS version.
The following avoided that error for me:
1) Install 'adb' and 'fastboot' provided by the following third-party PPA.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
2) Replace the copy of 'adb' and 'fastboot' provided by the official Android SDK with those installed from the above step:
cp /usr/bin/adb <path-to-your-adt-sdk-package>/sdk/platform-tools/adb
cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platform-tools/fastboot
3) Restart(re-execute) your eclipse binary.
Full credits:
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
They have the binaries for 12.10, 11.10 and 11.04 as well.

Don't try to install ia32-libs, this library has been obsoleted.
So, you should install these libraries:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Cheers

Related

Abaqus on Ubuntu

Install Abaqus CAE on ubuntu, after selecting install directory and proceed, got following error
Creating child process failed. Log ID is 0001
Action LaunchAPpAction from freature CODE\Linux_a64\SIMCAE_TP.PRD FAILED.
Action ID: verifyNoDeltaInstall
Anybody know how to solve this problem? Thx
Had the same problem. Solved by installing glibc.
On RHEL6
sudo yum install glibc.i686
On Ubuntu 16.04 with Abaqus2017, I installed
sudo apt-get install lsb-core
sudo apt-get install libjpeg62
to get rid of this error
I had to install perl on Red Hat Enterprise Linux release 8.5 (Ootpa) to fix it:
yum install perl

VirtualBox VERR_VM_DRIVER_VERSION_MISMATCH on Ubuntu

I trying to install VirtualBox on Ubuntu 14.04. I've installed VirtualBox from Ubuntu repository:
sudo apt-get install virtualbox
Then I added my user to vboxusers:
sudo usermod -G vboxusers -a user
I also installed an extrapack for my vb vsion:
wget http://download.virtualbox.org/virtualbox/5.0.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack
sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack
But when I trying to start vm, I get an error:
RTR3InitEx failed with rc=-1912 (rc=-1912)The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing '/etc/init.d/vboxdrv setup'may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime
what: 4
VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
And I have no /etc/init.d/vboxdrv file.
How can I fix this problem?
I've removed all the virualbox packages:
sudo apt-get purge 'virtualbox*'
Then I've installed virtualbox v.5
sudo apt-get install virtualbox-5.0
After that I've enabled virtualization in BIOS.
Now it works.
Check what version of virtualbox you installed
dpkg --list 'virtualbox*'
may be it's not aligned with the Extension pack.
Remove your installation
sudo apt-get autoremove 'virtualbox*'
Don't install fron Ubuntu repositories but run a fresh installation following the instuctions from official Oracle Virtualbox Download page about Debian-based Linux distributions.
Check that Virtualbox is running before installing the Extension pack.
I had the same error starting a vm client in ubuntu 16.4 .
Coincidentally I noticed in the file /var/crash/_usr_lib_virtualbox_VirtualBox.0.crash the following message:
Title: VirtualBox crashed with SIGABRT in QMessageLogger::fatal()
UnreportableReason: Sie haben einige veraltete Paketversionen
installiert. Bitte aktualisieren Sie die folgenen Pakete und prüfen
Sie, ob das Problem danach noch auftritt:
virtualbox-dkms
Translated: You have some outdated package versions installed. Please update the following packages and check, if the problem still occurs after that:
After the command:
sudo apt-get install --only-upgrade virtualbox-dkms
all was OK :)

unable to run mksdcard sdk tool ubuntu 16.04 64bit

I downloded android studio and I tried to install on ubuntu 16.04 64 bit but it has "unable to run mksdcard sdk tool" error.
I checked all solutions but they produce errors too.
Seems that the only package you need is lib32stdc++6 for ubuntu 16.04
sudo apt-get install lib32stdc++6
I just stumbled upon this issue myself.
I guess that you found this topic from 2015?
Well, the given solution is a bit outdated but still pertinent: the 64bit Ubuntu 16.04 is indeed missing the 32bits version of the libraries and the
lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 libraries advised to be installed seems to have been removed from the official repos.
However You can still get them with using this command:
sudo apt-get install libz1:i386 libncurses5:i386 libbz2-1.0:i386 libstdc++6:i386
Then the installer should work just fine
Hope it will be of any help.
take a look at https://developer.android.com/studio/install.html
Select Linux...
Required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
For Ubuntu 18.04 and above versions, the following will work
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
Ubuntu18.04

"configure: error: libnl and libnl-genl are required but were not found"

I'm trying to configure powertop-2.5 but when I run ./configure I get a "configure: error: libnl and libnl-genl are required but were not found" error
I've run
sudo apt-get install libtool autoconf libnl-dev ncurses-dev pciutils-dev build-essential -y
as was recommended by these guys but I get the same error.
I ran
sudo apt-get install libnl-genl-3-dev
Which replaced the previous libnl file but I still get the config error.
According to this, powertop has (or had) problems with detecting libnl but I can't figure out how to fix it.
I'm currently running Linux username 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux
I see you tried libnl-dev, maybe try libnl-3-dev instead:
sudo apt-get install libnl-3-dev libnl-genl-3-dev
Probably the problem is the lack of the pkg-config application in your system (which is used to find the proper dependencies with the configure script). I just have the same problem in a fresh installed Ubuntu 14.04 system, and after installing the pkg-config package the configure script finalized successfully its work. Then I could compile and install the last version (2.6.1) of powertop.
I "solved" my problem by installing powertop-2.0 instead.
The use of pkg-config made the trick. I was able to install Powertop 2.7.

QT version is not properly installed, please run make install

I installed QT-creator from a downloaded copy of qt-creator-linux-x86-opensource-2.6.1.bin using
sudo ./qt-creator-linux-x86-opensource-2.6.1.bin
in Ubuntu 11.04
I tried to add QT versions in QT-Creator/Build/QT-versions configuration and it asked for a qmake executable.
I installed it using:
sudo apt-get install qt4-devel
which deployed qmake in /usr/bin/qmake
I selected it in QT-Creator/Build/QT-versions configuration as manual, Qt-4.7.2 (System) /usr/bin/qmake-qt4 but QT version is not properly installed, please run make install message appears and I can't use it in QT-Creator/Build/Kits configuration.
How can I solve the problem and configure qmake for Qt-creator use in project creation?
This solved the problem for me on recent Ubuntu version:
sudo apt-get install qt5-default
Just so this no longer shows up as unanswered:
To install all qt-devel libraries, use
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
In Linux Mint 18.3 (32 bit) it also solved the problem:
sudo apt-get install qt5-default
So that Qt5 (5.5.1) was installed ready-to-use as a kit in QtCreator.
Although to install the Qt 5.9.0 version I had to explicitly download the package from https://download.qt.io/official_releases/qt/5.9/5.9.0/single/ (2 Gb unpacked) .
Then I had to run this command in terminal:
cd /home/username/Downloads/qt-everywhere-opensource-src-5.9.0
Then this command:
./configure
Then this
make
I was having this problem even after sudo apt-get install qt5-default (it was already installed).
However the version of QMake I had pointed to was in the Linux Processor SDK (02.00.02.11)
I fixed it by sourcing the environment setup before running qtcreator. The following shell script did it for me:
source /opt/ti/processor-sdk-linux-am335x-evm-02.00.02.11/linux-devkit/environment-setup
# substitute the location where the SDK is installed.
~/Qt5.9.0/Tools/QtCreator/bin/qtcreator -block
# substitute the location where QTCreator is installed

Resources