ruby - Issue while installing therubyracer-heroku -


issue

i unable run middleman server, because dependency therubyracer-heroku not getting installed!

what have tried?

i tried installing middleman via below command:

gem install middleman 

and succeeded. when started middleman server using default configuration:

$ middleman server -p 3456 -e development 

i got these errors:

$ middleman server -p 3456 -e development not find libv8-3.11.8.13 in of sources run `bundle install` install missing gems. $ bundle install src/bootstrapper.cc: in static member function 'static bool v8::internal::genesis::compilescriptcached(v8::internal::vector<const char>, v8::internal::handle<v8::internal::string>, v8::internal::sourcecodecache*, v8::extension*, v8::internal::handle<v8::internal::context>, bool)': src/bootstrapper.cc:1002:18: error: variable 'result' set not used [-werror=unused-but-set-variable] src/bootstrapper.cc: in member function 'bool v8::internal::genesis::installnatives()': src/bootstrapper.cc:1227:24: error: variable 'name' set not used [-werror=unused-but-set-variable] cc1plus: warnings being treated errors scons: *** [obj/release/bootstrapper.o] error 1 scons: building terminated because of errors. make: *** [build/v8/libv8.a] error 2 *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:         --with-opt-dir         --without-opt-dir         --with-opt-include         --without-opt-include=${opt-dir}/include         --with-opt-lib         --without-opt-lib=${opt-dir}/lib         --with-make-prog         --without-make-prog         --srcdir=.         --curdir         --ruby=/home/praveen/.rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb:9:in `<main>': error compiling v8 (runtimeerror)   gem files remain installed in /home/praveen/.rvm/gems/ruby-1.9.3-p286/gems/therubyracer-heroku-0.8.1.pre3 inspection. results logged /home/praveen/.rvm/gems/ruby-1.9.3-p286/gems/therubyracer-heroku-0.8.1.pre3/ext/v8/gem_make.out  error occurred while installing therubyracer-heroku (0.8.1.pre3), , bundler cannot continue. make sure `gem install therubyracer-heroku -v '0.8.1.pre3'` succeeds before bundling. $  

i tried uninstalling libv8 , reinstalling. none worked. okay, tried were:

gem uninstall libv8 gem install therubyracer-heroku gem install therubyracer-heroku -v '0.8.1.pre3' gem install therubyracer-heroku-0.8.1.pre3 # psst: know crazy. gem install therubyracer # succeeded, not need. gem install bundler gem install bundle bundle install # crazy things tried no luck! 

output of gem install therubyracer-heroku -v '0.8.1.pre3'

src/bootstrapper.cc:1002:18: error: variable 'result' set not used [-werror=unused-but-set-variable] src/bootstrapper.cc: in member function 'bool v8::internal::genesis::installnatives()': src/bootstrapper.cc:1227:24: error: variable 'name' set not used [-werror=unused-but-set-variable] cc1plus: warnings being treated errors scons: *** [obj/release/bootstrapper.o] error 1 scons: building terminated because of errors. make: *** [build/v8/libv8.a] error 2 *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:         --with-opt-dir         --without-opt-dir         --with-opt-include         --without-opt-include=${opt-dir}/include         --with-opt-lib         --without-opt-lib=${opt-dir}/lib         --with-make-prog         --without-make-prog         --srcdir=.         --curdir         --ruby=/home/praveen/.rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb:9:in `<main>': error compiling v8 (runtimeerror)   gem files remain installed in /home/praveen/.rvm/gems/ruby-1.9.3-p286/gems/therubyracer-heroku-0.8.1.pre3 inspection. results logged /home/praveen/.rvm/gems/ruby-1.9.3-p286/gems/therubyracer-heroku-0.8.1.pre3/ext/v8/gem_make.out 

gemfile contents info!

source 'https://rubygems.org'  gem "thin" gem "rack-contrib"  gem "middleman" gem "middleman-livereload", :git => "https://github.com/middleman/middleman-livereload.git" gem "middleman-smusher", :git  => "https://github.com/middleman/middleman-smusher.git" gem "middleman-favicon-maker", :git => "https://github.com/follmann/middleman-favicon-maker.git"   gem "slim" gem "compass-rgbapng" gem "sassy-buttons"  group :development   gem 'heroku'   gem 'foreman'   gem 'therubyracer-heroku', '0.8.1.pre3'   gem 'oj' end  group :production   gem 'therubyracer-heroku', '0.8.1.pre3'   gem 'oj' end 

so, ideas fix issue?

please use current version of therubyracer (0.11.4 of writing), , not therubyracer-heroku. no longer needed since main gem compatible heroku , no longer maintained.

the ordinary gem compatible heroku just

gem "therubyracer" 

in gemfile should trick


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -