Menu

#6 Gem creation fails with ruby 2.3.1

v1.0 (example)
open
nobody
None
5
2017-09-10
2017-09-09
phipsi
No

Hello,

I tried to install FRUIT as described in README but step 4 fails. My environment is:

pc:~$ uname -a
Linux pc 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

pc:~/Documents$ gfortran --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.

pc:~/Documents$ ruby --version
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

pc:~/Documents$ rake --version
rake, version 10.5.0

When running rake install in fruit_processor_gem I get the following message:

pc:~/Documents$ cd fruit/fruit_processor_gem/
pc:~/Documents/fruit/fruit_processor_gem$ rake install
"rubygems/package_task"
ruby fruit_processor_test.rb
Loaded suite fruit_processor_test
Started
.........2017-09-09 18:50:41 +0200
...............Warning: _test.f?? in filename must be lower case while in_subdir2_TEST.F03 has upper case
...

Finished in 2.178370047 seconds.

27 tests, 142 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed


12.39 tests/s, 65.19 assertions/s
ruby misc_test.rb
Loaded suite misc_test
Started
.

Finished in 0.000914742 seconds.

1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed


1093.20 tests/s, 1093.20 assertions/s
cd pkg/fruit_processor-3.3.8
WARNING: See http://guides.rubygems.org/specification-reference/ for help
rake aborted!
Gem::InvalidSpecificationException: ["test/for_test_picker/fruit_basket_gen.f90"] are not files

Tasks: TOP => install => default => pkg/fruit_processor-3.3.8.gem
(See full trace by running task with --trace)
pc:~/Documents/fruit/fruit_processor_gem$

Is there a workaround to have it run?

Thanks

Discussion

  • istomoya

    istomoya - 2017-09-09

    Thanks for the detailed report. I installed Ubuntu16 and reproduced the error.
    On the error

    Gem::InvalidSpecificationException: ["test/for_test_picker/fruit_basket_gen.f90"] are not files

    please try replacing a line in fruit_processor_gem/rakefile

       'test/for_test_picker/*.f90',
    

    with

       'test/for_test_picker/*_test.f90',
    

    It has fixed the problem on my Ubuntu16.

     
  • phipsi

    phipsi - 2017-09-10

    Many thanks for the fix. Now it works.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.