Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,165 Members 44,001 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
JDV28
Old
(Last edited by JDV28; 24th May 2011 at 08:38 PM.)
#1  
JDV28's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 645
Join Date: Aug 2010
Location: Chicago
Question [Q] Error trying to copy proprietary files [Solved]

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
My Devices:

:: Grey Note II ~ Rooted ~
:::::: PAC_Man (4.3.1) || Jedi Master 18 (4.1.2)
:: LymeGreen Galaxy Gear ~ Rooted ~
 
Gene Poole
Old
#2  
Recognized Contributor
Thanks Meter 551
Posts: 1,667
Join Date: Jul 2010
Location: Brighton IL
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).
 
JDV28
Old
#3  
JDV28's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 645
Join Date: Aug 2010
Location: Chicago
Quote:
Originally Posted by Gene Poole View Post
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
My Devices:

:: Grey Note II ~ Rooted ~
:::::: PAC_Man (4.3.1) || Jedi Master 18 (4.1.2)
:: LymeGreen Galaxy Gear ~ Rooted ~
 
Gene Poole
Old
#4  
Recognized Contributor
Thanks Meter 551
Posts: 1,667
Join Date: Jul 2010
Location: Brighton IL
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: [ Click to Expand ]
 
JDV28
Old
#5  
JDV28's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 645
Join Date: Aug 2010
Location: Chicago
Quote:
Originally Posted by Gene Poole View Post
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"
My Devices:

:: Grey Note II ~ Rooted ~
:::::: PAC_Man (4.3.1) || Jedi Master 18 (4.1.2)
:: LymeGreen Galaxy Gear ~ Rooted ~
 
Gene Poole
Old
#6  
Recognized Contributor
Thanks Meter 551
Posts: 1,667
Join Date: Jul 2010
Location: Brighton IL
Quote:
Originally Posted by JDV28 View Post
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: [ Click to Expand ]
 
JDV28
Old
#7  
JDV28's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 645
Join Date: Aug 2010
Location: Chicago
Its working! thank you very much.
My Devices:

:: Grey Note II ~ Rooted ~
:::::: PAC_Man (4.3.1) || Jedi Master 18 (4.1.2)
:: LymeGreen Galaxy Gear ~ Rooted ~

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Get Your Cargo to its Destination in 4×4 Military Operations Reborn

Racing games have evolved quite a bit since the days of Pole … more

Automate Your Device with Sfen

Changing the profile of yourdevice manually is now long forgotten. Since the advent of Android automation … more

Galaxy Photo Screen Lock Displays a Photo Slideshow on Your Lock Screen

Being the most often looked at part of our devices UI, the lock … more

Boost the LG G3 Speaker and Headphone Volume

It seems like OEMs are stepping up their game, with regards to thequality of their devices sound … more