Skip to content

Instantly share code, notes, and snippets.

@miio
Created December 5, 2011 06:35
Show Gist options
  • Save miio/1432568 to your computer and use it in GitHub Desktop.
Save miio/1432568 to your computer and use it in GitHub Desktop.
gitoriosインストール途中の経過諸々
#まずClone
git clone git://gitorious.org/gitorious/mainline.git
bundle install
Fetching https://github.com/roman/rots.git
remote: Counting objects: 253, done.
remote: Compressing objects: 100% (116/116), done.
remote: Total 253 (delta 126), reused 233 (delta 118)
Receiving objects: 100% (253/253), 38.58 KiB, done.
Resolving deltas: 100% (126/126), done.
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing SystemTimer (1.2.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
creating Makefile
make
compiling system_timer_native.c
In file included from system_timer_native.c:8:
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
system_timer_native.c: In function ‘install_first_timer_and_save_original_configuration’:
system_timer_native.c:46: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:53: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:57: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:62: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:65: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:69: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:82: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:89: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:96: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:101: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘install_next_timer’:
system_timer_native.c:112: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:119: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:123: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:130: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:136: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:143: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:146: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘restore_original_configuration’:
system_timer_native.c:157: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:160: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:168: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:170: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:172: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘restore_original_timer_interval’:
system_timer_native.c:190: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:38: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:192: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘restore_sigalrm_mask’:
system_timer_native.c:199: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:201: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:37: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘install_ruby_sigalrm_handler’:
system_timer_native.c:211: error: ‘rb_thread_critical’ undeclared (first use in this function)
system_timer_native.c:211: error: (Each undeclared identifier is reported only once
system_timer_native.c:211: error: for each function it appears in.)
system_timer_native.c: In function ‘restore_original_ruby_sigalrm_handler’:
system_timer_native.c:217: error: ‘rb_thread_critical’ undeclared (first use in this function)
system_timer_native.c: In function ‘clear_pending_sigalrm_for_ruby_threads’:
system_timer_native.c:266: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:237: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c: In function ‘set_itimerval’:
system_timer_native.c:290: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:237: note: expected ‘char *’ but argument is of type ‘const char *’
system_timer_native.c:299: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:237: note: expected ‘char *’ but argument is of type ‘const char *’
make: *** [system_timer_native.o] エラー 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3/ext/system_timer/gem_make.out
An error occured while installing SystemTimer (1.2.3), and Bundler cannot continue.
Make sure that `gem install SystemTimer -v '1.2.3'` succeeds before bundling.
1.9系はSystemtimerいらないといううわさを聞いたのでGemfileを改造してsystemtimerをコメントアウト
再度bundle install
http://www.oiax.jp/rails/zakkan/resque.html
DB設定をてきとーに設定して
rake db:create
そうすると。。。。
(<unknown>): couldn't parse YAML at line 16 column 2
とか言われます。恐らく1.9系と1.8系のYamlの解釈の違いぽい
訂正 Configの記述がゴミってた(私の単純ミス
で、軽くあれこてやってると(確かgitorious.ymlねーよとか、ENV確認しろとか突っ込まれるので適所修正
rake db:migrate
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /usr/local/lib/ruby/1.9.1/rake/rdoctask.rb
rake aborted!
will_paginate 3.0 is not compatible with Rails 2.3 or older
Gemfilesにバージョンを指定してbundle update
なおらず
@banta
Copy link

banta commented Dec 20, 2011

I'm also having the same problem in ubuntu, but wiil figure it out in a while. Let me check around.

@banta
Copy link

banta commented Dec 20, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment