3

I tried to install apk file but I can't.

/home/drmohammed/workspace/android/android-sdk-linux/platform-tools/
bash: /home/drmohammed/workspace/android/android-sdk-linux/platform-tools/: Is a directory
./adb install'/home/drmohammed/workspace/android/android-sdk-linux/platform-tools/mobogenie_1028.apk'
bash: ./adb: No such file or directory
./adb installmobogenie_1028.apk' 
>

cd /home/drmohammed/workspace/android/android-sdk-linux/platform-tools/
./adb installFacebook.apk 
./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
  • 2
    @Fabby the OP is trying to use the android debugger on Ubuntu. The error is about a library missing from Ubuntu, the solution posted below involves installing the missing library, once more, on Ubuntu :). – terdon May 23 '15 at 12:02
6

Try these commands:

cd /home/drmohammed/workspace/android/android-sdk-linux/platform-tools/
./adb install mobogenie_1028.apk
./adb 'installmobogenie_1028.apk'

What was wrong?

  1. Needed to be cd. You weren't actually changing directory.

  2. You had no space after install and the path. It may have been causing an issue?

  3. You had an extra quote at the end, which was causing the >. Bash was expecting more input.

    On top of that, you hasn't changed directories with command 1, so there was no file in that location.


Update. Per the edit, you need this answer:

libstdc++.so.6: cannot open shared object file: No such file or directory

Run this command:

apt-get install lib32stdc++6

And then the commands I have already said above:

My pronouns are He / Him

|improve this answer|||||
  • drmohammed@drmohammed-HP-Pavilion-15-Notebook-PC:~$ cd /home/drmohammed/workspace/android/android-sdk-linux/platform-tools/ drmohammed@drmohammed-HP-Pavilion-15-Notebook-PC:~/workspace/android/android-sdk-linux/platform-tools$ drmohammed@drmohammed-HP-Pavilion-15-Notebook-PC:~/workspace/android/android-sdk-linux/platform-tools$ ./adb installFacebook.apk ./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory drmohammed@drmohammed-HP-Pavilion-15-Notebook-PC:~/workspace/android/android-sdk-linux/platform-tools$ – Mohammed Elsayed Apr 25 '15 at 7:53
  • 2
    No, I can't read output pasted into a comment. Please edit into the main question. – Tim Apr 25 '15 at 7:58
  • @MohammedElsayed Please follow this link: askubuntu.com/posts/613723/edit, paste in your code and then I can help. – Tim Apr 25 '15 at 8:29
  • @MohammedElsayed I can't help if you don't do what I've said... – Tim Apr 25 '15 at 12:21
  • @Tim I believe this is your output. – Seth Apr 25 '15 at 16:00
0

i have this same message error to run emulators and solved like this :

sudo ln -sf   /usr/lib/x86_64-linux-gnu/libstdc++ <your-android-sdk-path>/Sdk/emulator/lib64/libstdc++/libstdc++.so.6
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.