You’re not receiving notifications from this thread.
Setup MacOS 13 Ventura Discussion
To install rbenv you also need brew install email@example.com readline libyaml gmp or brew install openssl@3 readline libyaml gmp. https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
So everything worked well until I tried to change the headers for C:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
The error was:
the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'
I am trying to set-up with the Apple M2 if that makes a difference??
Any help would be appreciated
New M2 Pro needed 'brew install libyaml' after receiving rbenv install error about 'psych' gem.
Everytime I launch terminal on my M2 Pro. I see this
/Users/username/.asdf/completions/asdf.bash:89: command not found: complete
Anyone run into this?
when I get to asdf install ruby 3.2.2... I bomb out here:
ruby-build: using readline from homebrew
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
BUILD FAILED (macOS 13.2.1 using ruby-build 20230330)
Inspect or clean up the working tree at /var/folders/l1/xdqq3b4s3w1gwvf2mtr861nh0000gn/T/ruby-build.20230411161603.93328.IHeg1r
Results logged to /var/folders/l1/xdqq3b4s3w1gwvf2mtr861nh0000gn/T/ruby-build.20230411161603.93328.log
Last 10 log lines:
linking shared-object socket.bundle
linking shared-object openssl.bundle
1 warning generated.
linking shared-object ripper.bundle
make: *** [build-ext] Error 2
really clueless as to why this isn't working...
Okay, so I discovered that when I built this M2 machine using a timemachine backup of an intel machine, I had home-brew installed in a directory that's no longer allowed (who knew?)
I scrubbed off home-brew, reinstalled, and I'm able to reliably get ruby 3.2.2 installed using the steps in this tutorial.
I can build "rails new testapp" and get everything running, but I really want to be in postgres.
I've installed postgres@15 (using the app, although I also installed an removed using homebrew).
When I try "rails new testapp -d postgresql" I can't get the gem pg to build. I've tried a few options, pointing it to the correct pgconfig file, etc.
I feel like this is a problem due to the M2 chip machine specifically, like the pg gem is looking for stuff where it's not.
Has anyone been able to install the pg gem on a M2 mac running Ventura (13.2.1)?
I wanted to add this comment as I was able to resolve my issues.
gem install pg -- --with-pg-config=/opt/homebrew/opt/postgresql@15/bin/pg_config
allowed me to get postgresql@15 running locally, and the pg gem installed.
then the usual steps to create a new app, designating the database "-d postgresql"
running "rake db:create" and "rails server" and I had a clean Rails 22.214.171.124 app using Ruby 3.2.2 on an M2 Mac running Ventura 13.2.1
I ran into this issue and had to do "brew install libyaml" first and then ruby installed. M2 MacBook Air 15