0

I installed fpm by using a command:

rvm @global do gem install --no-user-install -no-ri --no-rdoc --bindir /usr/local/bin/ fpm

on docker image. But I could only execute the fpm command in /bin/bash mode, and couldn't with /bin/sh mode as shows an error:

/usr/bin/env: ruby_executable_hooks: No such file or directory

therefore, build job was failed when running the jenkins build.

How can I fix this?

Holger Just
  • 52,918
  • 14
  • 115
  • 123
  • Make sure that your PATH contains the directory where the program `ruby_executable_hooks` is located. – user1934428 Mar 18 '20 at 15:30
  • @user1934428, how to provide the path? Is making local PATH variable enough or are you talking about global variables? – Paulius Vindzigelskis Jun 05 '20 at 15:04
  • We are talking about bash here. **Local** variables are those which are defined locally in a function, and I don't see where bash functions play a role in your question. `PATH` is commonly an **environment** variable, and it is for sure already set to some value (just do a `echo $PATH`). To this, you have to append the directory which should be included in the list. Note that the directories need to be separated by a colon in the PATH variable, except when running on Windows, where the separation character is a semicolon. – user1934428 Jun 06 '20 at 18:42

0 Answers0