diff --git a/ext/libv8/location.rb b/ext/libv8/location.rb index 572680f..bc4111b 100644 --- a/ext/libv8/location.rb +++ b/ext/libv8/location.rb @@ -34,8 +34,8 @@ module Libv8 def verify_installation! include_paths = Libv8::Paths.include_paths - unless include_paths.detect { |p| Pathname(p).join('include/v8.h').exist? } - fail HeaderNotFound, "Unable to locate 'include/v8.h' in the libv8 header paths: #{include_paths.inspect}" + unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? } + fail HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}" end Libv8::Paths.object_paths.each do |p| fail ArchiveNotFound, p unless File.exist? p diff --git a/ext/libv8/paths.rb b/ext/libv8/paths.rb index ec403f5..85b04d0 100644 --- a/ext/libv8/paths.rb +++ b/ext/libv8/paths.rb @@ -7,7 +7,7 @@ module Libv8 module_function def include_paths - [Shellwords.escape(vendored_source_path)] + [Shellwords.escape(File.join(vendored_source_path, 'include'))] end def object_paths