![]() |
|
|
#1 |
![]() Join Date: May 2008
Location: North Carolina
Posts: 1,228 (0.67/day)
Thanks: 446
Thanked 225 Times in 201 Posts
|
Add a path to $PATH?
This is probably a simple question. I'm trying to install something. Here are the instructions that I'm having trouble with.
Code:
1. Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd ~
$ mkdir bin
$ echo $PATH
Code:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games I just need for ~/bin to be in the $PATH file. This is all on Ubuntu 9.04. Any help would be awesome. Thanks.
|
|
|
|
|
|
#2 | |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
Quote:
|
|
|
|
|
|
|
#3 | |
![]() Join Date: May 2008
Location: North Carolina
Posts: 1,228 (0.67/day)
Thanks: 446
Thanked 225 Times in 201 Posts
|
Quote:
Just for clarification, the snippet of instructions I gave is just a few steps in the installation process. Nothing is actually supposed to be installed with those steps. Thanks for the reply. |
|
|
|
|
|
|
#4 | |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
Quote:
|
|
|
|
|
|
|
#5 | |
![]() Join Date: May 2008
Location: North Carolina
Posts: 1,228 (0.67/day)
Thanks: 446
Thanked 225 Times in 201 Posts
|
Quote:
I don't understand what the echo $PATH command is saying. Is it giving me a list of directories seperated by colans? Or is it saying something else. The format of the output confuses me. And I've found a workaround. Adding a directory to the $PATH file lets you call files in that directory without typing the whole location. For example, I'd be able to type 'repo' to use Repo instead of '~/bin/repo'. And actually, that's the workaround. Because ~/bin is not in my $PATH file, I have to call repo manually. Minor inconvenience, but at least it works. For anyone who cares about the results of me trying Android, I got stuck again. They say you need 1.5GB of RAM in order to compile it. Well, the machine I was using only had 512MB. My main Linux machine (my laptop) only has 1GB and I haven't gotten around to installing Linux on my powerful desktop with 4GB of RAM. So later today I'm gonna boot a live CD and try it again on my desktop. I'll make a thread about it if I get it to work... |
|
|
|
|
|
|
#6 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,223 (4.29/day)
Thanks: 1,207
Thanked 2,775 Times in 1,793 Posts
|
yea i wouldnt have a clue about how android works. do you install it over linux or entirely on its own?
|
|
|
|
|
|
#7 |
![]() Join Date: Mar 2005
Location: USA
Posts: 2,103 (0.70/day)
Thanks: 131
Thanked 517 Times in 383 Posts
|
Are you looking for the pathing to be Pre or Past? Also you need to understand what the full path is.
What that output is stating is that those values (directory paths) are included in your PATH statement. Meaning it can pull library files and other files from those directories without you having to write the full path everytime. Each path is seperated by ":"
__________________
i7 930 @ 4.2Ghz GIGABYTE x58 UD7 Kingston HyperX T1 Series 12GB GIGABYTE 7970 (1280/1800) OCZ Vertex 2 100GB SSD & VelociRaptor 300GB HEATWARE |
|
|
|
|
|
#8 | |||
![]() Join Date: May 2008
Location: North Carolina
Posts: 1,228 (0.67/day)
Thanks: 446
Thanked 225 Times in 201 Posts
|
Quote:
![]() Quote:
Quote:
Thanks. |
|||
|
|
|
|
|
#9 |
![]() Join Date: Mar 2005
Location: USA
Posts: 2,103 (0.70/day)
Thanks: 131
Thanked 517 Times in 383 Posts
|
":/usr/local/bin" ":/usr/bin:"
It is already in the path. Assuming /usr is your home directory.
__________________
i7 930 @ 4.2Ghz GIGABYTE x58 UD7 Kingston HyperX T1 Series 12GB GIGABYTE 7970 (1280/1800) OCZ Vertex 2 100GB SSD & VelociRaptor 300GB HEATWARE |
|
|
|
|
|
#10 | |
![]() Join Date: Sep 2006
Location: Norn Iron
Posts: 2,056 (0.85/day)
Thanks: 214
Thanked 679 Times in 516 Posts
|
To add ~/bin to $PATH try this -
Quote:
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| which Drawing path? | Morgoth | General Hardware | 4 | Jun 16, 2009 04:24 PM |
| Upgrade path stagnated. | Nick89 | General Hardware | 10 | May 12, 2009 09:00 PM |
| Upgrade Path | Kenshai | System Builder's Advice | 27 | Apr 27, 2009 02:14 AM |
| Upgrade path dilemma | Apocalypsee | General Hardware | 7 | Dec 30, 2008 03:44 PM |