Closed trev91 closed 2 years ago
Hi @trev91. Thanks for buying Ruby on Mac!
After you ran the script in reset mode, did you add things back to your ~/.zshrc
and/or ~/.zprofile
?
From the log, I see that your PATH
has some unexpected things in there. Can you please quit and restart your Terminal, then paste the result of these commands:
cat ~/.zshrc
and
cat ~/.zprofile
I did not add anything back to either of those files. I restarted the terminal and this is the output:
trevor@MacBook-Pro ~ % cat ~/.zshrc
alias rom='cd ~/rubyonmac &&/usr/bin/env bash ~/rubyonmac/rom-prime 2>&1 | tee ~/rom-prime.log' trevor@MacBook-Pro ~ % cat ~/.zprofile
eval $(/opt/homebrew/bin/brew shellenv) trevor@MacBook-Pro ~ %
Interesting. What happens if you run the script again with rom
?
Running again after closing and re-opening the terminal appears to have solved the issue. Perhaps a note could be included after the reset
script completes to let the user know they may need to restart the terminal window?
Either way, excited to see how this goes. It appears to have completed running all the way through without any issues.
Thanks!
Great! I'm glad it's working now.
It looks like you found a bug. Thank you for surfacing this. I will fix this tonight and upload a new version. I will probably exit the script after reset mode and let people know they should quit and restart and run rom
.
@monfresh Happy to have been helpful! Thanks for the useful tool! I think your idea is good. Running rom
after a restart of the terminal window is simple enough. Perhaps explain that it helps ensure all the changes take effect prior to the normal installation. Either way, this is great. Thanks for a great tool.
In which version of Ruby on Mac did you find the bug? Basic, Plus, or Prime?
PRIME
Describe the bug A clear and concise description of what the bug is.
On an M1 Mac, I ran the restart script, then continued on the normal mode to install everything. It was going great, but then failed.
Details about your Mac Before you ran the script for the first time, did you already have development tools like Homebrew installed, or did you run it on a fresh and clean macOS?
It had homebrew previously installed, but I cleaned it up.
Please attach the Ruby on Mac log file The log file will be called either
rom-basic.log
, orrom-plus.log
, orrom-prime.log
. You can find it in your Mac's Home folder.[0;36mWelcome to the Ruby on Mac Prime script![0m
[0;36mYou should be and up and running with a working Ruby environment in a few minutes.[0m
[0;33mRunning Ruby on Mac in NORMAL mode...[0m
[0;33mThe following lines are to help me debug any issues:[0m
[0;36m=================Start of debugging=====================[0m
[0;35mCurrent shell: /bin/zsh[0m
[0;35mCurrent PATH: /opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/openssl@3/bin:/Users/trevor/.rbenv/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/local/opt/openssl@1.1/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/openssl@3/bin:/Users/trevor/.rbenv/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/local/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/trevor/Library/Android/sdk/emulator:/Users/trevor/Library/Android/sdk/tools:/Users/trevor/Library/Android/sdk/tools/bin:/Users/trevor/Library/Android/sdk/platform-tools:/Users/trevor/Library/Android/sdk/emulator:/Users/trevor/Library/Android/sdk/tools:/Users/trevor/Library/Android/sdk/tools/bin:/Users/trevor/Library/Android/sdk/platform-tools[0m
[0;35mmacOS version:[0m ProductName: macOS ProductVersion: 12.3.1 BuildVersion: 21E258
[0;35mMac model:[0m hw.model: MacBookPro18,3
[0;35mMac CPU:[0m Apple M1 Pro
[0;35mCPU architecture:[0m arm64
[0;36m=================End of debugging=====================[0m
[0;33mChecking if Homebrew is installed...[0m
[0;33mHomebrew already installed. Updating Homebrew...[0m Already up-to-date.
[0;33mVerifying the Homebrew installation...[0m Your system is ready to brew.
[0;32mYour Homebrew installation is good to go.[0m
[0;33mFound Brewfile-rom-prime in /Users/trevor/rubyonmac[0m
[0;33mInstalling formulas from Brewfile-rom-prime...[0m Using automake Using bison Using gdbm Using libffi Using libyaml Using openssl@1.1 Using readline Using chruby Using ruby-install Using git Using gh Homebrew Bundle complete! 11 Brewfile dependencies now installed.
[0;32mAll formulas were installed successfully.[0m
[0;33mChecking if a newer version of Ruby is available...[0m
[0;33mInstalling latest stable Ruby version: 3.1.2[0m