# Bundle install - Could not locate Gemfile or .bundle/ directory

**URL:** https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292
**Category:** Self-hosting
**Created:** [March 19, 2016, 5:08am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292 "2016-03-19T05:08:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![JimmyX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimmyx/32/52302_2.png) [@JimmyX](https://meta.discourse.org/u/JimmyX)
#### Post date: [March 19, 2016, 5:08am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/1 "2016-03-19T05:08:49Z")

</div>

I am installing on Fedora 23. I downloaded VirtualBox and then followed this tutorial (but for Unix)

> **[Discourse as Your First Rails App](https://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/)**
>
> Update April 4, 2018 The Discourse Vagrant development install is not longer supported and maintained. Current development install guides can be found at meta.discourse.org for Windows, macOS, and Ubuntu.

I can SSH into the vagrant OK. Then “cd /vagrant” works OK.

“bundle install” gives the error “Could not locate Gemfile or .bundle/ directory”.

What step(s) am I missing?

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [March 19, 2016, 6:01am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/2 "2016-03-19T06:01:55Z")

</div>

Can you find Discourse files?

`find / -name discourse.rb`

---

<div class="post-metadata">

### Author: ![JimmyX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimmyx/32/52302_2.png) [@JimmyX](https://meta.discourse.org/u/JimmyX)
#### Post date: [March 19, 2016, 6:38am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/3 "2016-03-19T06:38:35Z")

</div>

I wiped the installation. I’m downloading and starting again. Something was badly screwy. Will revert back here if I get the same problem.

---

<div class="post-metadata">

### Author: ![JimmyX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimmyx/32/52302_2.png) [@JimmyX](https://meta.discourse.org/u/JimmyX)
#### Post date: [March 19, 2016, 8:28am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/4 "2016-03-19T08:28:59Z")

</div>

The DL failed a couple of times today. So I am trying the discourse image from [https://bitnami.com](https://bitnami.com).

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [March 19, 2016, 9:02am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/5 "2016-03-19T09:02:21Z")

</div>

Be aware, development instance is totally different than installation. What do you want to do?

---

<div class="post-metadata">

### Author: ![JimmyX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimmyx/32/52302_2.png) [@JimmyX](https://meta.discourse.org/u/JimmyX)
#### Post date: [March 19, 2016, 9:21am UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/6 "2016-03-19T09:21:26Z")

</div>

The [bitnami.com](http://bitnami.com) install downloaded quickly and worked immediately. I ran their installer and discourse was up and running right away. I named the site, gave my email and password, and that was it. This is from their README

Bitnami Discourse Stack ships with the following software versions:

- Discourse 1.4.6
- Apache 2.4.18
- PostgreSQL 9.4.6
- Ruby 2.1.8
- Rails 4.2.5.1
- RubyGems 1.8.12

I want to look at discourse and see if I can use it for my image heavy web site. Someone said I’d need to write a plug in so I thought I’d look at doing that.

---

<div class="post-metadata">

### Author: ![hom3mad3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hom3mad3/32/60701_2.png) [@hom3mad3](https://meta.discourse.org/u/hom3mad3)
#### Post date: [July 25, 2016, 2:07pm UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/7 "2016-07-25T14:07:18Z")

</div>

i had this problem once. reinstalled everything from scratch. it started working again. 3 days later same problem reappears.

i check for `bundle -v`

it confirms that Bundler is installed :  
`Bundler version 1.12.5`

`bundle install` gives me the same error

i am running locally on Ubuntu 16.04 (VM Vagrant) . Am I missing something?

---

<div class="post-metadata">

### Author: ![jack2](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jack2](https://meta.discourse.org/u/jack2)
#### Post date: [February 21, 2017, 9:57pm UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/8 "2017-02-21T21:57:07Z")

</div>

Same here: sometimes the shared folder is empty, hence the `bundle` issue.

When running `vagrant up`, I get this warning:

```plaintext
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.0.18
    default: VirtualBox Version: 5.1

```

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [February 21, 2017, 10:11pm UTC](https://meta.discourse.org/t/bundle-install-could-not-locate-gemfile-or-bundle-directory/41292/9 "2017-02-21T22:11:39Z")

</div>

… and as that warning says, if the guest additions version doesn’t match your VirtualBox version, you don’t necessarily get shared folders.
