Compile Error

81 views
Skip to first unread message

atmorell

unread,
Aug 1, 2011, 6:57:55 PM8/1/11
to WebROaR - Ruby Application Server
Hello,

Fresh installation of webroar on Debian with Ruby 1.9.2 (RVM) crashes.
Any ideas how to fix this?

rake/gempackagetask is deprecated. Use rubygems/package_task instead
rake/gempackagetask is deprecated. Use rubygems/package_task instead
/usr/local/rvm/gems/ruby-1.9.2-p290@ruby192/gems/webroar-0.6.0/obj/
worker doesn't exist. Creating it...Created.
/usr/local/rvm/gems/ruby-1.9.2-p290@ruby192/gems/webroar-0.6.0/obj/
head doesn't exist. Creating it...Created.
/usr/local/rvm/gems/ruby-1.9.2-p290@ruby192/gems/webroar-0.6.0/obj/
helper doesn't exist. Creating it...Created.
Required directories created successfully. Building executables...
checking for sys/select.h... rake aborted!
wrong number of arguments (3 for 2)

Tasks: TOP => default => compile => /usr/local/rvm/gems/ruby-1.9.2-
p290@ruby192/gems/webroar-0.6.0/bin/webroar-head => /usr/local/rvm/
gems/ruby-1.9.2-p290@ru$
(See full trace by running task with --trace)


Best regards
Asbjørn Morell

Nikunj Limbaseeya

unread,
Aug 5, 2011, 3:54:18 AM8/5/11
to web...@googlegroups.com
Hi Asbjørn,

It seems that the error is raised from have_header("sys/select.h")
call. Please make sure mkmf library, necessary to make extension
library is installed properly on your Debian machine.

Still if you face the same problem, please send full trace by
executing 'rake --trace' command.

Thank you
Nikunj Limbaseeya

atmorell

unread,
Aug 6, 2011, 3:50:36 AM8/6/11
to WebROaR - Ruby Application Server
Hello,

I got past the compilation by changing to ruby1.9.2-dev

rvm install 1.9.2-dev
rvm use 1.9.2-dev

However I can't migrate the database:

/usr/local/rvm/gems/ruby-1.9.2-p290/gems/webroar-0.6.0/src/
admin_panel# rake --trace db:migrate
(in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/webroar-0.6.0/src/
admin_panel)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `name' for "actionmailer":String
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/rails/
gem_dependency.rb:275:in `=='
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:217:in `==='
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:217:in `block in matching_specs'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/specification.rb:410:in `block in each'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/specification.rb:409:in `each'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/specification.rb:409:in `each'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:216:in `find_all'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:216:in `matching_specs'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:238:in `to_specs'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/dependency.rb:256:in `to_spec'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems.rb:1195:in `gem'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/rails/
gem_dependency.rb:73:in `add_load_paths'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/
initializer.rb:301:in `block in add_gem_load_paths'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/
initializer.rb:301:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/
initializer.rb:301:in `add_gem_load_paths'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/
initializer.rb:132:in `process'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/
initializer.rb:113:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/webroar-0.6.0/src/admin_panel/
config/environment.rb:24:in `<top (required)>'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in `require'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in `require'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `block in require'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-2.3.9/lib/
active_support/dependencies.rb:182:in `require'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.9/lib/tasks/
misc.rake:4:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:636:in
`block in execute'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:597:in
`block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:607:in
`block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:604:in
`each'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:596:in
`block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2051:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2029:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2029:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2029:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2023:in `top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2001:in `block in run'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:
1998:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/bin/rake:31:in
`<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'

Any ideas?


On Aug 5, 9:54 am, Nikunj Limbaseeya <nikunj.limbase...@webroar.in>
wrote:

atmorell

unread,
Aug 8, 2011, 8:48:53 AM8/8/11
to WebROaR - Ruby Application Server
It was a problem with Rubygems 1.8.6. I installed version 1.6.0 with
RVM and the problems went away.

gem update --system 1.6.0

Nikunj Limbaseeya

unread,
Aug 8, 2011, 8:52:37 AM8/8/11
to web...@googlegroups.com
Hello,

There is Rails incompatibility issue with Rubygems-1.8.x. The same issue is reported on http://rubyforge.org/tracker/index.php?func=detail&aid=29188&group_id=126&atid=575 and https://rails.lighthouseapp.com/projects/8994/tickets/6778-rails-2311-fails-with-newer-rubygems-181.

For time being you can run WebROaR by downgrading Rubygems to 1.7.2. And you will get upgraded Admin Panel in the next release.

Thank you,
Nikunj Limbaseeya
Reply all
Reply to author
Forward
0 new messages