LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-29-2013, 01:32 PM   #1
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Rep: Reputation: 20
Android adb broke after updates to -current


I'm running Slackware64-current. I was working on a project in Eclipse ADT, which I have installed in /opt. I was able to build and run my project successfully today. Then, while I still had it open, I thought I would upgrade -current since I had forgotten to do it in the last 2 weeks. After that, Eclipse started showing errors and I could no longer run my project. After cleaning and restarting Eclipse, I got an Eclipse error saying it could not run the adb program because there was no such file or directory. This shows up in a dialog box and will not let me run any projects that should be working.

Quote:
14:13:48 - adb] Unexpected exception 'Cannot run program "/opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb'
I am pretty new to programming and using Eclipse, so I hope someone can help shed some light on this. Honestly, I'm not really sure if it belongs in the Slackware forum at all, except that I know it was something that happened when I upgraded.

Help appreciated!

Edit:

I forgot to say that I did check to see if adb was where it was looking for it, and it is.

Code:
bash-4.2$ pwd
/opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools
bash-4.2$ ls -l
total 1.7M
-rw-rw---- 1 miranden users 246K Jul 25 18:59 NOTICE.txt
-rwxrwx--- 1 miranden users 1.2M Jul 25 18:58 adb
drwxrwx--- 2 miranden users 4.0K Jul 25 18:59 api
-rwxrwx--- 1 miranden users 193K Jul 25 18:58 fastboot
-rw-rw---- 1 miranden users   39 Jul 25 18:58 source.properties
drwxrwx--- 2 miranden users 4.0K Jul 25 18:58 systrace

Last edited by Miranden; 10-29-2013 at 01:49 PM. Reason: more details
 
Old 10-29-2013, 01:48 PM   #2
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Rep: Reputation: 40
I used adb couple times, but in a diferente way.
Since it is a binary file, i just put the path/for/adb on my profile or on my bashrc, changed the adb file to executable and then i can call <adb> from command line.
Did you try to reinstall the SDK? How did you install it?
Check if the file /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb still exists and check its permissions too.
 
Old 10-29-2013, 02:46 PM   #3
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by frushiyama View Post
I used adb couple times, but in a diferente way.
Since it is a binary file, i just put the path/for/adb on my profile or on my bashrc, changed the adb file to executable and then i can call <adb> from command line.
Did you try to reinstall the SDK? How did you install it?
Check if the file /opt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb still exists and check its permissions too.

I think I cross posted with you on my edit. I did check the file and the permissions, which I added above. It looks okay I think. The file is definitely still there.

I am leery of changing the way adb is called by Eclipse as a workaround. It worked fine before, and now it doesn't, so I would rather just figure out what went wrong.

I installed the SDK that was included in the ADT bundle for Linux. I just put everything into /opt. But then I had install all the different versions of the API I needed from within the Eclipse Android SDK Manager, and that took a very long time. Therefore, wanted to see if there was a better way of fixing it before I tried to reinstall it.

That will be the next step, though, if this is a dead end.
 
Old 11-01-2013, 10:12 AM   #4
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
cany ou run adb without eclipse? (cd to the sdk directory then do "./adb devices" and you should see your android device number - or at least it should try to list the devices) If so then I think eclipse is looking in the wrong place and you can correct it in the "sdk location" option in eclipse preferences.
If you can't run it then I think your system needs attention - were you running compat32 packages? If those were upgraded with pure 64 bit packages then that maybe the problem. The solution would be to reinstall the compat 32 packages and try again.
 
1 members found this post helpful.
Old 11-03-2013, 03:33 PM   #5
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
I can confirm the breakage and also the fix. Just update to the latest -current compat32 libraries from Alien Bob and the error disappears. You'll notice the emulator wouldn't start too, fixed.
 
1 members found this post helpful.
Old 11-04-2013, 02:26 PM   #6
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by 01micko View Post
I can confirm the breakage and also the fix. Just update to the latest -current compat32 libraries from Alien Bob and the error disappears. You'll notice the emulator wouldn't start too, fixed.
Thanks. I thought a few days ago that it was probably a multilib problem, but couldn't say for sure it because I had a bunch of other errors on my project that I needed to resolve before confirming everything was fine. I'm not surprised it was something I was supposed to do and didn't. I should have thought of multilib in the beginning.

All fixed now!
 
Old 11-04-2013, 02:54 PM   #7
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
Glad to be of help.

When 14.1 goes live I am considering running slackpkg+ to avoid these little issues. Going to read up about it.
 
Old 11-04-2013, 05:25 PM   #8
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 15.0 Multilib
Posts: 313

Rep: Reputation: 52
Quote:
Originally Posted by 01micko View Post
Glad to be of help.

When 14.1 goes live I am considering running slackpkg+ to avoid these little issues. Going to read up about it.
Excellent idea. I did the same thing and am glad I did. It makes system maintenance, especially with a multilib system, much easier.
 
Old 11-05-2013, 11:29 AM   #9
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by 01micko View Post
Glad to be of help.

When 14.1 goes live I am considering running slackpkg+ to avoid these little issues. Going to read up about it.
Thanks, I didn't even know that existed. I admit I am intrigued by it, as this is not the first time I've been bitten by not keeping up with multlib. However, I wonder if it would not be better for me just to learn to keep up with multilib properly.

What I have been doing is basically just following all the steps in Alien's wiki from start to finish every time I need to update multilib. This means that I download the entire directory here from scratch with wget, install all the gcc and glibc packages plus the compat32 package, and then install everything in the compat32 folder. Is this how I am supposed to be doing it? It seems like I am missing something.
 
Old 11-05-2013, 12:38 PM   #10
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil, SP - Cosmópolis
Distribution: Slackware
Posts: 171

Rep: Reputation: 40
Quote:
Originally Posted by Miranden View Post
What I have been doing is basically just following all the steps in Alien's wiki from start to finish every time I need to update multilib. This means that I download the entire directory here from scratch with wget, install all the gcc and glibc packages plus the compat32 package, and then install everything in the compat32 folder. Is this how I am supposed to be doing it? It seems like I am missing something.
I had troubles one time when i was in a upgrade process of multilib because i download all in same folder that i had the older versions.
Now i just rm -rf entire directory in which i download before start download all file when it is need to upgrade.
 
Old 11-05-2013, 02:11 PM   #11
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
Quote:
Originally Posted by frushiyama View Post
I had troubles one time when i was in a upgrade process of multilib because i download all in same folder that i had the older versions.
Now i just rm -rf entire directory in which i download before start download all file when it is need to upgrade.
That's where rsync and checking the changelog would be put to good use. Then only upgrade what is necessary. Admittedly I did it from scratch myself because all the -compat32 packages were refreshed on November 1. It might be the lazy way out to use slackpkg+ but IMHO it is more efficient since it is only one operation to take care of the whole system.
 
Old 11-05-2013, 03:40 PM   #12
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 363

Rep: Reputation: 85
I think I'll try slackpgk+. Thanks for pointing it out.

Last edited by Kallaste; 11-05-2013 at 03:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Current updates (ruby?) from Jun 27 broke torrent clients sardinha Slackware 4 06-28-2013 08:16 AM
android adb push to external sdcard fails penguinator Linux - Mobile 2 12-04-2012 06:27 PM
[SOLVED] new current updates broke my eeepc leeeoooooo Slackware 2 06-30-2012 09:44 AM
Ubuntu connect to Android with adb, cannot see it! Please help! PeterUK Ubuntu 8 04-30-2012 02:25 AM
[SOLVED] Latest updates to -current broke alt-tab in kde vulcan59 Slackware 10 03-12-2011 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration