# Discourse Build Error: “An error occurred while installing rbtrace (0.5.1), and Bundler cannot continue

**URL:** <https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530>\
**Category:** Self-hosting\
**Created:** [December 22, 2023, 9:51am UTC](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530 "2023-12-22T09:51:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Victor\_Berridge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_berridge/32/211618_2.png) [@Victor\_Berridge](https://meta.discourse.org/u/Victor_Berridge)\
**Post date:** [December 22, 2023, 9:51am UTC](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530/1 "2023-12-22T09:51:23Z")

</div>

For the past few weeks or so, we cannot rebuild our Discourse forum software.

Each time, we get this Bundler error:

> occurred while installing rbtrace (0.5.1), and Bundler cannot continue.

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #<Process::Status: pid 541 exit 5>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \"development test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}
bootstrap failed with exit code 5
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
dfd1d73cc65b60ab8b8963ad9bdb005500322808bf8766cf90c07c91d3dea615ype or paste code here

```

With success using this reference:  
[https://github.com/rubinius/rubinius/issues/3327](https://github.com/rubinius/rubinius/issues/3327)

```plaintext
Building native extensions with: '--with-cflags=-Wno-implicit-function-declaration'
This could take a while...
Successfully installed rbtrace-0.5.1
Parsing documentation for rbtrace-0.5.1
Done installing documentation for rbtrace after 0 seconds
1 gem installed

```

But it keeps failing

```plaintext
An error occurred while installing rbtrace (0.5.1), and Bundler cannot continue.

```

Any suggestion?  
Or are we doomed, and need to rebuild Discourse from scratch in an entire new directory structure and change all our admin scripts, etc.

---

_[View the full topic](https://meta.discourse.org/t/discourse-build-error-an-error-occurred-while-installing-rbtrace-0-5-1-and-bundler-cannot-continue/289530)._
