{"id":7309,"date":"2014-06-07T02:24:02","date_gmt":"2014-06-07T02:24:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-precompile-segmentation-fault-on-debian-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:24:02","modified_gmt":"2014-06-07T02:24:02","slug":"rails-precompile-segmentation-fault-on-debian-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-precompile-segmentation-fault-on-debian-collection-of-common-programming-errors\/","title":{"rendered":"Rails: precompile Segmentation fault on Debian-Collection of common programming errors"},"content":{"rendered":"<p>I got Rails application, it works fine on Fedora using<\/p>\n<pre><code>bundle install\nrake db:create RAILS_ENV=production \nrake db:reset RAILS_ENV=production \nrake db:seed RAILS_ENV=production \nrake assets:clean rake assets:precompile\n<\/code><\/pre>\n<p>but on Debian when i do<\/p>\n<p><code>rake:assets:precompile --trace<\/code> I get the below error trace<\/p>\n<pre><code>** Invoke assets:precompile (first_time)\n** Execute assets:precompile\n\/usr\/local\/bin\/ruby \/usr\/local\/bin\/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace\n** Invoke assets:precompile:all (first_time)\n** Execute assets:precompile:all\n** Invoke assets:precompile:primary (first_time)\n** Invoke assets:environment (first_time)\n** Execute assets:environment\n** Invoke environment (first_time)\n** Execute environment\n** Invoke tmp:cache:clear (first_time)\n** Execute tmp:cache:clear\n** Execute assets:precompile:primary\nrake aborted!\nSegmentation fault\n\n  (in \/home\/debian\/Progetti\/elenos\/beaglebone.rails\/app\/assets\/javascripts\/app.js.coffee)\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:142:in `exec_runtime'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:28:in `block in exec'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:41:in `compile_to_tempfile'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:27:in `exec'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:19:in `eval'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/execjs-2.0.2\/lib\/execjs\/external_runtime.rb:33:in `call'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/coffee-script-2.2.0\/lib\/coffee_script.rb:57:in `compile'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/tilt-1.4.1\/lib\/tilt\/coffee.rb:46:in `evaluate'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/tilt-1.4.1\/lib\/tilt\/template.rb:103:in `render'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/context.rb:193:in `block in evaluate'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/context.rb:190:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/context.rb:190:in `evaluate'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:12:in `initialize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:249:in `new'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:249:in `block in build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:270:in `circular_call_protection'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:248:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:93:in `block in build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/caching.rb:19:in `cache_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:92:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:169:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:60:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:111:in `block in resolve_dependencies'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:105:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:105:in `resolve_dependencies'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:97:in `build_required_assets'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/processed_asset.rb:16:in `initialize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:249:in `new'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:249:in `block in build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:270:in `circular_call_protection'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:248:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:93:in `block in build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/caching.rb:19:in `cache_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:92:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:169:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:60:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/bundled_asset.rb:16:in `initialize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:252:in `new'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:252:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:93:in `block in build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/caching.rb:19:in `cache_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:92:in `build_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:169:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/index.rb:60:in `find_asset'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/static_compiler.rb:19:in `block in compile'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:219:in `block in each_logical_path'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:206:in `block (2 levels) in each_file'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:196:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:196:in `each_entry'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:204:in `block in each_file'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:203:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:203:in `each_file'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/sprockets-2.2.2\/lib\/sprockets\/base.rb:217:in `each_logical_path'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/static_compiler.rb:18:in `compile'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:56:in `internal_precompile'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:70:in `block (3 levels) in '\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `call'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `block in execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:175:in `block in invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/2.0.0\/monitor.rb:211:in `mon_synchronize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:168:in `invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:161:in `invoke'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:60:in `block (3 levels) in '\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `call'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `block in execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:175:in `block in invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/2.0.0\/monitor.rb:211:in `mon_synchronize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:168:in `invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:161:in `invoke'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:149:in `invoke_task'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `block (2 levels) in top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `block in top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:115:in `run_with_threads'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:100:in `top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:78:in `block in run'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:165:in `standard_exception_handling'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:75:in `run'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/bin\/rake:33:in `'\n\/usr\/local\/bin\/rake:23:in `load'\n\/usr\/local\/bin\/rake:23:in `'\nTasks: TOP =&gt; assets:precompile:primary\nrake aborted!\nCommand failed with status (1): [\/usr\/local\/bin\/ruby \/usr\/local\/bin\/rake as...]\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils.rb:54:in `block in create_shell_runner'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils.rb:45:in `call'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils.rb:45:in `sh'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils_ext.rb:37:in `sh'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils.rb:82:in `ruby'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/file_utils_ext.rb:37:in `ruby'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:12:in `ruby_rake_task'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:21:in `invoke_or_reboot_rake_task'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/actionpack-3.2.13\/lib\/sprockets\/assets.rake:29:in `block (2 levels) in '\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `call'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:236:in `block in execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:231:in `execute'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:175:in `block in invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/2.0.0\/monitor.rb:211:in `mon_synchronize'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:168:in `invoke_with_call_chain'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/task.rb:161:in `invoke'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:149:in `invoke_task'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `block (2 levels) in top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `each'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:106:in `block in top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:115:in `run_with_threads'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:100:in `top_level'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:78:in `block in run'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:165:in `standard_exception_handling'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/lib\/rake\/application.rb:75:in `run'\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/rake-10.1.1\/bin\/rake:33:in `'\n\/usr\/local\/bin\/rake:23:in `load'\n\/usr\/local\/bin\/rake:23:in `'\nTasks: TOP =&gt; assets:precompile\n<\/code><\/pre>\n<p>Googling the issue the problem would be resolved by inserting into the Gemfile inside assets group <code>gem therubyracer<\/code> but when i do <code>bundle install<\/code> i see<\/p>\n<pre><code>Fetching gem metadata from https:\/\/rubygems.org\/........\nFetching additional metadata from https:\/\/rubygems.org\/..\nResolving dependencies.......\nUsing rake 10.1.1\nUsing i18n 0.6.1\nUsing multi_json 1.9.0\nUsing activesupport 3.2.13\nUsing builder 3.0.4\nUsing activemodel 3.2.13\nUsing erubis 2.7.0\nUsing journey 1.0.4\nUsing rack 1.4.5\nUsing rack-cache 1.2\nUsing rack-test 0.6.2\nUsing hike 1.2.3\nUsing tilt 1.4.1\nUsing sprockets 2.2.2\nUsing actionpack 3.2.13\nUsing mime-types 1.25.1\nUsing polyglot 0.3.4\nUsing treetop 1.4.15\nUsing mail 2.5.4\nUsing actionmailer 3.2.13\nUsing arel 3.0.3\nUsing tzinfo 0.3.39\nUsing activerecord 3.2.13\nUsing activeresource 3.2.13\nUsing bcrypt 3.1.7\nUsing bcrypt-ruby 3.1.5\nUsing coderay 1.1.0\nUsing better_errors 1.1.0\nUsing debug_inspector 0.0.2\nUsing binding_of_caller 0.7.2\nUsing bundler 1.6.1\nUsing callsite 0.0.11\nUsing cancan 1.6.10\nUsing coffee-script-source 1.7.0\nUsing execjs 2.0.2\nUsing coffee-script 2.2.0\nUsing rack-ssl 1.3.3\nUsing json 1.8.1\nUsing rdoc 3.12.2\nUsing thor 0.18.1\nUsing railties 3.2.13\nUsing coffee-rails 3.2.1\nUsing orm_adapter 0.5.0\nUsing warden 1.2.3\nUsing devise 2.2.3\nUsing diff-lcs 1.2.5\nUsing eventmachine 1.0.3\nUsing factory_girl 4.4.0\nUsing factory_girl_rails 4.4.1\nUsing font-awesome-rails 4.0.3.1\nUsing sass 3.3.2\nUsing foundation-rails 5.2.0.0\nUsing jbuilder 2.0.4\nUsing jquery-rails 3.1.0\nUsing knockoutjs-rails 3.0.0\nInstalling libv8 3.11.8.17\nUsing memcached 1.7.2\nUsing rack-contrib 1.1.0\nUsing meta_request 0.2.8\nUsing rails 3.2.13\nUsing ref 1.0.5\nUsing rspec-core 2.14.8\nUsing rspec-expectations 2.14.5\nUsing rspec-mocks 2.14.6\nUsing rspec-rails 2.14.2\nUsing ruby-dbus 0.11.0\nUsing sass-rails 3.2.3\nUsing serialport 1.3.0\nUsing sqlite3 1.3.9\n\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\n    \/usr\/local\/bin\/ruby extconf.rb -fPIC\nchecking for main() in -lpthread... yes\nchecking for v8.h... yes\ncreating Makefile\n\nmake \"DESTDIR=\" clean\n\nmake \"DESTDIR=\"\ncompiling constraints.cc\ncompiling date.cc\ncompiling trycatch.cc\ncompiling backref.cc\ncompiling script.cc\ncompiling value.cc\ncompiling exception.cc\ncompiling locker.cc\ncompiling message.cc\ncompiling rr.cc\ncompiling array.cc\ncompiling function.cc\ncompiling v8.cc\ncompiling stack.cc\ncompiling invocation.cc\ncompiling primitive.cc\ncompiling gc.cc\ncompiling external.cc\ncompiling handles.cc\ncompiling string.cc\ncompiling template.cc\ncompiling heap.cc\ncompiling init.cc\ncompiling context.cc\ncontext.cc: In static member function \u2018static VALUE rr::Context::IsCodeGenerationFromStringsAllowed(VALUE)\u2019:\ncontext.cc:93:30: error: \u2018class v8::Context\u2019 has no member named \u2018IsCodeGenerationFromStringsAllowed\u2019\ncontext.cc:94:1: warning: control reaches end of non-void function [-Wreturn-type]\nmake: *** [context.o] Error 1\n\nmake failed, exit code 2\n\nGem files will remain installed in \/tmp\/bundler20140409-18783-1eqgjce\/therubyracer-0.11.4\/gems\/therubyracer-0.11.4 for inspection.\nResults logged to \/tmp\/bundler20140409-18783-1eqgjce\/therubyracer-0.11.4\/extensions\/armv7l-linux\/2.0.0-static\/therubyracer-0.11.4\/gem_make.out\nAn error occurred while installing therubyracer (0.11.4), and Bundler cannot continue.\nMake sure that `gem install therubyracer -v '0.11.4'` succeeds before bundling.\n<\/code><\/pre>\n<p>tried using<\/p>\n<p><code>gem install therubyracer -v '0.12.1'<\/code> having<\/p>\n<pre><code>Building native extensions.  This could take a while...\nERROR:  Error installing therubyracer:\n    ERROR: Failed to build gem native extension.\n\n    \/usr\/local\/bin\/ruby extconf.rb\nchecking for main() in -lpthread... yes\ncreating Makefile\n\nmake \"DESTDIR=\" clean\n\nmake \"DESTDIR=\"\ncompiling constraints.cc\ncompiling date.cc\ncompiling trycatch.cc\ncompiling backref.cc\ncompiling script.cc\ncompiling value.cc\ncompiling exception.cc\ncompiling locker.cc\ncompiling message.cc\ncompiling rr.cc\ncompiling array.cc\ncompiling function.cc\ncompiling v8.cc\ncompiling stack.cc\ncompiling invocation.cc\ncompiling primitive.cc\ncompiling gc.cc\ncompiling external.cc\ncompiling handles.cc\ncompiling string.cc\ncompiling template.cc\ncompiling heap.cc\ncompiling init.cc\ncompiling context.cc\ncompiling constants.cc\ncompiling signature.cc\ncompiling object.cc\ncompiling accessor.cc\nlinking shared-object v8\/init.so\n\/usr\/bin\/ld: \/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/arm.release\/obj.target\/tools\/gyp\/libv8_base.a(api.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC\n\/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/arm.release\/obj.target\/tools\/gyp\/libv8_base.a: could not read symbols: Bad value\ncollect2: ld returned 1 exit status\nmake: *** [init.so] Error 1\n\nmake failed, exit code 2\n\nGem files will remain installed in \/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/therubyracer-0.12.1 for inspection.\nResults logged to \/usr\/local\/lib\/ruby\/gems\/2.0.0\/extensions\/armv7l-linux\/2.0.0-static\/therubyracer-0.12.1\/gem_make.out\n<\/code><\/pre>\n<p>using<\/p>\n<pre><code>sudo apt-get install libv8-dev\ngem install therubyracer\n<\/code><\/pre>\n<p>same output<\/p>\n<pre><code>apt-get -y install rake\ngem install rake-compiler\ngem install therubyracer --pre\n<\/code><\/pre>\n<p>same output<\/p>\n<p>inside the Gemfile using <code>gem 'therubyracer', :platform =&gt; :ruby<\/code> and running <code>bundle install<\/code><\/p>\n<p>adding swap on my system<\/p>\n<p>adding on app\/config\/enviroment\/production.rb <code>config.assets.compile = true<\/code><\/p>\n<p>installing various versions of gem <code>therubyracer<\/code><\/p>\n<p>but nothing fix my issue.<\/p>\n<p>probably the keyword<\/p>\n<pre><code>\/usr\/bin\/ld: \/usr\/local\/lib\/ruby\/gems\/2.0.0\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/arm.release\/obj.target\/tools\/gyp\/libv8_base.a(api.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC\n<\/code><\/pre>\n<p>but i dont know how to fix i finished the bullets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got Rails application, it works fine on Fedora using bundle install rake db:create RAILS_ENV=production rake db:reset RAILS_ENV=production rake db:seed RAILS_ENV=production rake assets:clean rake assets:precompile but on Debian when i do rake:assets:precompile &#8211;trace I get the below error trace ** Invoke assets:precompile (first_time) ** Execute assets:precompile \/usr\/local\/bin\/ruby \/usr\/local\/bin\/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets &#8211;trace ** Invoke assets:precompile:all [&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-7309","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7309","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=7309"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7309\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}