diamondback-ruby icon indicating copy to clipboard operation
diamondback-ruby copied to clipboard

cp: stubs/2.3.0/*: No such file or directory

Open jazzdan opened this issue 7 years ago • 2 comments

Hi!

Thanks for updating this project and bringing it back. :)

When I was going through the installation instructions I ran in to a problem running omake. The output looked like this:

> omake install
*** omake: reading OMakefiles
--- Checking for ocamlfind... (found /Users/danmiller/.opam/4.03.0/bin/ocamlfind)
--- Checking for ocamlc.opt... (found /Users/danmiller/.opam/4.03.0/bin/ocamlc.opt)
--- Checking for ocamlopt.opt... (found /Users/danmiller/.opam/4.03.0/bin/ocamlopt.opt)
--- Checking for ocamldep.opt... (found /Users/danmiller/.opam/4.03.0/bin/ocamldep.opt)
--- Checking for ocamllex.opt... (found /Users/danmiller/.opam/4.03.0/bin/ocamllex.opt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
--- Checking whether ocamlopt can create cmxs plugins... (yes)
--- Checking for ocaml-getopt... (/Users/danmiller/.opam/4.03.0/lib/getopt)
--- Checking for ocamlgraph... (/Users/danmiller/.opam/4.03.0/lib/ocamlgraph)
--- Checking for OUnit... (/Users/danmiller/.opam/4.03.0/lib/oUnit)
--- Checking if OUnit defines the was_successful function... (false)
--- Checking for gcc... (found /usr/bin/gcc)
--- Checking for g++... (found /usr/bin/g++)
--- Checking for gcc... (found /usr/bin/gcc)
--- Checking for g++... (found /usr/bin/g++)
--- Checking for gcc... (found /usr/bin/gcc)
--- Checking for ld... (found /usr/bin/ld)
--- Checking for as... (found /usr/bin/as)
--- Checking for syck.h... (found)
--- Checking for ruby... (found /usr/local/var/rbenv/shims/ruby)
--- Checking for RSpec testing framework... (FAILED - skipping Ruby tests)
--- Checking for Ruby ruby_version... (2.3.0)
--- Checking for Ruby sitelibdir... (/usr/local/var/rbenv/versions/2.3.4/lib/ruby/site_ruby/2.3.0)
--- Checking for Ruby libdir... (/usr/local/var/rbenv/versions/2.3.4/lib)

Installation summary:
              binary: /usr/local/bin/druby
         config file: /usr/local/etc/druby.conf
          ruby files: /usr/local/var/rbenv/versions/2.3.4/lib/ruby/site_ruby/2.3.0/druby
       support files: /usr/local/var/rbenv/versions/2.3.4/lib/ruby/druby/2.3.0

File tests/OMakefile: line 20, characters 26-52:
   Warning: old-style fun expression.
   This expression should use a => binding.
*** omake: finished reading OMakefiles (5.20 sec)
--- Checking if ocamldep understands -modules... (yes)
- build . <install_lib>
+ /bin/cp -rf stubs/2.3.0/* /usr/local/var/rbenv/versions/2.3.4/lib/ruby/druby/2.3.0
cp: stubs/2.3.0/*: No such file or directory
*** omake: 161/549 targets are up to date
*** omake: failed (5.86 sec, 1/1 scans, 4/4 rules, 66/152 digests)
*** omake: targets were not rebuilt because of errors:
   <phony <install_lib>>
      depends on: stubs/2.3
      depends on: stubs/2.3/digest
      depends on: stubs
      depends on: stubs/2.3/rbconfig
      depends on: stubs/2.3/etc.so.rb
      depends on: stubs/2.3/nkf.so.rb
      depends on: stubs/2.3/digest/md5.so.rb
      depends on: stubs/2.3/sha2.so.rb
      depends on: stubs/2.3/syck.so.rb
      depends on: stubs/2.3/zlib.so.rb
      depends on: stubs/2.3/rbconfig/datadir.rb
      depends on: stubs/2.3/digest/sha2.so.rb
      depends on: stubs/2.3/digest/sha1.so.rb
      depends on: stubs/2.3/fcntl.so.rb
      depends on: stubs/2.3/rbconfig.rb
      depends on: stubs/2.3/iconv.so.rb
      depends on: stubs/2.3/socket.so.rb
      depends on: stubs/2.3/digest.so.rb
      depends on: stubs/2.3/thread.so.rb
      depends on: stubs/2.3/digest/rmd160.so.rb
      depends on: stubs/2.3/openssl.so.rb
      depends on: stubs/2.3/base_types.rb
      depends on: stubs/2.3/stringio.so.rb

I was using the version of Ruby specified in the rbenv file in the project (2.3.4).

The fix was pretty simple. I just renamed the stubs/2.3 file to be stubs/2.3.0, but this seemed like a bug.

[~/diamondback-ruby/stubs]> mv 2.3 2.3.0
[~/diamondback-ruby/stubs]> cd ..
[~/diamondback-ruby]> omake install
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.23 sec)

Is the idea that druby only cares about the Ruby version up to the minor version? Does there need to be a change to the ocaml makefile to detect the version more loosely?

Thanks again!

jazzdan avatar Oct 23 '17 15:10 jazzdan

Thanks for report. What is your operating system?

stereobooster avatar Oct 23 '17 15:10 stereobooster

Oh sorry: Mac OS 10.12.6

jazzdan avatar Oct 23 '17 15:10 jazzdan