1833130 Members
3356 Online
110051 Solutions
New Discussion

set RANLIB to /bin/true

 
GBR
Regular Advisor

set RANLIB to /bin/true

Can someone explain to me what "setting RANLIB to /bin/true" means and how to do it when I'm trying to configure and compile some new software?

GBR
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: set RANLIB to /bin/true

Greg,

Not having any context to go on other than what you gave, I would guess at doing something like this:

export RANLIB=/bin/true


Pete

Pete
spex
Honored Contributor

Re: set RANLIB to /bin/true

GBR,

'ranlib' generates an index for an archive library. Its use is now deprecated, so you should replace references to 'ranlib' in makefiles with '/bin/true'. This will yield a return code of 0 for each instance.

PCS
GBR
Regular Advisor

Re: set RANLIB to /bin/true

Pete,
Thanks, I will try your suggestion.

spex,
Thanks, for your explanation.

Greg
James R. Ferguson
Acclaimed Contributor

Re: set RANLIB to /bin/true

Hi Greg:

First, the 'bin' path in HP-UX is deprecated. It is really a transition link to '/usr/bin'.

That aside, '/usr/bin/true' simply returns an exit code of zero (0). Correspondingly, '/usr/bin/false' yields an exit code of one (1). Neither does anything else!

One uses '/usr/bin/false' or '/usr/bin/true' for instance, in lieu of the shell program for users in '/etc/passwd' to deny a login.

Regards!

...JRF...
Peter Nikitka
Honored Contributor

Re: set RANLIB to /bin/true

Hi,

when running 'configure' in preparation for compiling public software packages, do it like this:
./configure -- RANLIB=/usr/bin/true ...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
GBR
Regular Advisor

Re: set RANLIB to /bin/true

Thanks Peter, I'm going to modify my command line arguments to include that.
GBR
Regular Advisor

Re: set RANLIB to /bin/true

With Peter's response both of my questions have been answered. Perfect!

Closing.