New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
final step requires sudo for install of bundler, rails, heroku, tap and pg #12
Comments
I would love to see if anyone could spend 2 minutes to possibly help fix this. I am getting the same error. |
It shouldn't be necessary to sudo. These commands should be run in the context of the rvm'ed Ruby 1.9.2. I'm not sure what the cause of the problem is here. |
the cause, i think, is this error
|
I am having this issue as well |
@kurtzilla1, do you have Zsh as your shell? I do. Maybe that's the problem, script expects bash shell? |
I have tried running the laptop script in both bash and zsh...whenever it tries to source the .zshrc it fails. I think this is the root cause, because when it tries to install rails, it thinks it is in hash mode, instead of function mode. |
I tried running it in zsh as well as bash and ran into the same thing. Any chance that it has something in the thoughtbot dotfiles that it relies on to make this work properly? |
This is actually an rvm issue with the new rvm-installer |
FWIW, the script mostly runs and just fails when it starts to do the "ruby" portion of things. In the "ruby" script there is this:
and the "use" is the place where it chokes. I'm running with Xcode 4.3.x installed, so after the script choked I just ran:
to ensure I had the right rvm Because of the Xcode 4.3.x install, I do not have "autoreconf", so I had to get that:
(thankfully, brew was already installed when this "laptop" script ran, so this worked out fine). then
and
In fact, I ensured it was the default
Check the version of ruby, all was good. Then I just ran the rest of the commands in the "ruby" and "heroku" scripts... the scripts are simple, just a bunch of echo's and "gem" or "heroku" commands. So just ran them all manually. Seems to be alright.... seems to be. |
hsoi's tips seem to have solved the issue for me as well. However I still needed to follow all of the instructions at http://tammersaleh.com/posts/installing-postgresql-for-rails-3-1-on-lion to get postgresql working. |
I also got this to work on Lion using the So why not something like this:
Were I better at scripting, I would patch this myself. I do know OS X version number is available using |
There's a 1.9.3 reference in there, is that intentional? Thx, Michael. On Tue, May 29, 2012 at 8:18 AM, Adarsh Pandit <
|
Yes, the script should probably be updated re: Ruby version. |
These shell actions should only proceed if they succeed. The simple way is to use
} means that we could do
|
I believe the option that solves it is |
I bought a new Mac Air on 10/2/2011
These instructions are very helpful.
An issue that I found is that the last step, running the script to install bundler, rails, heroku, tap and pg fails with permission issues.
So I am running the steps to install the components manually with sudo
Installing Bundler for managing Ruby libraries ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing Rails to write and run web applications ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Heroku gem to interact with the http://heroku.com API ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Installing the pg gem to talk to Postgres databases ...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
The text was updated successfully, but these errors were encountered: