Question

I am trying to install Discourse following the installation instructions, but the instruction

# Install necessary gems
bundle install --deployment --without test

gives this error

discourse@ubuntu:/var/www/discourse$ bundle install --deployment --without test
Gemfile syntax error:
/var/www/discourse/Gemfile:45: syntax error, unexpected
':', expecting $end
gem 'seed-fu-discourse', require: 'seed-fu'
                                 ^

How can I fix this?



EDIT

It seems that I am using ruby less then 1.9. But I am confused about this. As per the installation instructions I enter

# Build and install ruby
rvm install 2.0.0

But then I check the version

$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

And I try (as per one of the comments)

$ rvm use 1.9.3
RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

I go visit the referenced site but I cannot change the gnome terminal settings, because I am working with a ubuntu server with no GUI. I've been trying to do it from command line through .bashrc but so far I could not. I have a question about this here.

Was it helpful?

Solution

Do rvm use 2.0.0 so you will actually use it. Consider adding file named .ruby-version to root of your app with such content:

2.0.0

so since then rvm should change ruby version automatically when entering project dir.

About RVM is not a function... here it's described and answered: rvm installation not working: "RVM is not a function"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top