Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9228675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:22:59+00:00 2026-06-18T05:22:59+00:00

I have followed this thread and followed Linuxios’ answer, everything was working fine but

  • 0

I have followed this thread and followed Linuxios’ answer, everything was working fine but then I get

-bash: export: `[[': not a valid identifier
-bash: export: `-s': not a valid identifier
-bash: export: `/Users/duaneadam/.rvm/scripts/rvm': not a valid identifier
-bash: export: `]]': not a valid identifier

So, I went and removed from .bash__profile via Terminal.

export PATH=$PATH:/usr/local/git/bin/ [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function

.. thinking that lines of code is the problem but what I get after that is even worse. For some reasons.. Ruby is not installed.. again.
So, I re-added the lines of code and tried rebooting/restarting my Mac but problem still persist.
Screenshots:

.bash_profile:
.bash_profile
Solution please? I even tried re-installing using his method.
Gosh, this is hard maybe Ruby on Rails isn’t just for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:23:00+00:00Added an answer on June 18, 2026 at 5:23 am

    Setting up ruby with rvm can get pretty complicated at times.
    A few golden rules is never to sudo when using a package manager like rvm.

    Try the following:

    • rvm implode (This essentially removes the rvm installation
      completely.)
    • Remove all references of rvm from ~/.bash_profile and ~/.bashrc
    • which ruby (The output should be something like /usr/bin, also ruby --version should be 1.8.7, the default bundled with OS X.)
    • Install rvm again in a single user mode.
    • Install the ruby version of your choice.
    • Make sure to create the .rvmrc file where ever the ruby program resides. (Typical contents of .rvmrc -> rvm use ruby-version@gemset-name --create; eg: rvm use 1.9.3@my-awesome-project --create)
    • cd into the directory with .rvmrc
    • Make sure the right gemset is loaded with rvm gemset list

    Also ensure that rvm is loaded as a function. (You can verify this by typing type rvm | head -1 in the console.)

    Some more points, which were helpful to me from http://jfire.io/blog/2012/03/02/xcode-4-dot-3-homebrew-and-ruby/:

    • Install apple-gcc42, autoconf and automake (Using a package manager like homebrew can be useful.)
    • Also rvm requirements tells you what are the other tools you need to install.

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have followed the answer to this thread C# import excel filesheet to sql
I followed this guide here perfectly and have gone through it again but when
I have followed this thread now when i try to build using maven plugin
My site was working fine until I followed this guide, http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-9.10 to set up
I've followed THIS thread to remove the border that surrounds the Gallery, but the
I followed this thread . I now have: <a href=# onclick=$('#gc').load('test');>reload</a>... </span> <div id=gc>
I have imported Reachable and followed the chosen anser on this thread: Reachability Guide
I've followed another stackover flow thread to get to this point, it was this
I have read and added a question to this thread http://code.google.com/p/fullcalendar/issues/detail?id=143 but its a
I have followed this guide: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html I have created a maven-plugin project hello-maven-plugin with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.