# 无法在Bitnami镜像上安装data-explorer

**URL:** https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459
**Category:** Self-hosting
**Tags:** unsupported-install, data-explorer
**Created:** [2022年七月15日 07:35 UTC](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459 "2022-07-15T07:35:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lexias](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lexias/32/244555_2.png) [@Lexias](https://meta.discourse.org/u/Lexias)
#### Post date: [2022年七月15日 07:35 UTC](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459/1 "2022-07-15T07:35:22Z")

</div>

您好！我正在尝试将您的插件安装到容器（bitnami/discourse）中。但是，我无法使用以下命令预编译资源：RAILS\_ENV=production bundle exec rake assets:precompile。该命令每次都会因错误而失败：NameError: uninitialized constant BaseBookmarkable。  
希望您能帮助我理解发生了什么！提前感谢。

---

<div class="post-metadata">

### Author: ![VladChad](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@VladChad](https://meta.discourse.org/u/VladChad)
#### Post date: [2022年七月15日 16:21 UTC](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459/2 "2022-07-15T16:21:55Z")

</div>

您好，我今天早上遇到了完全相同的问题。  
值得注意的是，我以完全相同的方式安装了另外 3 个插件，但没有任何错误。

@Discourse

---

<div class="post-metadata">

### Author: ![VladChad](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@VladChad](https://meta.discourse.org/u/VladChad)
#### Post date: [2022年七月15日 17:10 UTC](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459/3 "2022-07-15T17:10:31Z")

</div>

@Lexias  
我找到了一个解决方法：

```plaintext
RAILS_ENV=production bundle exec rake plugin:install repo=https://github.com/discourse/discourse-data-explorer
cd "$DISCOURSE_BASE_DIR/plugins/discourse-data-explorer"
git reset --hard 92bdea38b2af1b4e04f4c52d1bd34550d553f66b
cd "$DISCOURSE_BASE_DIR"
RAILS_ENV=production bundle exec rake assets:precompile

```

我将 git 重置到了 BaseBookmarkable 提交之前的一个工作版本，现在运行得非常完美。
