I am completely newbie to this rails frame work and learning via online tutorials. I am in the process of developing a simple application with the help of rails(rails+Mysql).
Currently i am facing an issue with "rake" command.
When i tried to "rake db:schema:dump" the following errors are coming.Pls suggest me some thing.
Thanks in advance.
harsha#Trebuchet:~/simp_cms$ rake db:schema:dump --trace
rake aborted!
LoadError: cannot load such file -- bundler/setup
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/config/boot.rb:3:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/config/application.rb:1:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/Rakefile:4:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/home/harsha/.rbenv/versions/2.2.2/bin/rake:33:in `<main>'
harsha#Trebuchet:~/simp_cms$ bundle exec rake db:schema:dump --trace
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr in PATH, mode 040777
Could not find debugger-1.6.8 in any of the sources
Run `bundle install` to install missing gems.
harsha#Trebuchet:~/simp_cms$ gem install debugger -v 1.6.8
Building native extensions. This could take a while...
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr in PATH, mode 040777
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/home/harsha/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150628-11403-1nydzd5.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
My Ruby version, rails version and gem list
harsha#Trebuchet:~$ rails -v
Rails 4.2.2
harsha#Trebuchet:~$ rails -v
Rails 4.2.2
harsha#Trebuchet:~$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.2)
actionpack (4.2.2)
actionview (4.2.2)
activejob (4.2.2)
activemodel (4.2.2)
activerecord (4.2.2)
activesupport (4.2.2)
arel (6.0.0)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
erubis (2.7.0)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0, 5.4.3)
mysql2 (0.3.18)
nokogiri (1.6.6.2)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
rake (10.4.2)
rdoc (4.2.0)
spring (1.3.6)
test-unit (3.1.2, 3.0.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
Please find my database.yml file
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: simp_cms
password: secretpassword
socket: /tmp/mysql.sock
development:
<<: *default
database: simp_cms_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: simp_cms_test
please feel free to contact me for any more details...
Update 1:
installed bundler and ran "bundle install"
harsha#Trebuchet:~/simp_cms$ gem install bundler
Successfully installed bundler-1.10.5
Parsing documentation for bundler-1.10.5
Done installing documentation for bundler after 5 seconds
1 gem installed
harsha#Trebuchet:~/simp_cms$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.2)
actionpack (4.2.2)
actionview (4.2.2)
activejob (4.2.2)
activemodel (4.2.2)
activerecord (4.2.2)
activesupport (4.2.2)
arel (6.0.0)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.5)
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
erubis (2.7.0)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0, 5.4.3)
mysql2 (0.3.18)
nokogiri (1.6.6.2)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
rake (10.4.2)
rdoc (4.2.0)
spring (1.3.6)
test-unit (3.1.2, 3.0.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
harsha#Trebuchet:~/simp_cms$ bundle install
Using rake 10.4.2
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler.rb:315: warning: Insecure world writable dir /usr in PATH, mode 040777
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.7.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.2
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.2
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.2
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.2
Using globalid 0.3.5
Using activejob 4.2.2
Using mime-types 2.6.1
Using mail 2.6.3
Using actionmailer 4.2.2
Using activemodel 4.2.2
Using arel 6.0.0
Using activerecord 4.2.2
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using columnize 0.9.0
Using debugger-linecache 1.2.0
Using debugger-ruby_core_source 1.3.8
Using debugger 1.6.8
Using mysql2 0.3.18
Using bundler 1.10.5
Using thor 0.19.1
Using railties 4.2.2
Using sprockets 3.2.0
Using sprockets-rails 2.3.2
Using rails 4.2.2
Using rdoc 4.2.0
Using sdoc 0.4.1
Using spring 1.3.6
Using web-console 2.1.3
Bundle complete! 6 Gemfile dependencies, 44 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
harsha#Trebuchet:~/simp_cms$
Now when i tried to use rake command.the below error is coming
harsha#Trebuchet:~/simp_cms$ bundle exec rake
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr in PATH, mode 040777
Could not find debugger-1.6.8 in any of the sources
Run `bundle install` to install missing gems.
harsha#Trebuchet:~/simp_cms$ gem install debugger -v 1.6.8
Building native extensions. This could take a while...
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr in PATH, mode 040777
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/home/harsha/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150628-3517-1lyt1uy.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You 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/harsha/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `initialize': No such file or directory # rb_sysopen - ./222/ruby_debug.h (Errno::ENOENT)
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `open'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `copy_file'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:485:in `copy_file'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:402:in `block in cp'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1570:in `block in fu_each_src_dest'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1584:in `fu_each_src_dest0'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1568:in `fu_each_src_dest'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:401:in `cp'
from extconf.rb:83:in `block in <main>'
from extconf.rb:82:in `each'
from extconf.rb:82:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /home/harsha/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/debugger-1.6.8 for inspection.
Results logged to /home/harsha/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/debugger-1.6.8/gem_make.out
harsha#Trebuchet:~/simp_cms$
it seems debugger gem is having some issues but not sure what they are
found the problem :: "debugger" gem is not compatible with ruby 2.x versions.
Hence commented debugger in gem file and ran "rbenv rehash" "bundle install" ...Thats all issue resolved.
Related
Decided I wanted to update my sass development environment today to use source maps and I seem stuck on this error. I've tried moving to a new version of ruby by switching to rbenv, uninstalled everything, reinstalled everything. Even went and made sure there were no stray references to the old listen in the mac install of ruby. I can't seem to get past this. this is the trace on the watch.
sass --watch scss:public/css --trace
>>> Sass is watching for changes. Press Ctrl-C to stop.
~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin/compiler.rb:306:in `create_listener': undefined method `to' for Listen:Module (NoMethodError)
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin/compiler.rb:233:in `watch'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/plugin.rb:108:in `method_missing'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:509:in `watch_or_update'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:346:in `process_result'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:43:in `parse'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/lib/sass/exec.rb:22:in `parse!'
from ~/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.3.0.rc.3/bin/sass:13:in `<top (required)>'
from ~/.rbenv/versions/2.1.0/bin/sass:23:in `load'
from ~/.rbenv/versions/2.1.0/bin/sass:23:in `<main>'
Showing which version of ruby is being used:
[scott] ~/CODE/ $ which ruby
~/.rbenv/shims/ruby
here's the gem list output
bigdecimal (1.2.5, 1.2.3)
bundler (1.5.3)
celluloid (0.15.2)
chunky_png (1.2.9)
ffi (1.9.3)
fssm (0.2.10)
hitimes (1.2.1)
io-console (0.4.2)
json (1.8.1)
listen (2.4.1)
minitest (5.2.2, 4.7.5)
multi_json (1.8.4)
psych (2.0.4, 2.0.2)
rake (10.1.1, 10.1.0)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rb-kqueue (0.2.0)
rdoc (4.1.1, 4.1.0)
rubygems-update (2.2.2)
sass (3.3.0.rc.3)
test-unit (2.5.5, 2.1.0.0)
timers (2.0.0, 1.1.0)
Same issue here.
Using older version solves the problem so
$ gem uninstall sass
$ gem install sass -v 3.3.0.rc.2
And don't forget proper compass version
$gem install compass -v 0.13.alpha.12
I've upgraded the tool belt and setup an app in my Heroku account named tycoon but I'm getting an error trying to push to Heroku using git push Heroku master.
There were conflicts pushing to an existing app I deployed earlier so I deleted that app and created a new app called tycoon, but when I do a push i get the error I pasted down below.
It's difficult to make out what it was that tripped it up because it appears to be throwing the error (rake aborted!) in the middle or just after loading the logo image. Then after that, the first file it lists in the error reporting is a JS file (assets/javascript/application), but every line in that file is commented out so it's basically blank and I can't see how that could be causing this deployment error.
! Precompiling assets failed.
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$ git push heroku master
Initializing repository, done.
Counting objects: 1241, done.
Compressing objects: 100% (857/857), done.
Writing objects: 100% (1241/1241), 1.32 MiB | 262 KiB/s, done.
Total 1241 (delta 810), reused 610 (delta 343)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/rails/rails.git
Fetching git://github.com/rails/coffee-rails.git
Fetching git://github.com/thoughtbot/paperclip.git
Fetching https://github.com/rails/sass-rails.git
Using rake (10.1.0)
Installing i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
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.2) from https://github.com/rails/rails.git (at 4-0-stable)
Installing mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activemodel (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using bcrypt-ruby (3.1.2)
Using sass (3.2.12)
Installing bootstrap-sass (3.0.2.0)
Installing climate_control (0.0.3)
Installing cocaine (0.5.3)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using coffee-rails (4.0.1) from git://github.com/rails/coffee-rails.git (at master)
Installing faker (1.2.0)
Installing hash-deep-merge (0.1.1)
Using hike (1.2.3)
Installing jbuilder (1.0.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using bundler (1.3.2)
Installing lazy_high_charts (1.5.0)
Installing mortgage_calc (0.1.8)
Using paperclip (3.5.2) from git://github.com/thoughtbot/paperclip.git (at master)
Installing pg (0.15.1)
Using tilt (1.4.1)
Installing sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using rails_serve_static_assets (0.0.1)
Using rails_stdout_logging (0.0.3)
Using rails_12factor (0.0.2)
Using rdoc (3.12.2)
Using sass-rails (4.0.1) from https://github.com/rails/sass-rails.git (at master)
Using sdoc (0.3.20)
Installing turbolinks (1.1.1)
Installing uglifier (2.1.1)
Installing will_paginate (3.0.5)
Installing will_paginate-bootstrap (1.0.0)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (83.21s)
Cleaning up the bundler cache.
Removing coffee-rails (4.0.1)
Removing activeresource (3.2.14)
Removing actionpack (4.0.1)
Removing sass (3.2.10)
Removing activesupport (3.2.14)
Removing arel (3.0.2)
Removing builder (3.0.4)
Removing kgio (2.8.1)
Removing activemodel (4.0.1)
Removing jbuilder (1.5.2)
Removing sass-rails (4.0.1)
Removing coffee-rails (3.2.2)
Removing railties (4.0.1)
Removing tzinfo (0.3.37)
Removing puma (2.6.0)
Removing mini_portile (0.5.1)
Removing sprockets (2.2.2)
Removing execjs (2.0.1)
Removing sprockets (2.10.0)
Removing rails_stdout_logging (0.0.2)
Removing sass-rails (3.2.6)
Removing rack (1.4.5)
Removing jbuilder (1.5.1)
Removing activerecord (4.0.1)
Removing unicorn (4.6.3)
Removing bcrypt-ruby (3.0.1)
Removing journey (1.0.4)
Removing rack-ssl (1.3.3)
Removing activemodel (3.2.14)
Removing actionmailer (4.0.1)
Removing i18n (0.6.5)
Removing rack-cache (1.2)
Removing activerecord (3.2.14)
Removing activesupport (4.0.1)
Removing nokogiri (1.6.0)
Removing uglifier (2.3.1)
Removing pg (0.17.0)
Removing json (1.8.0)
Removing mime-types (1.25)
Removing raindrops (0.12.0)
Removing actionpack (3.2.14)
Removing multi_json (1.8.0)
Removing uglifier (2.2.1)
Removing actionmailer (3.2.14)
Removing rails (4.0.1)
Removing turbolinks (1.3.1)
Removing rails (3.2.14)
Removing railties (3.2.14)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-12-12T07:21:34.932976 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/american_dream_home-37874daacff06fbb26eb8b84ee1f84a1.jpg
I, [2013-12-12T07:21:34.935188 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/cabin_style_dream_home-9987333105c1424b8fc9aaf7c1efbf07.jpg
I, [2013-12-12T07:21:34.937405 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/contemporary_dream_home-1e8e61d0591ec26a104029ab0e92906c.jpg
I, [2013-12-12T07:21:34.939250 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/csulb_logo-b94fb88ec35ebf0db98c07a4fa00e6ed.jpg
I, [2013-12-12T07:21:34.941295 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_corporate_building-c4adcb12e189ad0215568925af112601.png
I, [2013-12-12T07:21:34.943313 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_header_logo-66f7c71223c8377c2f56dd1261011a65.jpg
I, [2013-12-12T07:21:34.945011 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black-29edd8d4b49980a739dfdb52c2464007.png
I, [2013-12-12T07:21:34.946625 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black_2-d92244c141090ac417f460b7a9d2fbe2.png
rake aborted!
Unexpected token: name (side) (line: 10600, col: 22, pos: 329089)
Error
at new JS_Parse_Error (/tmp/execjs20131212-1556-dj66x9.js:2316:10736)
at js_error (/tmp/execjs20131212-1556-dj66x9.js:2316:10955)
at croak (/tmp/execjs20131212-1556-dj66x9.js:2316:18665)
at token_error (/tmp/execjs20131212-1556-dj66x9.js:2316:18802)
at unexpected (/tmp/execjs20131212-1556-dj66x9.js:2316:18890)
at semicolon (/tmp/execjs20131212-1556-dj66x9.js:2316:19363)
at simple_statement (/tmp/execjs20131212-1556-dj66x9.js:2316:21849)
at /tmp/execjs20131212-1556-dj66x9.js:2316:20090
at /tmp/execjs20131212-1556-dj66x9.js:2316:19536
at /tmp/execjs20131212-1556-dj66x9.js:2316:31209
(in /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/app/assets/javascripts/application.js)/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:68:in `extract_result'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:28:in `block in exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:27:in `exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:176:in `really_compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:100:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/uglifier_compressor.rb:25:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:197:in `block in evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/bundled_asset.rb:25:in `initialize'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `new'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:94:in `block in build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/caching.rb:58:in `cache_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:211:in `block in find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:257:in `benchmark'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:210:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:119:in `block in compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/rake/sprocketstask.rb:146:in `with_logger'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$
I am upgrading my system to ruby 2.0 and I have done everything short of throw my computer on the wall. I find it hard to believe that fastthread is the problem. Has anyone else seen this error when running 'bundle install'. Here is my ruby version
ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
when I try to run rails -v I get this
rails -v
Could not find fastthread-1.0.7 in any of the sources
Run bundle install to install missing gems.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.0.3)
Using i18n (0.6.1)
Using multi_json (1.6.1)
Using activesupport (3.2.9)
Using builder (3.0.4)
Using activemodel (3.2.9)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.2.2)
Using actionpack (3.2.9)
Using mime-types (1.21)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.9)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.9)
Using activeresource (3.2.9)
Using bundler (1.3.0)
Using highline (1.6.15)
Using net-ssh (2.6.5)
Using net-scp (1.1.0)
Using net-sftp (2.1.1)
Using net-ssh-gateway (1.2.0)
Using capistrano (2.14.2)
Using chunky_png (1.2.7)
Using coffee-script-source (1.5.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.17.0)
Using railties (3.2.9)
Using coffee-rails (3.2.2)
Using fssm (0.2.10)
Using sass (3.2.6)
Using compass (0.12.2)
Using compass-rails (1.0.3)
Using daemon_controller (1.1.1)
Installing fastthread (1.0.7)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/ben/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
make
Makefile:104: *** missing separator. Stop.
Gem files will remain installed in /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7 for inspection.
Results logged to /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
An error occurred while installing fastthread (1.0.7), and Bundler cannot
continue.
Make sure that `gem install fastthread -v '1.0.7'` succeeds before bundling.
Has anyone else ran into this?
Conents of /Users/[me]/.rvm/gems/ruby-2.0.0-p0/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
/Users/[me]/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
make
Makefile:104: *** missing separator. Stop.
Phusion Passenger 4 has already solved this by removing the fastthread dependency. The 4.0 betas and RCs install just fine on Ruby 2.0.
If you use Passenger as your webserver you have to have this dependency. See this pull request for the fix: https://github.com/zoltankiss/fastthread/commit/a47a121990cf7d4f31147406c2d379dabc048479
The author of the gem has not yet included this fix. You can require fastthread from https://github.com/zoltankiss/fastthread if you need it. That is who submitted the pull request.
I'm quite new at all of this stuff, so I may have made some simple (and/or horribly disastrous) mistakes. In what follows, I describe the web of issues I'm confronting, but I get the impression that the "bundle config" error is at the root. Here's what I've been facing:
I've been trying to set up a personal wiki with Wagn's interesting arrangement. I've been trying to install version 1.8 according to the instructions, but I have been for more than a week on the 3rd step, "Configure", which instructs me to run this bundle command:
$ bundle exec rake wagn:install
I'm running OS X 10.6.8, MySQL Ver 14.14 Distrib 5.5.20, Ruby 1.9.3, Rails 2.3.11, Bundler 1.0.21, and Rake 0.9.2.2 (think that's everything relevant).
Initially, I was getting this error:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
which I (hopefully) overcame by making the repairs suggested by Matthew Mceachen.
I have now been stumped on the following error, which is returned when I try to run the above cited "bundle exec rake" command (user name replaced with 'ME'):
xxxxxxxxxxxxxxxx:wagn xxxxxxxxx$ bundle exec rake wagn:install
/Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:11:in `[]': undefined method `[]' for false:FalseClass (NoMethodError)
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:261:in `configure_gem_home_and_path'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:82:in `configure'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:136:in `definition'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:126:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/cli.rb:340:in `exec'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `<main>'
I've tried to check this against the bundler configurations, but receive the following error when I use "$ bundle config":
XXXXXXXXXXXXX:wagn XXXXXXXXX$ bundle config
Settings are listed in order of priority. The top value will be used.
/Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `block in all': invalid byte sequence in UTF-8 (ArgumentError)
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `select'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `all'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/cli.rb:375:in `config'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `<main>'
Tho I've found several discussions dealing with erros citing "invalid byte sequences", none of them seem to apply to my situation in any clear way. The most common response seemed to be to check and the locale and make sure everything is assigned to UTF-8, which I did. $ locale now returns this:
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
My gem list, for good measure:
actionmailer (3.2.1, 2.3.11)
actionpack (3.2.1, 2.3.11)
activemodel (3.2.1)
activerecord (3.2.1, 2.3.11)
activeresource (3.2.1, 2.3.11)
activesupport (3.2.1, 2.3.11)
arel (3.0.0)
aws-s3 (0.6.2)
builder (3.0.0)
bundler (1.0.21 ruby)
erubis (2.7.0)
hike (1.2.1)
hoptoad_notifier (2.4.11)
htmlentities (4.2.4)
i18n (0.6.0)
image_science (1.2.1)
journey (1.0.1)
json (1.6.5, 1.4.6)
macaddr (1.0.0)
mail (2.4.1)
mime-types (1.17.2, 1.16)
multi_json (1.0.4)
mysql (2.8.1)
newrelic_rpm (3.3.1, 3.1.0)
polyglot (0.3.3)
rack (1.4.1, 1.1.3, 1.1.2)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.1, 2.3.11)
railties (3.2.1)
rake (0.9.2.2, 0.9.2)
rdoc (3.12)
ruby-mysql (2.9.4)
RubyInline (3.8.6)
spork (0.9.0)
sprockets (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
uuid (2.2.0)
xml-simple (1.1.1, 1.1.0)
ZenTest (4.6.2, 4.5.0)
Any insight you might be able to provide would be very helpful. Even if I seem to be pointed in the completely wrong direction or whatever, a few words to point me aright would be gratefully received. Thanks in advance!
So I've been using a PDF guide to help bring my application from 2.3.2 to 3.0.7. I'm still relatively new at this ... but I've managed to use the rails_upgrade plugin to help convert my route files and other config files. But when it comes to running the server I get this error:
/home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:284:in `activate': Unable to activate railties-3.0.7, because activesupport-2.3.2 conflicts with activesupport (= 3.0.7), actionpack-2.3.2 conflicts with actionpack (= 3.0.7) (Gem::LoadError)
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `try_activate'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:in `rescue in require'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from script/rails:6:in `<main>'
now I have tried clean installing rvm, and installing a few libraries mentioned in other posts to no avail. my gem list is as follows:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7, 2.3.2)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
activesupport (3.0.7, 2.3.2)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.13)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.3, 1.0.10)
erubis (2.6.6)
fastthread (1.0.7)
gem_plugin (0.2.3)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
mongrel (1.2.0.pre2)
mysql (2.8.1)
mysql2 (0.3.2)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.7)
railties (3.0.7)
rake (0.8.7)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)
Does anyone have a clue what the solution to this would be? It occurs when I run rails s (or rails server).
I apologize if the answer to this question is blatantly obvious, but I've searched and searched and can't seem to find something specific enough for my situation.
thank you for your help.
n.b.
the *'s are just where I search and replaced my user name.
Try uninstalling the 2.3.2 versions of activesupport and actionpack. I think the syntax is...
gem uninstall activesupport actionpack -v 2.3.2
It looks like you need to upgrade rails because the error is stating a version conflict between the different gems rails uses.
It really depends on how you are managing gems gem update rails.