Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to add those two to my paths.

Thus, my plan is to check first if they're already in my machine, and if they are, I'll add them to my path. Otherwise, I'll install them first then add them to my path.

Thanks

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

To see if the files are installed on your system you can use:

egrep 'crt(begin|end)' /var/sadm/install/contents

If they aren't installed, you can grep for them in the Solaris install media:

egrep 'crt(begin|end)' /cdrom/cdrom0/Solaris_10/Product/*/pkgmap

share|improve this answer
add comment

They can belong to different packages, especially as you don't tell the full path to them. Assuming you are talking about the gcc run-time objects crtbegin.o and crtend.o, one would be SUNWgcc.

share|improve this answer
add comment

see: http://www.tech-recipes.com/rx/328/find-which-package-a-file-belongs-to/

google search returns a lot for "solaris file belongs to package"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.