Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unrecognized Path in .bash_profile Post 302134579 by monkfan on Saturday 1st of September 2007 12:13:33 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
RI(1)							 Ruby Programmers Reference Guide						     RI(1)

NAME
ri -- Ruby API reference front end SYNOPSIS
ri [-Ti] [-d directory] [-f format] [--list-doc-dirs] [--no-standard-docs] [--[no-]{system|site|gems|home}] [--[no-]use-cache] [--width=width] [target ...] DESCRIPTION
ri is a CLI front end for the Ruby API reference. You can search and read API reference for classes and methods with ri. ri is a part of Ruby. target can be one of the following forms: Class for classes Class::method for class methods Class#method for instance methods Class.method for both class and instance methods method for both class and instance methods All class names may be abbreviated to their minimum unambiguous form. If a name is ambiguous, all valid options will be listed. For example: ri Fil ri File ri File.new ri zip Note that shell quoting may be required for method names containing punctuation: ri 'Array.[]' ri compact OPTIONS
--version Prints the version of ri. -T --no-pager Send output directly to stdout, rather than to a pager. -d directory --doc-dir=directory List of directories from which to source documentation in addition to the standard directories. May be repeated. -f FORMAT --fmt FORMAT --format=FORMAT Format to use when displaying output: ansi, bs, html, plain, simple Use 'bs' (backspace) with most pager programs. To use ANSI, either disable the pager or tell the pager to allow control char- acters. -i --interactive This makes ri go into interactive mode. When ri is in interactive mode it will allow the user to disambiguate lists of methods in case multiple methods match against a method search string. It also will allow the user to enter in a method name (with auto-completion, if readline is sup- ported) when viewing a class. --list-doc-dirs List the directories from which ri will source documentation on stdout and exit. --no-standard-docs Do not include documentation from the Ruby standard library, site_lib, installed gems, or ~/.rdoc. Equivalent to specifying the options --no-system, --no-site, --no-gems, and --no-home. --[no-]system Include documentation from Ruby's standard library. Defaults to true. --[no-]site Include documentation from libraries installed in site_lib. Defaults to true. --[no-]gems Include documentation from RubyGems. Defaults to true. --[no-]home Include documentation stored in ~/.rdoc. Defaults to true. --[no-]use-cache Whether or not to use ri's cache. True by default. -w width --width=width Set the width of the output. ENVIRONMENT
RI Additional options. PAGER Used as the name of pager program for displaying. HOME USERPROFILE HOMEPATH Path to user's home directory. FILES
~/.ri Caches recently referenced documents here. ~/.rdoc Searches user-wide documents here. SEE ALSO
ruby(1) rdoc(1) gem(1) REPORTING BUGS
Security vulnerabilities should be reported via an email to <security@ruby-lang.org>. Reported problems will be published after being fixed. And you can report other bugs and feature requests via the Ruby Issue Tracking System (http://bugs.ruby-lang.org). Do not report security vulnerabilities via the system because it publishes the vulnerabilities immediately. AUTHORS
Written by Dave Thomas <dave@pragmaticprogrammer.com> UNIX
November 7, 2012 UNIX
All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy