Android L is for Lockdown

Root is, without a doubt, the (un)holy grail of the Android world. Those wonderful permissions that allow you as … more

XDA Xposed Tuesday: XHangouts Will Improve Your Hangouts

Ever since Google started supporting text messaging in Hangouts many people have … more

Shattered Screen? Turn Your Broken Device into a Complete Media Center!

A cracked screen usually means you’ll have to spend a hefty … more

Gmail 5.0: Material Design and Multiple Account Support

Google started to materialize many of its applications right after announcing the … more
Post Reply

[Q] Error trying to copy proprietary files [Solved]

OP JDV28

24th May 2011, 05:52 AM   |  #1  
JDV28's Avatar
OP Senior Member
Chicago
Thanks Meter: 85
 
645 posts
Join Date:Joined: Aug 2010
More
I have an HTC Glacier (MT 4G), and I'm trying to get to the point where i can compile the CM source. following this guide, Im at the step called "Copy Proprietary Files" but when I execute the command "./extract-files.sh" I get flooded with errors::

./extract-files.sh: 21: adb: not found
./extract-files.sh: 22: adb: not found
./extract-files.sh: 23: adb: not found
./extract-files.sh: 24: adb: not found
./extract-files.sh: 25: adb: not found
./extract-files.sh: 26: adb: not found
./extract-files.sh: 27: adb: not found
./extract-files.sh: 28: adb: not found
./extract-files.sh: 29: adb: not found
./extract-files.sh: 30: adb: not found
./extract-files.sh: 31: adb: not found
./extract-files.sh: 32: adb: not found
./extract-files.sh: 33: adb: not found
./extract-files.sh: 34: adb: not found
./extract-files.sh: 35: adb: not found
./extract-files.sh: 36: adb: not found
./extract-files.sh: 37: adb: not found
./extract-files.sh: 38: adb: not found
./extract-files.sh: 39: adb: not found
./extract-files.sh: 40: adb: not found
./extract-files.sh: 41: adb: not found
./extract-files.sh: 42: adb: not found
./extract-files.sh: 43: adb: not found
./extract-files.sh: 44: adb: not found
./extract-files.sh: 45: adb: not found
./extract-files.sh: 46: adb: not found
./extract-files.sh: 47: adb: not found
./extract-files.sh: 48: adb: not found
./extract-files.sh: 49: adb: not found
./extract-files.sh: 50: adb: not found
./extract-files.sh: 51: adb: not found

Any Ideas? I am using Ubuntu 10.10 (via VMware Workstation)

edit: Yes the phone shows up with ./adb devices
Last edited by JDV28; 24th May 2011 at 08:38 PM.
24th May 2011, 02:28 PM   |  #2  
Recognized Contributor
Flag Brighton IL
Thanks Meter: 551
 
1,667 posts
Join Date:Joined: Jul 2010
More
the ./adb implies that adb is NOT in the path. Try adding its location to your path or creating a symlink to adb in /usr/local/bin (that's what I did).
24th May 2011, 04:18 PM   |  #3  
JDV28's Avatar
OP Senior Member
Chicago
Thanks Meter: 85
 
645 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by Gene Poole

the ./adb implies that adb is NOT in the path. Try adding its location to your path or creating a symlink to adb in /usr/local/bin (that's what I did).

could you go into that a bit more? im only 2 days into this
24th May 2011, 05:30 PM   |  #4  
Recognized Contributor
Flag Brighton IL
Thanks Meter: 551
 
1,667 posts
Join Date:Joined: Jul 2010
More
When you type "./adb devices" what directory are you in (try "pwd" if you don't know)? Add this directory to your global PATH environment variable (I'm not sure how to do this in Ubuntu). Otherwise, you can create a symlink: as root, "ln -s [path_to_adb] /usr/local/bin/adb" where path_to_adb is the complete path including the adb file itself (i.e. "/opt/android-sdk-linux_x86/platform-tools/adb" in my case).
The Following User Says Thank You to Gene Poole For This Useful Post: [ View ]
24th May 2011, 06:48 PM   |  #5  
JDV28's Avatar
OP Senior Member
Chicago
Thanks Meter: 85
 
645 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by Gene Poole

When you type "./adb devices" what directory are you in (try "pwd" if you don't know)? Add this directory to your global PATH environment variable (I'm not sure how to do this in Ubuntu). Otherwise, you can create a symlink: as root, "ln -s [path_to_adb] /usr/local/bin/adb" where path_to_adb is the complete path including the adb file itself (i.e. "/opt/android-sdk-linux_x86/platform-tools/adb" in my case).

Its in ~/android-sdk-linux_x86/platform-tools
when i try creating that symlink i get:
"ln: creating symbolic link 'usr/local/bin/adb': No such file or directory"
24th May 2011, 07:14 PM   |  #6  
Recognized Contributor
Flag Brighton IL
Thanks Meter: 551
 
1,667 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by JDV28

Its in ~/android-sdk-linux_x86/platform-tools
when i try creating that symlink i get:
"ln: creating symbolic link 'usr/local/bin/adb': No such file or directory"

it's: /usr/local/bin/adb

try exactly this:
Code:
ln -s ~/android-sdk-linux_x86/platform-tools/adb /usr/local/bin/adb
The Following 2 Users Say Thank You to Gene Poole For This Useful Post: [ View ]
24th May 2011, 07:21 PM   |  #7  
JDV28's Avatar
OP Senior Member
Chicago
Thanks Meter: 85
 
645 posts
Join Date:Joined: Aug 2010
More
Its working! thank you very much.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software Development by ThreadRank