rubyonmac / rubyonmac-issues

Bug fixes and feature request tracking for Ruby on Mac.
https://www.rubyonmac.dev
3 stars 0 forks source link

Prime Restart is not working - Permissions issue(?) #4

Closed duaatashk closed 2 years ago

duaatashk commented 2 years ago

In which version of Ruby on Mac did you find the bug? Prime

Describe the bug All logs after removing .gem say Permission denied and lastly it says 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? I had Homebrew installed

Please attach the Ruby on Mac log file

monfresh commented 2 years ago

Hi @duaatashk. I'm responding here as well in case you didn't get my email. Please attach the file called "rom-prime.log" that's in your "Home" folder. You can open the file like this:

open ~/rom-prime.log

and then you can copy and paste the contents here.

Also, try these steps:

  1. In your Terminal, run this command:
    sudo rm -rf ~/.gem
  2. Run the script again in reset mode
duaatashk commented 2 years ago

@monfresh thank you moncef for your reply. after sudo rm -rf ~/.gem then running the script again, it still failed. Please find the content of rom-prime.log below

duaatashk commented 2 years ago

@monfresh i have an update. i reset NVRAM. based on apple documentation: This clears user settings from memory and restores certain security features that might have been altered.

i ran the script again. i guess it ran successfully and everything worked like a charm. im so so thankful. thank you so much i was at a very desperate spot.

duaatashk commented 2 years ago

Hello Moncef,

i have closed the issue in github because everything worked like a charm when i reset NVRAM. based on apple documentation: This clears user settings from memory and restores certain security features that might have been altered.

Thank you for your help with everything. I was at a very desperate spot. I really appreciate it!

Best regards, Duaa Tashkandi

On Mon, Apr 25, 2022 at 10:49 AM Duaa Tashkandi @.***> wrote:

Hello Moncef,

Thank you for your email. I have followed the steps and unfortunately it still failed. I have replied in the Github and attached the content of rom-prime.log. I really appreciate your help! Thanks.

On Sun, Apr 24, 2022 at 7:32 PM Moncef Belyamani @.***> wrote:

Hi @duaatashk https://github.com/duaatashk. I'm responding here as well in case you didn't get my email. Please attach the file called "rom-prime.log" that's in your "Home" folder. You can open the file like this:

open ~/rom-prime.log

and then you can copy and paste the contents here.

Also, try these steps:

  1. In your Terminal, run this command:

sudo rm -rf ~/.gem

  1. Run the script again in reset mode

— Reply to this email directly, view it on GitHub https://github.com/rubyonmac/rubyonmac-issues/issues/4#issuecomment-1107874555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCPY3ZX6CMQDI5KKYVE4UDVGVZP3ANCNFSM5UGLS6VA . You are receiving this because you were mentioned.Message ID: @.***>

-- Best Regards, Duaa Tashkandi

-- Best Regards, Duaa Tashkandi

monfresh commented 2 years ago

You're welcome! I'm glad it all worked out. I'll make a note about resetting the NVRAM in case someone else runs into the same issue as you.

Also, if you haven't already, take a look at the "Post-Installation Guides" in the Ruby on Mac documentation, especially the section about adding a .ruby-version file to your project. This is the best way to make sure that you're using the correct Ruby version.