Results 1 to 5 of 5

Thread: [SOLVED] file not in PATH, gem executables will not run

  1. #1
    Join Date
    Mar 2007
    Location
    Lampang, Thailand
    Beans
    208
    Distro
    Ubuntu 12.04 Precise Pangolin

    [SOLVED] file not in PATH, gem executables will not run

    Hi,
    I've installed gems for merb - a Ruby web framework and I get these error messages:
    WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and
    /usr/bin aren't both writable.
    WARNING: You don't have /home/roy/.gem/ruby/1.8/bin in your PATH,
    gem executables will not run.
    When i run merb, I get an error message
    $ merb-gen app ruby_bookshop
    bash: merb-gen: command not found

    I tried to make the above files writable but I couldn't save the file permissions I changed as root.
    Could anybody tell me where I can find PATH ?
    Any help much appreciated.

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: file not in PATH, gem executables will not run

    Just add these two lines to the end of your ~/.bashrc.

    Code:
    PATH=$PATH:/home/roy/.gem/ruby/1.8/bin
    export PATH
    Save it and run

    Code:
    source ~/.bashrc
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Mar 2007
    Location
    Lampang, Thailand
    Beans
    208
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: file not in PATH, gem executables will not run

    Hi taurus,

    It worked perfectly. Thank you very much for your very prompt help. It's much appreciated.

    Roy

  4. #4
    Join Date
    Oct 2009
    Beans
    7

    Re: [SOLVED] file not in PATH, gem executables will not run

    Hello Taurus, following your instructions on 11.04 but it didn't work for me (I changed the path to my home directory). I got no responses from adding the lines to .bashrc or running the script using the 'source' command.

  5. #5
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,668
    Distro
    Ubuntu

    Re: [SOLVED] file not in PATH, gem executables will not run

    Hi, please make a new thread rather than digging up old ones.

    Thanks.

    Closed.

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
  •