Ruby on Rails Monday, August 18, 2014

Hi all

I'm still struggling with Windows 7, Ruby and shopify_app.

I install shopify_app (gem install shopify_app)
I create a project (rails new MetaManager)
I edit the Gemfile to include shopify app (Add 'gem 'shopify_app' to Gemfile)
I do a bundle install (bundle install)
then generate (rails generate shopify_app <key> <password>)
then I start the server (rails server)

then I get the following;

[WARNING] Please install gem 'therubyracer' to use Less.
d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/java_script/v8_conte
xt.rb:2:in `require': cannot load such file -- v8 (LoadError)
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/java_sc
ript/v8_context.rb:2:in `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/java_sc
ript.rb:9:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/java_sc
ript.rb:9:in `default_context_wrapper'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/java_sc
ript.rb:17:in `context_wrapper'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less/loader.
rb:12:in `initialize'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less.rb:14:i
n `new'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less.rb:14:i
n `<module:Less>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-2.3.3/lib/less.rb:9:in
 `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-2.3.3/lib/less/r
ails.rb:6:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-2.3.3/lib/less/r
ails.rb:6:in `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-2.3.3/lib/less-r
ails.rb:1:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-2.3.3/lib/less-r
ails.rb:1:in `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-bootstrap-2.3.3/
lib/less-rails-bootstrap.rb:8:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/less-rails-bootstrap-2.3.3/
lib/less-rails-bootstrap.rb:8:in `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:76:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:76:in `block (2 levels) in require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:72:in `each'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:72:in `block in require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:61:in `each'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/r
untime.rb:61:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler.r
b:133:in `require'
        from d:/row/MetaManager/config/application.rb:7:in `<top (required)>'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands/commands_tasks.rb:79:in `require'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands/commands_tasks.rb:79:in `block in server'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands/commands_tasks.rb:76:in `tap'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands/commands_tasks.rb:76:in `server'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands/commands_tasks.rb:40:in `run_command!'
        from d:/row/ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/co
mmands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

if I do a gem install therubyracer, i get the following;

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
        ERROR: Failed to build gem native extension.

    d:/row/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:58:
in `setup_python!': libv8 requires python 2 to be installed in order to build, b
ut it is currently not available (RuntimeError)
        from d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/b
uilder.rb:42:in `block in build_libv8!'
        from d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/b
uilder.rb:40:in `chdir'
        from d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/b
uilder.rb:40:in `build_libv8!'
        from d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/l
ocation.rb:24:in `install!'
        from extconf.rb:7:in `<main>'

I've tried doing everything in this thread, and more... I'm at a loss.

Has anyone successfully got this running, or more specifically the shopify_app with ruby under windows 7?

Gem files will remain installed in d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8
-3.16.14.3 for inspection.
Results logged to d:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/li
bv8/gem_make.out



On Friday, June 1, 2012 7:02:10 AM UTC+10, Ruby-Forum.com User wrote:
Hello, I have a problem when I try to add the gem therubyracer.

I put in my prompt:

bundle install, and this error appears:

C:\rails\organily>bundle install
Fetching gem metadata from https://rubygems.org/.........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.3)
Using builder (3.0.0)
Using activemodel (3.2.3)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.3)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.3)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.3)
Using activeresource (3.2.3)
Using bundler (1.2.0.pre.1)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.3)
Using coffee-rails (3.2.2)
Using jquery-rails (2.0.2)
Using libv8 (3.10.8.0)
Using mysql (2.8.1)
Using rails (3.2.3)
Using sass (3.1.19)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Installing therubyracer (0.8.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension
.

        C:/Ruby193/bin/ruby.exe extconf.rb
mkdir -p build
cp -r scons build
mkdir -p build/scons/install
python build/scons/setup.py install --prefix=install
make: python: Command not found
make: *** [build/scons/install/bin/scons] Error 127
*** 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=C:/Ruby193/bin/ruby
extconf.rb:10:in `<main>': Error compiling V8 (RuntimeError)
Compiling V8


Gem files will remain installed in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/therubyra
cer-0.8.2 for inspection.
Results logged to
C:/Ruby193/lib/ruby/gems/1.9.1/gems/therubyracer-0.8.2/ext/v8/
gem_make.out
An error occurred while installing therubyracer (0.8.2), and Bundler
cannot cont
inue.
Make sure that `gem install therubyracer -v '0.8.2'` succeeds before
bundling.

How can I solve this ?

Thank you.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/305ee5d5-1157-4529-971d-2687019234a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment