Running with ruby system
See original GitHub issueHi
I’m trying exec embulk using the system ruby command, but it is not working. If I run directly in terminal, it works.
The command is:
path_prefix='FILENAME' /Users/myuser/.embulk/bin/embulk run lib/embulk/repository.yml.liquid
The output is:
Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.11
Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
Ignoring binding_of_caller-0.7.2 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-9.0.6 because its extensions are not built. Try: gem pristine byebug --version 9.0.6
Ignoring byebug-9.0.5 because its extensions are not built. Try: gem pristine byebug --version 9.0.5
Ignoring byebug-9.0.4 because its extensions are not built. Try: gem pristine byebug --version 9.0.4
Ignoring byebug-9.0.0 because its extensions are not built. Try: gem pristine byebug --version 9.0.0
Ignoring byebug-8.2.5 because its extensions are not built. Try: gem pristine byebug --version 8.2.5
Ignoring byebug-8.2.4 because its extensions are not built. Try: gem pristine byebug --version 8.2.4
Ignoring byebug-8.2.2 because its extensions are not built. Try: gem pristine byebug --version 8.2.2
Ignoring byebug-8.2.1 because its extensions are not built. Try: gem pristine byebug --version 8.2.1
Ignoring byebug-4.0.5 because its extensions are not built. Try: gem pristine byebug --version 4.0.5
Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.9.1 because its extensions are not built. Try: gem pristine eventmachine --version 1.0.9.1
Ignoring ffi-1.9.14 because its extensions are not built. Try: gem pristine ffi --version 1.9.14
Ignoring ffi-1.9.13 because its extensions are not built. Try: gem pristine ffi --version 1.9.13
Ignoring ffi-1.9.10 because its extensions are not built. Try: gem pristine ffi --version 1.9.10
Ignoring ffi-1.9.8 because its extensions are not built. Try: gem pristine ffi --version 1.9.8
Ignoring hitimes-1.2.3 because its extensions are not built. Try: gem pristine hitimes --version 1.2.3
Ignoring http_parser.rb-0.6.0 because its extensions are not built. Try: gem pristine http_parser.rb --version 0.6.0
Ignoring json-1.8.2 because its extensions are not built. Try: gem pristine json --version 1.8.2
Ignoring kgio-2.10.0 because its extensions are not built. Try: gem pristine kgio --version 2.10.0
Ignoring libv8-3.16.14.13 because its extensions are not built. Try: gem pristine libv8 --version 3.16.14.13
Ignoring libv8-3.3.10.4 because its extensions are not built. Try: gem pristine libv8 --version 3.3.10.4
Ignoring mysql2-0.4.4 because its extensions are not built. Try: gem pristine mysql2 --version 0.4.4
Ignoring mysql2-0.4.3 because its extensions are not built. Try: gem pristine mysql2 --version 0.4.3
Ignoring mysql2-0.4.2 because its extensions are not built. Try: gem pristine mysql2 --version 0.4.2
Ignoring mysql2-0.3.21 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.21
Ignoring mysql2-0.3.20 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.20
Ignoring nio4r-1.2.1 because its extensions are not built. Try: gem pristine nio4r --version 1.2.1
Ignoring nokogiri-1.6.8 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.8
Ignoring nokogiri-1.6.7.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.2
Ignoring nokogiri-1.6.7.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7.1
Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2
Ignoring oj-2.17.1 because its extensions are not built. Try: gem pristine oj --version 2.17.1
Ignoring oj-2.15.0 because its extensions are not built. Try: gem pristine oj --version 2.15.0
Ignoring oj-2.14.3 because its extensions are not built. Try: gem pristine oj --version 2.14.3
Ignoring oj-2.12.14 because its extensions are not built. Try: gem pristine oj --version 2.12.14
Ignoring passenger-5.0.6 because its extensions are not built. Try: gem pristine passenger --version 5.0.6
Ignoring pg-0.19.0 because its extensions are not built. Try: gem pristine pg --version 0.19.0
Ignoring pg-0.18.4 because its extensions are not built. Try: gem pristine pg --version 0.18.4
Ignoring pg-0.18.1 because its extensions are not built. Try: gem pristine pg --version 0.18.1
Ignoring puma-3.6.0 because its extensions are not built. Try: gem pristine puma --version 3.6.0
Ignoring puma-3.4.0 because its extensions are not built. Try: gem pristine puma --version 3.4.0
Ignoring puma-2.16.0 because its extensions are not built. Try: gem pristine puma --version 2.16.0
Ignoring puma-2.8.2 because its extensions are not built. Try: gem pristine puma --version 2.8.2
Ignoring raindrops-0.16.0 because its extensions are not built. Try: gem pristine raindrops --version 0.16.0
Ignoring raindrops-0.15.0 because its extensions are not built. Try: gem pristine raindrops --version 0.15.0
Ignoring rmagick-2.15.4 because its extensions are not built. Try: gem pristine rmagick --version 2.15.4
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
Ignoring therubyracer-0.12.2 because its extensions are not built. Try: gem pristine therubyracer --version 0.12.2
Ignoring thin-1.5.1 because its extensions are not built. Try: gem pristine thin --version 1.5.1
Ignoring tiny_tds-1.0.3 because its extensions are not built. Try: gem pristine tiny_tds --version 1.0.3
Ignoring tiny_tds-0.7.0 because its extensions are not built. Try: gem pristine tiny_tds --version 0.7.0
Ignoring unf_ext-0.0.7.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.2
Ignoring unicorn-5.1.0 because its extensions are not built. Try: gem pristine unicorn --version 5.1.0
Ignoring unicorn-5.0.1 because its extensions are not built. Try: gem pristine unicorn --version 5.0.1
Ignoring websocket-driver-0.6.4 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.4
Ignoring websocket-driver-0.6.3 because its extensions are not built. Try: gem pristine websocket-driver --version 0.6.3
Could not find gem 'tzinfo-data java' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
Is there a limitation about it?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to Run System Commands From Ruby - RubyGuides
The Ruby system method is the simplest way to run an external command. It looks like this: system("ls"). Notice that system will print...
Read more >The system() method in Ruby. - Bhawsartanmay - Medium
Yes, we can run any system command with the help of ruby code. We can run system(eg. shell) commands through the system() method....
Read more >Executing external commands · Ruby Scripting
Ruby has various ways to execute external commands; Use system if the program should wait for the issued command to finish and ......
Read more >Getting output of system() calls in Ruby - Stack Overflow
As far as I can say only system and Open3. popen3 do provide a secure/escaping variant in Ruby 1.8. In Ruby 1.9 IO::popen...
Read more >Running the simple Ruby system - gem5
Now, we can run our system with the MSI protocol! As something interesting, below is a simple multithreaded program (note: as of this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works perfectly, thank you @hiroyuki-sato 😃
@thiagogsr
I asked embulk users who is familiar about Bundler. Please try the following step.
Prepare
embulk_bundle
directoryDirectory layout is the following.
Edit embulk_bundle/Gemfile like the following.
Install your plugins into embulk_bundle path with
embulk bundle install
Edit Rake file
Use
Bundler.with_clean_env
andembulk -b embulk_bundle