Setup MacOS 10.10 Yosemite Discussion
When i say rails new App, it gives sortof an error saying Install missing gem with bundle install. how exactly do i fix this problem ?
Do i do run the command bundle install ?
Thanks in advance.
i am using ZSH instead of BASH. Will the above still work? i see a lot of commands have bash in them.
I am getting the following error when i try to install PostregSQL and try and access it
➜ ~ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Trying to install Ruby but i am getting the following and it is not setting the default one.
➜ ~ rbenv install 2.2.2
Downloading ruby-2.2.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudf...
Installing ruby-2.2.2...
Installed ruby-2.2.2 to /Users/harshamv/.rbenv/versions/2.2.2
➜ ~ rbenv global 2.2.2
➜ ~ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
➜ ~
Hi bonjour, j'ai un gros soucis depuis plusieurs jours
rbenv install 2.2.2
Downloading ruby-2.2.2.tar.gz...
-> https://dqw8nmjcqpjn7.cloud...
Installing ruby-2.2.2...
BUILD FAILED (OS X 10.10.4 using ruby-build 20150719-13-g86919c8)
Inspect or clean up the working tree at /var/folders/ss/d0nmwmf15v36d2zhlxwr60180000gp/T/ruby-build.20150730105944.34973
Results logged to /var/folders/ss/d0nmwmf15v36d2zhlxwr60180000gp/T/ruby-build.20150730105944.34973.log
Last 10 log lines:
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/drak/.rbenv/versions/2.2.2
--with-openssl-dir=/usr/local/opt/openssl
CC=clang
CFLAGS= -O3 -Wno-error=shorten-64-to-32
LDFLAGS=-L/Users/drak/.rbenv/versions/2.2.2/lib
CPPFLAGS=-I/Users/drak/.rbenv/versions/2.2.2/include
Hi i have a problem when i try to install rebind install 2.2.2
rbenv install 2.2.2
Downloading ruby-2.2.2.tar.gz...
-> https://dqw8nmjcqpjn7.cloud...
Installing ruby-2.2.2...
BUILD FAILED (OS X 10.10.4 using ruby-build 20150719-13-g86919c8)
Inspect or clean up the working tree at /var/folders/ss/d0nmwmf15v36d2zhlxwr60180000gp/T/ruby-build.20150730105944.34973
Results logged to /var/folders/ss/d0nmwmf15v36d2zhlxwr60180000gp/T/ruby-build.20150730105944.34973.log
Last 10 log lines:
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/drak/.rbenv/versions/2.2.2
--with-openssl-dir=/usr/local/opt/openssl
CC=clang
CFLAGS= -O3 -Wno-error=shorten-64-to-32
LDFLAGS=-L/Users/drak/.rbenv/versions/2.2.2/lib
CPPFLAGS=-I/Users/drak/.rbenv/versions/2.2.2/include
someone can help me please
I keep getting a bunch of errors and I think it's because I used Sudo, but I'm not sure how to fix it. I followed this, but I'm getting the error about permission denied for postgres.
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Which I saw in other comments could be because I didn't write the one part correctly and it's using the system ruby, but I redid it multiple times to make sure it was correct (deleting the previous ones to make sure there were no issues).
I deleted everything out of my .bash_profile and redid it and I made sure it was exactly as typed but I'm getting this error sometimes: line 1: syntax error near unexpected token `source'
When I type in "rbenv global" I get 2.2.2 but when I type in ruby -v I get 2.0.0 because it's using the system ruby even after restarting the terminal.
I saw the one comment about typing in: ls -ls ~/.rbenv | tail -n +2 | tr -s ' ' | cut -d ' ' -f 5 to see who owns rbenv and I get "staff" printed out a bunch (which is obviously a problem because that is not my username)
Any ideas how I can fix this botched install for a Mac newbie? Thank you!
Everything worked like a charm until...
# Create the database
rake db:create
Then I got this error...
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Should install mysql2?
This fixed it:
gem install mysql2
bundle install
Then I updated gemfile with....
gem 'mysql2', '~> 0.3.18'
Apparently mysql2 isn't still compatible with newer version of rails because rails 4.2.4 is pretty new. Hence running 0.3.18
rake db:create
Hello, while installing nokogiri the following error occurs:
ERROR: Error installing nokogiri:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /Users/ddovgal/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.6.2.gem
any ideas for Mac Yosi? Thanks in advance.
Hello. I'm going though the install process and whenever I run the ~/.bash_profile command, I receive the following error:
-bash: eval: line 1: syntax error near unexpected token `)'
-bash: eval: line 1: ` init -)'
I've gone over the steps and I cannot figure what I'm doing incorrectly.
im having this error, i don't know what i did wrong if someone could help me please
Gem::LoadError (Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).):
activerecord (4.2.4) lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
activerecord (4.2.4) lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
activerecord (4.2.4) lib/active_record/connection_handling.rb:50:in `establish_connection'
activerecord (4.2.4) lib/active_record/railtie.rb:120:in `block (2 levels) in <class:railtie>'
activesupport (4.2.4) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
activesupport (4.2.4) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'