# Panic: unknown Ruby installation

**URL:** <https://discuss.bitrise.io/t/panic-unknown-ruby-installation/20107>\
**Category:** Other Issues\
**Tags:** bitrise-cli, ruby\
**Created:** [May 12, 2022, 10:04pm UTC](https://discuss.bitrise.io/t/panic-unknown-ruby-installation/20107 "2022-05-12T22:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theomendes](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@theomendes](https://discuss.bitrise.io/u/theomendes)\
**Post date:** [May 12, 2022, 10:04pm UTC](https://discuss.bitrise.io/t/panic-unknown-ruby-installation/20107/1 "2022-05-12T22:04:51Z")

</div>

Hi,

I’m trying to use Bitrise-CLI with a local project but I’m getting the following error when I run a fastlane step:

```auto
panic: unknown Ruby installation

goroutine 1 [running]:
main.main()
/var/folders/xt/s6r881rx7bjfcw_mds72nxyw0000gp/T/bitrise3104507911/step_src/main.go:194 +0x2c90

```

I installed Ruby and Go via homebrew, and have the following exports to my .zshrc

```auto
# Go
export GOPATH=$HOME/golang
export GOROOT=/opt/homebrew/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

# Ruby
if [-d "/opt/homebrew/opt/ruby/bin"]; then
  export PATH=/opt/homebrew/opt/ruby/bin:$PATH
  export PATH=`gem environment gemdir`/bin:$PATH
fi

```

my ruby -v is: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]  
I’m using macOS 12.3.1

Does anyone know how I can fix this?

When I run fastlane, without the bitrise-cli, it works normally.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [June 11, 2022, 10:05pm UTC](https://discuss.bitrise.io/t/panic-unknown-ruby-installation/20107/2 "2022-06-11T22:05:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
