Menu

#7 Fail to install fruit_processor_gem on CentOS 6 (VM)

v1.0 (example)
open
nobody
rake (2)
5
2018-10-29
2018-10-23
No

Running rake install in the fruit_processor_gem directory, after replacing two relevant test files by their ruby2 version, I get an error on the execution of the ruby misc_test.rb part, at MiscTest#test_os_install. I can't share the clipboard between VM and Windows, so I'll copy a simplified error report below. Excution with sudo or as su made no difference.

run misc_text.rb
Run options: --seed 15023

Running:

E
Finished in 0.004122s, 242.6248 runs/s, 0.0000 assertions/s.
1) Error:
MiscTest#test_os_install:
Errno::EROFS: Read-only file system @ rb_file_s_symlink - (os_install_from.txt, os_install_to.txt)
/opt/rbenv/versions/2.5.3/lib/ruby/2.5.0/fileutils.rb:323:in 'simlink'
/opt/.../fileutils.rb:323:in 'block in ln_s'
/opt/.../fileutils.rb:1479:in 'fu_each_src_dest0'
/opt/.../fileutils.rb:321: in 'ln_s'
/opt/.../fileutils.rb:240: in 'ln_sf'
.../fruit_processor_gem/lib/misc.rb:63:in 'os_install'
misc_test.rb:19: in 'test_os_install'
1 runs, 0 assertions, 0 failures, 1 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby misc_test.rb...]
.../fruit_processor_gem/rakefile:80:in 'block (2 levels) in <top (required)="">'
.../fruit_processor_gem/rakefile:78:in 'chdir'
.../fruit_processor_gem/rakefile:78:in 'block in <top (required)="">'
Tasks: TOP => install => default => test</top></top>

Discussion

  • istomoya

    istomoya - 2018-10-24

    Thanks for the report. I'll try to reproduce and fix it in the coming weekend.

     
  • istomoya

    istomoya - 2018-10-26

    I've tried to reproduce the problem on a newly installed CentOS 6 (VM), ruby 2.4.5p335, and fruit_3.4.3. "ruby misc_test.rb" did not cause error as shown below. Cassio, more information highly appreciated. Could you inform us version of rake and which command generated the error log?

    [istomoya@cent6istomoya test]$ cat /etc/redhat-release 
    CentOS release 6.10 (Final)
    [istomoya@cent6istomoya test]$ ruby --version
    ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux]
    [istomoya@cent6istomoya test]$ pwd
    /home/istomoya/fruit_3.4.3/fruit_processor_gem/test
    [istomoya@cent6istomoya test]$ ruby misc_test.rb 
    Loaded suite misc_test
    Started
    .
    
    Finished in 0.003051202 seconds.
    --------------------------------------------------------------------------------
    1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
    --------------------------------------------------------------------------------
    327.74 tests/s, 327.74 assertions/s
    [istomoya@cent6istomoya test]$ 
    
     
  • istomoya

    istomoya - 2018-10-27

    Running "ruby misc_test.rb" using ruby 2.5.3 through rbenv was also successful. So, I haven't been able to reporduce the problem [#7 Fail to install fruit_processor_gem on CentOS 6 (VM) ].

    [istomoya@cent6istomoya test]$ cat /etc/redhat-release 
    CentOS release 6.10 (Final)
    [istomoya@cent6istomoya test]$ rbenv version
    2.5.3 (set by /home/istomoya/fruit_3.4.3/fruit_processor_gem/.ruby-version)
    [istomoya@cent6istomoya test]$ ruby --version
    ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
    [istomoya@cent6istomoya test]$ pwd
    /home/istomoya/fruit_3.4.3/fruit_processor_gem/test
    [istomoya@cent6istomoya test]$ ruby misc_test.rb
    Loaded suite misc_test
    Started
    .
    Finished in 0.00095335 seconds.
    --------------------------------------------------------------------------------
    1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
    --------------------------------------------------------------------------------
    1048.93 tests/s, 1048.93 assertions/s
    [istomoya@cent6istomoya test]$
    
     
  • Cassio Amorim

    Cassio Amorim - 2018-10-29

    Ok, I guess I got it.

    I'm using Devtoolset-7 and rbenv 2.5.3, also in CentOS 6.10. Since you couldn't reproduce the error, I tried some extra investigation locally, assuming FRUIT basic inner workings are fine. I think I understood the problem.

    I had fruit directory in a folder shared between the VM (VirtualBox) and the host, which requires that the user belongs to a specific group (vboxsf, vboxusers) to be able to access this folder. It seems to be related to that. Naturally, my user (as well as su) belongs to this group, but I suppose some issue happens when invoking subprocesses.

    Anyway, I copied the FRUIT files to a folder outside of the shared one, and it worked fine. You may try to check it if you are curious, or just close the ticket, as you see fit.

     
  • Cassio Amorim

    Cassio Amorim - 2018-10-29

    And thanky you for the speedy response, it was greatly appreciated! =)

     

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.