I am using Rails 4.2.5, ruby 2.2.5, v8 and the rubyracer gem tried all kids of versions from on-line helps nothing works. . I keep getting the errors below. V8 is not able to initialize. I tried different versions of rails and ruby using rvm. Bundle installs and bundle updates have no errors at all. Then when I 'rake' I get the following errors 'not happening' on Ubuntu 14.04.
rake
rake aborted!
LoadError: incompatible library version - /home/wayne/.rvm/gems/ruby- 2.2.5/gems/therubyracer-0.12.2/lib/v8/init.so
/home/wayne/.rvm/gems/ruby-2.2.5/gems/therubyracer-0.12.2/lib/v8.rb:4:in `require'
/home/wayne/.rvm/gems/ruby-2.2.5/gems/therubyracer-0.12.2/lib/v8.rb:4:in `<top (required)>'
/home/wayne/.rvm/gems/ruby-2.2.5/gems/therubyracer-0.12.2 /lib/therubyracer.rb:1:in `require'
/home/wayne/.rvm/gems/ruby-2.2.5/gems/therubyracer-0.12.2 /lib/therubyracer.rb:1:in `<top (required)>'
Related
All of a sudden I cant run my flutter app that uses firebase.
Apparently there's a problem with the pod install process, some dependency incompatibility.
Given the fact that I haven't changed anything in the yaml file and the app worked perfectly this morning, I assume is some problem with the tools and not with my source code.
The problem appeared after a flutter plugin update, but I don't know if the two things are related.
This is the build output:
Launching lib/main.dart on iPhone XR in debug mode...
Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Auth
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 0.0.1, which depends on
Firebase/Auth (~> 5.19)
Specs satisfying the `Firebase/Auth, Firebase/Auth (~> 5.19)` dependency were found, but they required a higher minimum deployment target.
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/resolver.rb:91:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:909:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:907:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:114:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:266:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:174:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:173:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer.rb:136:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/install.rb:48:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Error launching application on iPhone XR.
I tried updating one of my gems and ran into a whole lot of issues. I installed RVM (osx) thinking it would cure some issues - it didnt.
When running my grunt command i get this as my output:
Warning: Running "jekyll:server" (jekyll) task
`bundle exec jekyll build --source app --destination .jekyll --config _config.yml` was initiated.
Jekyll output:
Warning: Command failed: /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:385:in `block in require_program': program version required (Commander::Runner::CommandError)
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:384:in `each'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:384:in `require_program'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:52:in `run!'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/delegates.rb:8:in `run!'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/import.rb:10:in `block in <top (required)>'
/Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `require'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `<module:YAML>'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:132:in `<top (required)>'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/lib/jekyll.rb:21:in `require'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/lib/jekyll.rb:21:in `<top (required)>'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/bin/jekyll:7:in `require'
from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/bin/jekyll:7:in `<top (required)>'
from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `load'
from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `<main>'
from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
Use --force to continue.
Can someone help me fix/resolve this? Should i start over again? My build was generated prior to installing RVM.
I ran 'rvm reset and 'rvm version and it seems to have fixed my problem. Not too sure what was going on - I believe the ruby versions were confused.
I am using rails 4.1, but when i try to run 'rails s' on the terminal it give this error:
Exiting
/home/ben/.rvm/gems/ruby-2.0.0-p247#addtocartalerts/gems/railties-4.0.4/lib/rails/commands/server.rb:78:in `start': undefined method `formatter' for nil:NilClass (NoMethodError)
from /home/ben/.rvm/gems/ruby-2.0.0-p247#addtocartalerts/gems/railties-4.0.4/lib/rails/commands.rb:76:in `block in <top (required)>'
from /home/ben/.rvm/gems/ruby-2.0.0-p247#addtocartalerts/gems/railties-4.0.4/lib/rails/commands.rb:71:in `tap'
from /home/ben/.rvm/gems/ruby-2.0.0-p247#addtocartalerts/gems/railties-4.0.4/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
please help
You are not using rails 4.1. Look at the railties gem path. It says railties 4.0.4
Check Gemfile for right version. Do bundle update rails. Then use binstubs or bundle exec rails s if you have multiple rails gems installed
New to RoR and taking the One Month Rails class (onemonthrails.com)
I'm trying to import bootstrap.
ruby 2.0.0p247
rails 4.0.0
Here's my Gemfile (showing only the 'bootstrap-sass'line) :
Bootstrap Gem
gem 'bootstrap-sass', '~> 2.2.2.0'
And this is the output when running 'bundle install'
Diegos-Air-2:omrails Diego$ bundle install
Fetching gem metadata from '...rubygems.org/..........'
Fetching gem metadata from '...rubygems.org/..'
Resolving dependencies...
Enter your password to install the bundled RubyGems to your system:
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.8)
Using atomic (1.1.12)
Using thread_safe (0.1.2)
Using tzinfo (0.3.37)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0)
Using sass (3.2.10)
Installing bootstrap-sass (2.2.2.0)
Errno::EACCES: Permission denied - /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper
An error occurred while installing bootstrap-sass (2.2.2.0), and Bundler cannot continue.
Make sure that `gem install bootstrap-sass -v '2.2.2.0'` succeeds before bundling.
My GitHub link: github.com/dschmunis/omrails
Thanks for the help!
Diego
I've heard of some weird permission bugs right around this version
You could try installing directly into command line
gem install bootstrap-sass -v 2.2.2.0
and then run bundle install
Worst case scenario you should still be able to run sudo gem install bootstrap-sass -v 2.2.2.0
But you should be very careful with sudo. It can leave you open to system vulnerabilities and it can lead to some weird problems down the road with gems being installed all over the place. Long story short, don't use sudo carelessly.
I've just started maintaining someone else's code base and I'm having trouble getting it to run locally in a production environment. The error itself arises when precompiling the stylesheets.
It's a Rails 3.2.6 app running on Ruby 1.9.2. I noticed that in the output below, the gemset being used it global, which is odd because when I run
rvm gemset list
it indicates that the project's gemset is being used. I'm not sure if this is a cause of my problem of if it's unrelated.
I'm not really sure what to do to fix this. Any suggestions?
RAILS_ENV=production rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/bendowney/.rvm/rubies/ruby-1.9.2-p320/bin/ruby /Users/bendowney/.rvm/gems/ruby-1.9.2-p320#global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
undefined method `each' for true:TrueClass
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/actionpack-3.2.6/lib/sprockets/static_compiler.rb:47:in `compile_path?'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/actionpack-3.2.6/lib/sprockets/static_compiler.rb:22:in `block in compile'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:212:in `block in each_logical_path'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:200:in `block (2 levels) in each_file'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:190:in `each_entry'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:198:in `block in each_file'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:197:in `each_file'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/sprockets-2.1.3/lib/sprockets/base.rb:210:in `each_logical_path'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/actionpack-3.2.6/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/actionpack-3.2.6/lib/sprockets/assets.rake:56:in `internal_precompile'
/Users/bendowney/.rvm/gems/ruby-1.9.2-p320#challenge/gems/actionpack-3.2.6/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
In your environments/production.rb make sure your config.assets.precompile is an Array and not set to true. Example from the docs:
config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js']