Hi Алексей, It looks like you are using an old version of ruby, probably 1.8.x. Gitorious requires at least ruby 1.9.3. If you want to install gitorious, you can use automated script: http://getgitorious.com/installer
Cheers, Pawel On 28 March 2014 15:48, Алексей Портнов <[email protected]> wrote: > Ubuntu 12.04LTS > 1. Cloning gitorious > git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious > cd /var/www/gitorious/ > cd /var/www/gitorious > git submodule init > git submodule update > ln -s /var/www/gitorious/script/gitorious /usr/local/bin/gitorious > ---------------------- > Everything is OK > > 2. Install RubyGem > REALLY_GEM_UPDATE_SYSTEM=1 gem update --system > gem install -b --no-ri --no-rdoc bundler > cd /var/www/gitorious/ > bundle pack --all > --------------------------------- > Gemfile syntax error compile error > on line 33: syntax error, unexpected ':', expecting $end > gem 'rugged', git: 'https://github.com/libgit2/r... > ^ > --------------------------------- > > Brief view to Gemfile, line 33, shows that Gemfile has incorrect syntax. > Here is the patch fixing it: > ------------------------------------------ > # diff -Nu Gemfile.orig Gemfile > --- Gemfile.orig 2014-03-28 14:50:28.272676987 +0100 > +++ Gemfile 2014-03-28 15:42:26.044057162 +0100 > @@ -30,7 +30,7 @@ > gem "airbrake", "~> 3.1.14", :require => false > gem "simple_form", "~> 2.1" > gem "force_utf8" > -gem 'rugged', git: 'https://github.com/libgit2/rugged.git', branch: > 'development', submodules: true > +gem "rugged", :git => "https://github.com/libgit2/rugged.git", :branch > =>"development", :submodules => true > > if ENV['GTS_ENGINE'].to_s != 'true' > gem "gitorious-issues", :git => " > https://git.gitorious.org/gitorious/gitorious-issues.git", :branch => > 'master' > ------------------------------------------ > > I don't know Ruby, but anyway this bad mistake is obvious to me. And it's > in the master branch. So, why this mistake is not obvious for main > developers and code reviewers? Why they allowed to commit it? > > -- > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Gitorious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] --- You received this message because you are subscribed to the Google Groups "Gitorious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
