Install on Mac OS X -- issue with version_requirements

114 views
Skip to first unread message

Jacob Refstrup

unread,
Feb 15, 2011, 4:43:57 PM2/15/11
to Gitorious
Hi,

I've been trying to install gitorious on Mac OS X following the
instructions from here:
http://www.bluequartz.net/projects/ElectronicImaging/SCMService/html/gitorious___o_s_x__setup.html

When trying to do the db:migrate step I run into an issue:

bash-3.2$ rake db:migrate RAILS_ENV=production --trace
(in /Library/WebServer/myserver.org/gitorious)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined local variable or method `version_requirements' for
#<Rails::GemDependency:0x101935c90>
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/rails/gem_dependency.rb:119:in `requirement'
/Library/Ruby/Site/1.8/rubygems.rb:254:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:1204:in `gem'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/rails/gem_dependency.rb:73:in `add_load_paths'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:301:in `add_gem_load_paths'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:301:in `each'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:301:in `add_gem_load_paths'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:132:in `process'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:113:in `send'
/Library/WebServer/myserver.org/gitorious/config/../vendor/rails/
railties/lib/initializer.rb:113:in `run'
/Library/WebServer/myserver.org/gitorious/config/environment.rb:13
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
/Library/WebServer/myserver.org/gitorious/vendor/rails/activesupport/
lib/active_support/dependencies.rb:156:in `require'
/Library/WebServer/myserver.org/gitorious/vendor/rails/activesupport/
lib/active_support/dependencies.rb:521:in `new_constants_in'
/Library/WebServer/myserver.org/gitorious/vendor/rails/activesupport/
lib/active_support/dependencies.rb:156:in `require'
/Library/WebServer/myserver.org/gitorious/vendor/rails/railties/lib/
tasks/misc.rake:4
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

I'm using:

commit 64b6b58488c70ac663a2bad4e81efe45be5629bf
Author: Marius Mathiesen <mar...@gitorious.org>
Date: Tue Feb 15 14:21:23 2011 +0100

Wiki UI updates

- Add a sidebar to all pages
- Provide link to git access instructions w/separate controller
action

From:

git://gitorious.org/gitorious/mainline.git

Any advise would be appreciated.

Kind regards,
- Jacob

Marius Mårnes Mathiesen

unread,
Feb 16, 2011, 8:48:42 AM2/16/11
to gito...@googlegroups.com
On Tue, Feb 15, 2011 at 10:43 PM, Jacob Refstrup
<jacob.r...@gmail.com> wrote:
> Hi,
>
> I've been trying to install gitorious on Mac OS X following the
> instructions from here:
> http://www.bluequartz.net/projects/ElectronicImaging/SCMService/html/gitorious___o_s_x__setup.html
>
> When trying to do the db:migrate step I run into an issue:
>
> bash-3.2$ rake db:migrate RAILS_ENV=production --trace
> (in /Library/WebServer/myserver.org/gitorious)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> undefined local variable or method `version_requirements' for
> #<Rails::GemDependency:0x101935c90>

Jacob,
This is due to the Rails version bundled with Gitorious depending on
an older version of rubygems.

Christian has updated his article with some notes on how to handle this:

http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server#toc52631_11_3

Cheers,
- Marius

Michael Jackson

unread,
Feb 16, 2011, 9:58:14 AM2/16/11
to gito...@googlegroups.com
And if you could relay those changes/fixes back to me I will update the install guide at bluequartz.net.

Thanks
Mike Jackson

> --
> To post to this group, send email to gito...@googlegroups.com
> To unsubscribe from this group, send email to
> gitorious+...@googlegroups.com

Marius Mårnes Mathiesen

unread,
Feb 16, 2011, 10:11:52 AM2/16/11
to gito...@googlegroups.com
On Wed, Feb 16, 2011 at 3:58 PM, Michael Jackson <imikej...@gmail.com> wrote:
> And if you could relay those changes/fixes back to me I will update the install guide at bluequartz.net.

Great stuff!
Christian will be moving his Ubuntu installation guide to the
Gitorious wiki later this week, along with a description on how to set
up Gitorious using bundler. This (bundler) will make setting it up a
little easier, but will render the gem/ruby dependency descriptions
obsolete. He will be posting an update on that here in the following
days...

Cheers,
- Marius

Reply all
Reply to author
Forward
0 new messages