# Falha na Importação do XenForo (config/application.rb:2)

**URL:** https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049
**Category:** Support
**Created:** [12 Setembro , 2016 23:47 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049 "2016-09-12T23:47:35Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Padraig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/padraig/32/121553_2.png) [@Padraig](https://meta.discourse.org/u/Padraig)
#### Post date: [13 Setembro , 2016 08:48 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049/7 "2016-09-13T08:48:52Z")

</div>

I think I may be onto something here.

In Step 8 of this tutorial: [Migrate a XenForo forum to Discourse](https://meta.discourse.org/t/importing-xenforo-to-discourse/45232) , it says to run `echo "gem 'mysql2'" >Gemfile`

I looked in the `Gemfile` only to see this in the file:

```plaintext
gem 'mysql2'

```

So I went to GitHub and got the latest `Gemfile` and I added the `gem 'mysql2'` to the file.

Ran `bundle install --no-deployment` and it installed a BUNCH of stuff (Too many to copy and paste here) (Side note: Do not use tmux and go into the container..it didn’t work at all 😛 )

But it ended with this:

```plaintext
Bundle complete! 100 Gemfile dependencies, 180 gems now installed.
Gems in the group development were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from certified:
IMPORTANT: Remember to use the included executable `certifed-update` regularly to keep your certificate bundle up to date.

```

```plaintext
root@titan-app:/var/www/discourse# bundle show railties
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1

```

That looks good in my eyes.

So it looks like the Step 8 in that tutorial above is incorrect.

But when all seems good in the world, I get this:

```plaintext
root@titan-app:/var/www/discourse# bundle exec script/import_scripts/xenforo.rb
bundler: not executable: script/import_scripts/xenforo.rb

```

Do I need to `chmod +x` or something? (I don’t have a lot of experience in Ruby to know lol)

Thanks for all the help so far!

EDIT: Chmod X’d the xenforo.rb and now I’m getting this:

```plaintext
root@titan-app:/var/www/discourse# bundle exec script/import_scripts/xenforo.rb
script/import_scripts/xenforo.rb: 1: script/import_scripts/xenforo.rb: require: not found
script/import_scripts/xenforo.rb: 3: script/import_scripts/xenforo.rb: Syntax error: "(" unexpected

```

---

_[View the full topic](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049)._
