Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
JDV28
Old
(Last edited by JDV28; 24th May 2011 at 08:38 PM.)
#1  
JDV28's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 609
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
If I helped you in any way, please hit the "Thanks" button

My Devices:

:: Black/Grey MT 4G ~ Permarooted + True S=OFF
----CM10.1
----@1.4ghz
 
Gene Poole
Old
#2  
Recognized Contributor
Thanks Meter 510
Posts: 1,622
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 77
Posts: 609
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
If I helped you in any way, please hit the "Thanks" button

My Devices:

:: Black/Grey MT 4G ~ Permarooted + True S=OFF
----CM10.1
----@1.4ghz
 
Gene Poole
Old
#4  
Recognized Contributor
Thanks Meter 510
Posts: 1,622
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 77
Posts: 609
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"
If I helped you in any way, please hit the "Thanks" button

My Devices:

:: Black/Grey MT 4G ~ Permarooted + True S=OFF
----CM10.1
----@1.4ghz
 
Gene Poole
Old
#6  
Recognized Contributor
Thanks Meter 510
Posts: 1,622
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 77
Posts: 609
Join Date: Aug 2010
Location: Chicago
Its working! thank you very much.
If I helped you in any way, please hit the "Thanks" button

My Devices:

:: Black/Grey MT 4G ~ Permarooted + True S=OFF
----CM10.1
----@1.4ghz

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more