All threads / Setup MacOS 11.0 Big Sur Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 11.0 Big Sur Discussion

Chris Oliver asked in General

When installing the headers:
'sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / '

Got this error:
' installer: Error - the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'. '

Do you know the correct command for Mac OS Big Sur?

I've got the same error.
Were you able to solve it?
Thanks

I installed the whole Xcode software on my mac. Skip this step and created successfully a rails 6 app. And I can run it at the moment.

But I'm experiencing many other problems since upgraded to big sur though.

I had to reinstall Xcode client by installing the latest CLT package from https://developer.apple.com/download/more/ .. After that, things seemed to work. I didn't install the whole Xcode.

Reply

On 11.0.1 I have got a
Last 10 log lines:
compiling mjit.c
internal:core core/kernel.rb:257:in `require': Library "/usr/lib/libSystem.B.dylib" does not exist. (RuntimeError)

Reply

I am trying to install Homebrew but it's failing to install. Here are the errors that I am getting on MacOS Big sur:

error: unable to unlink old 'Library/Homebrew/brew.sh': Operation not permitted
fatal: Could not reset index file to revision 'origin/master'.
Failed during: git reset --hard origin/master

Running using sudo says "Don't run this as root!"

Reply

I get the error:
error: unable to unlink old 'Library/Homebrew/brew.sh': Operation not permitted
fatal: Could not reset index file to revision 'origin/master'.
Failed during: git reset --hard origin/master
slitherio

Reply

Not sure if you have the same issue as I got with openssl 1.1/1.1.1i. Downgrading worked for me https://ankane.org/ruby-openssl-1-1

Reply

Hey Chris. Having issues with installing on an M1 MBP. I can get bundler to finish successfully, however, when I go to run rails s it fails with '.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi/types.rb:69:in `find_type': unable to resolve type 'size_t' (TypeError)'. From what I can tell it's because ffi needs to be updated. Do you know of a way to work around it for now?

I got an error from ffi as well on M1. What solved for me was to run bundle update ffi -- --disable-system-libffi

Reply

Just a note: after setting up rbenv you may have to restart your terminal for the changes to take effect as mentioned in the rbenv docs

Reply

When choosing mysql as the database, I'm getting the following error:

rails aborted!
LoadError: dlopen(/Library/Ruby/Gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 0x0009): dependent dylib 'libssl.1.1.dylib' not found for '/Library/Ruby/Gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle'. relative file paths not allowed 'libssl.1.1.dylib' - /Library/Ruby/Gems/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle

has anyone been on that situation? I'm using ruby v2.6.3p62, rails v6.1.1 and mysql 8.0.23 I tried creating an app with the default settings (sqlite) and it works, also making a connection to mysql server and it's also working. I'm not sure what's could be missing

Reply
[~] rbenv install 3.0.0

ruby-build: definition not found: 3.0.0
The following versions contain `3.0.0' in the name:
  3.0.0-dev
  3.0.0-preview1
  3.0.0-preview2

Am I missing something?

The solution is to update brew.

brew update && brew upgrade ruby-build
Reply
Reply

Just went through this a brand new mac (lucky me.) No real issues, HOWEVER when creating a rails app you will first get an error saying you need to install node, then you install node, and try again, and you get an error saying you need yarn.

Both are easy enough to fix, just follow the instructions given when you get the error. But it would be nice for first time rails users, if this doc could be updated.

Also I did NOT have to change anything to do with the C headers (this is on BigSur)

Reply

I’m using a MacBook Pro 16” and I was wondering if I should finally update to Big Sur (11.2.1) from macOS Catalina. Until now, TensorFlow has only utilized the CPU for training on Mac but the tensorflow_macos fork of TensorFlow 2.4 leverages ML Compute to enable machine learning libraries to take full advantage of both the CPU and the GPU in Intel-powered Macs. This is something I’m really excited about but I’m skeptical about the day-to-day performance issues I’ll have to deal with. What should I do? https://blossomfurnishings.com/wholesale dining tables/

Reply

I'm having issues with the sudo installer. Tried to install XCode like the comments above but still get the error below.

installer: Error - the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'.

Any way to fix this?

Reply

Hi Chris, thanks for the guide, it was helpful.

I ran into some issues installing ruby 2.6.6 on the following:

macOS Big Sur Version 11.2.3
Xcode Version 12.4

After hours of failed compiles with lots of unhelpful missing 'require' messages (and rdoc even failing at one point, right before the end) I ended up using 'asdf' instead of 'rbenv'. important Specifically installing the following libs with homebrew before attempting the ruby install seemed to do the trick:

brew install gpg zlib openssl readline libyaml
brew install asdf

Then, finally:

asdf install ruby 2.6.6
asdf reshim ruby

Hope this helps someone else to save some time,
Tom

Reply

Hey Chris, I just ran through this with a repurposed MacBook Air, and I hit the mimemagic blocker.

It works with Rails 6.1.3.1.

Reply
Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.