Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.10 Yosemite Discussion

Chris Oliver asked in General

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.

Reply

i am using ZSH instead of BASH. Will the above still work? i see a lot of commands have bash in them.

Reply

Yep they should! I use ZSH too, but it supports almost the exact same syntax.

Reply

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"?

Reply

Any idea how to solve this and get PostgresSQL working?

Reply

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]
➜ ~

Reply

Try restarting your terminal. That usually fixes it.

Reply

you the man/woman!

Reply

Haha! Thanks :)

Reply
kumar immanuel kumar immanuel

Its helped me a lot...
thank you bro...:)

Reply

Thanks, worked.

Reply

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

Reply

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

Reply

mark

Reply

This is precisely quality....follow keenly guys

Reply
Ryan Pytleski Ryan Pytleski

Removed because the author helped me fix using twitter, this is a top notch service lol :)

Reply

Haha! You're welcome. :)

Reply

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!

Reply
VINUTHA REDDY B VINUTHA REDDY B

Can you please share the installation Setup Ruby On Rails on Windows 8

Reply

awesome time saver

Reply

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?

Reply

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

Reply

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.

Reply

Thanks. All fixed.

Reply

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.

Reply

Can you post your bash_profile file?

Reply

ruby 2.2.2 and rails 4.2.4 installation works on 10.11 too. thank you!

Reply
Bryan Frederick Kelley Galindo Bryan Frederick Kelley Galindo

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'

Reply
Ningchuan Li Ningchuan Li

same issue

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.