April Fools Round Up: The Year of Nostalgia

April Fools Day is once again upon us and as usual, tech companies everywhere have not … more

Android 5.1 OTA for Nexus Round-Up

The beginning of April is dominated by April Fools. There are jokes and pranks everywhere, which are … more

Official Lollipop for LG G2 Captured

LG is rolling out the Lollipop update for the LG G2. KDZ images for both 16 GB and 32 GB variants … more

Google’s Prank Roundup for April Fools 2015 [Updated]

Once again, we have arrived on the most magical of holidays – … more
Post Reply Subscribe to Thread Email Thread

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

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: 555
 
1,672 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: 555
 
1,672 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: 555
 
1,672 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