Permission denied @ rb_sysopen

i am trying to run bundle install but i keep getting this message.
I have double checked my environment settings and everything seems to be correct.

should i sudo -g install byebug?
or should i redirect the permissions?

I just heard that sudo-ing is not always the best so I wanted to double check before I went ahead and did that.

Thanks for you help in advance!

Hi @Saeri,

Can you upload a screenshot of the answers to the following commands?
which rbenv, rbenv -v, which ruby, ruby -v`

hello! i was able to figure it out since then, thank you very much!