If environment variable LEATHERMAN_RUBY is unset, how facter find the ruby library?

asked 2016-11-04 04:01:41 -0500

CYK gravatar image

updated 2016-11-04 04:02:32 -0500

doc: The environment variable LEATHERMANRUBY can be used to explicitly instruct native Facter to use a particular Ruby library (e.g. LEATHERMANRUBY=/usr/local/lib/libruby.so.1.9.3). If not set, native Facter will search for and load the highest version Ruby library on the system.

As it said, when i set environment variable LEATHERMAN_RUBY=/usr/local/puppetall-4.5.2/lib/libruby.so.2.2.0, facter run with no warning. But if unset it , facter run with warning: 2016-11-04 08:46:53.615730 WARN puppetlabs.facter - could not locate a ruby library: facts requiring Ruby will not be resolved

image description

why it could not find the ruby library? (the facter3.3.0 build from tarball )

edit retag flag offensive close merge delete