SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ruby path set incorrectly, or multiple copies of ruby installed?

    Hello all,

    I am working from "build your own ruby on rails applications". Everything was working well for me, until i tried to set the path to mysql. did so by setting it in .bash_profile. I may have accidentally changed something else, but this is the last thing i remember doing before ruby started behaving strangely. when i try to fire up ruby script/console i get this error:

    ./script/../config/boot.rb:18:in `require': No such file to load -- rubygems (LoadError)
    from ./script/../config/boot.rb:18
    from script/console:2:in `require'
    from script/console:2

    I believe this is due to an incorrect path setting.. but it might also be that i have multiple copies of ruby installed?? because i can generally get the ruby command to work now by typing /usr/local/bin/ruby or /usr/local/bin/rake db:migrate. Any help greatly appreciated. I am on Mac OS X, and am fairly new to Terminal/UNIX. thanks


    - bess

  2. #2
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what does it output when you type
    echo $PATH
    and where is your mysql installed to?
    If you give someone a program,
    you will frustrate them for a day;
    if you teach them how to program,
    you will frustrate them for a lifetime.

  3. #3
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello,

    thanks for the reply.. echo $PATH is

    /usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin

    and mysql is installed in:
    /usr/local/mysql-5.0.41-osx10.4-i686

    but there is also
    /usr/local/mysql

    which i believe is an older version? but i only installed - perhaps this version is included with Tiger.

    so - is this path set correctly? thanks again for the help.



    -bess


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •