Unrecognized Path in .bash_profile


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unrecognized Path in .bash_profile
# 1  
Old 09-01-2007
Unrecognized Path in .bash_profile

Dear experts,

I have installed Ruby in the following directory:

Code:
[ewijaya@defiant .ruby]$ pwd
/home/ewijaya/.ruby
[ewijaya@defiant .ruby]$ ls
bin  lib  share


And I have also stated the PATH in my bash_profile like this:

Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:$HOME/.ruby/bin:$HOME/.lynx/bin
export PATH

Although I have issued a "source" command and then try to check location of the new installed ruby in a new console, it was given as this:

Code:
[ewijaya@defiant .ruby]$ which ruby
/usr/bin/ruby

instead of
Code:
[ewijaya@defiant .ruby]$ which ruby
~/.ruby/bin/ruby

How can I get my Linux box to recognize the new location of my Ruby 1.8.6?

The reason why I want to install ruby in my home directory is because I the default ruby is broken and based on old version 1.8.5. The one I want to install is ruby 1.8.6.

Thanks and hope to hear from you again.

--
Edward
# 2  
Old 09-01-2007
PATH=~/.ruby/bin:$PATH
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unrecognized option: sparc-sun-Solaris2.10/bin/as: unrecognized option `-m32'

Hi, I installed some packages required by an app built with python. But when I try python setup.py install, I get the following error: /opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32' Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies

2. SCO

Unsuccessful install due to unrecognized disk issue

Dear Community! i try to instaled the sco 6 in hp proliant ML350g8 but unsucces, the trouble when i do instaled it undetected hardisk please help me :(:o (7 Replies)
Discussion started by: mnr
7 Replies

3. Hardware

Unrecognized disk label on my external HD

Hi everyone, I have an external hard drive and I accidentally deleted the partition table. Can I restore my files? If I try to run the f-disk command this is what it says Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units =... (1 Reply)
Discussion started by: Sampa
1 Replies

4. Shell Programming and Scripting

Issue with unrecognized zip format

Hi Friend, i have tried to generated zip file and received with attached mail by. But attachment file is unrecognized format not zip file by crontab, which is not able open. but there is no issue when the script is ran manually but i have received zip format. i am appriciate for your... (9 Replies)
Discussion started by: Jewel
9 Replies

5. Red Hat

Unrecognized Spanish characters from windows to Linux

Background: I want to upload the file from windows to RHEL5 server, the file stores Spanish words with UTF-8 encoding. it's used as the data source for loading to database. some special characters in files like following. í ó Ñ á Linux setting: $ echo $LANG en_US.UTF-8 I... (1 Reply)
Discussion started by: ambious
1 Replies

6. Solaris

Solaris 9 : gcc unrecognized -rdynamic option

Hi all, I'm trying to compile gdb (7.4.1) 64 bit on Solaris 9 SPARC. First, I launch the configuration ~/gdb-7.4.1$>CC="gcc -m64" ./configure --disable-tui --prefix=$HOME/destdir/ Then, compilation ~/gdb-7.4.1$>make During compilation gcc (3.4.6) is not enable to recognized the option... (0 Replies)
Discussion started by: bubsland
0 Replies

7. UNIX for Dummies Questions & Answers

Configure $PATH in /.bash_profile or /etc/paths?

Hi - I am trying to include the MSQ.exe that I have downloaded for the sake of learning. My current /.bash_profile file reads: PATH=/Library/Frameworks/Python.framework/Versions/3.1/bin:/Applications/XAMPP/xamppfiles/bin:$PATH export PATH ----------------------------------- ... (4 Replies)
Discussion started by: Alexander4444
4 Replies

8. Emergency UNIX and Linux Support

unrecognized vxfs version after vgimport

Hi! We have two HP-UX 11.23. I created VG on host A, exported and imported it on host B, but when I try to mount any LV I get "unrecognized vxfs version" version error. Could anyone please suggest something I can do in this situation? I tried to import VG back to host A and I successfully mounted... (3 Replies)
Discussion started by: Sapfeer
3 Replies

9. Hardware

Unrecognized disk label of a external HD

I have a external HD that I can't seem to open. When I try to open it with gparted it says unrecognized disk. When I run gparted from the terminal this is what it says. ~ $ sudo gparted ====================== libparted : 2.2 ====================== /dev/sdb: unrecognised disk label When I... (18 Replies)
Discussion started by: cokedude
18 Replies

10. UNIX for Dummies Questions & Answers

Editing $PATH in .bash_profile

Hello, I'm trying to add my bin directory to my path by editing the .bash_profile. I'm adding the following: PATH=$HOME/bin But then when I type in "echo $PATH" my bin directory is not added. Do I need to do something to make this take affect or am I going about this wrong. :confused: ... (9 Replies)
Discussion started by: Atama
9 Replies
Login or Register to Ask a Question