-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I tried running excel_to_ruby on a fresh install of Ubuntu 20.0.4 LTS, after installing ruby and bundler, and got the following error:
09:53 Excel to Code version 0.3.19
09:53 Removing old folders
/home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299: warning: Insecure world writable dir /home/tur-ium/.rvm/gems/ruby-2.5.8/bin in PATH, mode 040777
09:53 Unzipping the spreadsheet
Traceback (most recent call last):
5: from translate_excel_into_c.rb:46:in `<main>'
4: from translate_excel_into_c.rb:29:in `translate_excel_into_c'
3: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:150:in `go!'
2: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:294:in `unzip_excel'
1: from /home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299:in execute_system_command'
/home/tur-ium/.rvm/gems/ruby-2.5.8/gems/excel_to_code-0.3.19/src/commands/excel_to_x.rb:299:in ': No such file or directory - unzip (Errno::ENOENT)
It looks like excel_to_code executes the system command unzip, but this is not installed by default on Ubuntu, and many other Linux distributions. It may be more robust to use a dedicated Ruby module for unzipping, such as zlib, or to ensure unzip is noted a dependency in the Ubuntu repo.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels