I installed an updated OpenSSL on Solaris 11.3 running on Intel hardware. OpenSSL needs its path adjusted because the gear was installed in /usr/local.

According to Changing ELF Runpaths on the Oracle blogs, I am supposed to be able to:

root@solaris:/usr/local/lib# rpath /usr/local/lib:rpath libcrypto.so.1.0.0 
-bash: rpath: command not found

I can't seem to locate it or install it:

# find / -name rpath
# pkg install rpath

pkg install: The following pattern(s) did not match any allowable packages.  Try
using a different matching pattern, or refreshing publisher information:


Where is the rpath utility, or how do I install it?

1 Answer 1


The blog says it is a program which you can download and compile:

Eventually, Solaris will ship with a standard utility for modifying runpaths. However, there is no need to wait. I have written an unofficial test program I call 'rpath' that you can download and build. To build rpath, you will need a version of Solaris Nevada newer than build 61, or a recent version of OpenSolaris.

That blog entry was dated Jun 12, 2007. @AlanC comments that the official tool was announced later (Nov 02, 2007) on the same blog. In that entry, the tool is named elfedit.

You may not have noticed this because the blog entry does not mention rpath (the wording is "Changing runpaths", likewise the manual page does not use that term). The two names are related in a different blog Land of Erik: Changing the RPATH of a binary from June 2009.

Since you have posted in the CentOS topic, you might have in mind chrpath or patchelf which would run on Linux systems. The latter predates the Solaris blog (see github repository).

Further reading:

  • 1
    Since that blog was written, the standard utility has been made available in Solaris 11 as well - elfedit - if you don't want to have to compile anything. It was discussed in a post a few months later on the same blog - blogs.oracle.com/ali/entry/introducing_elfedit_a_tool_for .
    – alanc
    Commented Nov 14, 2016 at 3:32
  • @alanc - it looks like the third blog in the series (Avoiding LD_LIBRARY_PATH: The Options) provides the recipes). Do you want to answer? I can provide an answer, but you really deserve it.
    – user56041
    Commented Nov 14, 2016 at 11:03
  • @jww - go ahead, I don't have time right now to write up a full answer.
    – alanc
    Commented Nov 14, 2016 at 18:48

You must log in to answer this question.