Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I downloaded and compiled Sudo from sudo.ws
however when I install my compiled version of Sudo on a Solaris machine that doesn't have gcc I get the following errors.
libintl.so.8 => (file not found)
libiconv.so.2 => (file not found)
Read through the documents in the sudo build file set, and there are build options. I no longer remember the exact syntax, but you can set STATIC and compile to a single larger executable that includes all of the dependencies rather than using the dynamic calls. It creates a larger package, and is arguably less secure since security updates to those packages will be ignored until your next build.
.so files are dynamically linked, so they have to be present everytime you run the program.
Copy those library files into /usr/lib or /usr/local/lib or something. (Assuming these computers are all of the same architecture -- i.e. UltraSPARC or x86_64, etc.)
If you put it in /usr/local/lib (or anywhere else), make sure that directory is in your LD_LIBRARY_PATH environment variable.
Is it possible to compile from source without those dependencies?
As noted by wpeckham, there should be a way to build it with all static libraries. But this is not recommended since you'll end up with a much larger binary and no bug fixes or improvements in upgraded libraries will be automatically included in your program.
Read through the documents in the sudo build file set, and there are build options. I no longer remember the exact syntax, but you can set STATIC and compile to a single larger executable that includes all of the dependencies rather than using the dynamic calls. It creates a larger package, and is arguably less secure since security updates to those packages will be ignored until your next build.
Thank you for all the suggestions guys. Its all working
Yes, I'd also like to know what your solution was.
Also, these are GNU items, so on Solaris 11.3, they probably should live in /usr/gnu, so if you needed to install them, they should probably go there, making sure the appropriate directories are in the appropriate environment PATHs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.