{"id":7226,"date":"2014-05-31T23:00:48","date_gmt":"2014-05-31T23:00:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/31\/how-to-install-systemtimer-on-1-9-2-collection-of-common-programming-errors\/"},"modified":"2014-05-31T23:00:48","modified_gmt":"2014-05-31T23:00:48","slug":"how-to-install-systemtimer-on-1-9-2-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/31\/how-to-install-systemtimer-on-1-9-2-collection-of-common-programming-errors\/","title":{"rendered":"How to install SystemTimer on 1.9.2?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve just upgraded my app from 1.8.7 to 1.9.2 using RVM and had to add RubyGems and Bundler, ran bundle install and got everything to work except SystemTimer. Google-fu returns nothing and I see others have had issue with it in 1.9 but some have gotten it to work. Any ideas?<\/p>\n<pre><code>pawel:bodb pawel$ sudo gem install SystemTimer\nBuilding native extensions.  This could take a while...\n\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/ext\/builder.rb:48: warning: Insecure world writable dir \/usr\/local\/bin in PATH, mode 040777\nERROR:  Error installing SystemTimer:\nERROR: Failed to build gem native extension.\n\n\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/ruby extconf.rb\ncreating Makefile\n\nmake\n\/usr\/bin\/gcc-4.2 -I. -I\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1\/x86_64-darwin10.3.0\n-I\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1\/ruby\/backward -I\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1 -I.\n-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers\n-Wshorten-64-to-32 -Wno-long-long  -fno-common -pipe  -o system_timer_native.o -c system_timer_native.c\nIn file included from system_timer_native.c:8:\n\/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/include\/ruby-1.9.1\/ruby\/backward\/rubysig.h:14:2: warning: #warning rubysig.h is obsolete\nsystem_timer_native.c: In function \u2018install_first_timer_and_save_original_configuration\u2019:\nsystem_timer_native.c:46: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:53: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:57: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:62: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:65: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:69: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:82: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:89: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:96: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:101: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018install_next_timer\u2019:\nsystem_timer_native.c:112: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:119: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:123: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:130: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:136: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:143: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:146: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018restore_original_configuration\u2019:\nsystem_timer_native.c:157: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:160: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:168: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:170: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:172: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018restore_original_timer_interval\u2019:\nsystem_timer_native.c:190: warning: passing argument 1 of \u2018log_error\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:192: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018restore_sigalrm_mask\u2019:\nsystem_timer_native.c:199: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:201: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018install_ruby_sigalrm_handler\u2019:\nsystem_timer_native.c:211: error: \u2018rb_thread_critical\u2019 undeclared (first use in this function)\nsystem_timer_native.c:211: error: (Each undeclared identifier is reported only once\nsystem_timer_native.c:211: error: for each function it appears in.)\nsystem_timer_native.c: In function \u2018restore_original_ruby_sigalrm_handler\u2019:\nsystem_timer_native.c:217: error: \u2018rb_thread_critical\u2019 undeclared (first use in this function)\nsystem_timer_native.c: In function \u2018clear_pending_sigalrm_for_ruby_threads\u2019:\nsystem_timer_native.c:266: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c: In function \u2018set_itimerval\u2019:\nsystem_timer_native.c:290: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nsystem_timer_native.c:295: warning: implicit conversion shortens 64-bit value into a 32-bit value\nsystem_timer_native.c:299: warning: passing argument 1 of \u2018log_debug\u2019 discards qualifiers from pointer target type\nmake: *** [system_timer_native.o] Error 1\n\n\nGem files will remain installed in \/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/lib\/ruby\/gems\/1.9.1\/gems\/SystemTimer-1.2.3 for inspection.\nResults logged to \/Users\/pawel\/.rvm\/rubies\/ruby-1.9.2-p290\/lib\/ruby\/gems\/1.9.1\/gems\/SystemTimer-1.2.3\/ext\/system_timer\/gem_make.out\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just upgraded my app from 1.8.7 to 1.9.2 using RVM and had to add RubyGems and Bundler, ran bundle install and got everything to work except SystemTimer. Google-fu returns nothing and I see others have had issue with it in 1.9 but some have gotten it to work. Any ideas? pawel:bodb pawel$ sudo gem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7226","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7226"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7226\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}