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 have installed Solaris 10 and also some programs like wget and vim however, when I try to run them it says "not found".
I need to figure out how to edit the Path but I'm super confused about all the directories and I don't even know which ones I need to add to path.
The default was /usr/bin:/usr/ucb:/etc:.
I added usr/local/bin to the end of that in .profile using vi, but I'm not sure that even did anything! Or maybe that means the programs I downloaded are not located there. Please help if you can!
It is quite possible that this does not even make sense because I have never used this before and I don't have a clue what I am doing! Thanks for any advice! )
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Rep:
Well, you should know where those files were installed. If you don't, you can try to find them with find. Typical locations are:
/usr/sfw/bin
/usr/gnu/bin
/opt/csw/bin
/opt/sfw/bin
/usr/local/bin
Once you know the paths, .profile is a good option to set the path for your users. Path can be overridden also in /etc/default/login, which affects all the users.
I need to figure out how to edit the Path but I'm super confused about all the directories and I don't even know which ones I need to add to path.
The default was /usr/bin:/usr/ucb:/etc:.
I added usr/local/bin to the end of that in .profile using vi, but I'm not sure that even did anything! Or maybe that means the programs I downloaded are not located there. Please help if you can!
After you change your path in .profile, you have to logout and log back in. If you only need the new version of the path in a shell, you can put the modification in .bashrc and open a new terminal window.
I used find to find the files...vim is located in usr/local
so I added that to my path in .profile (plus all the ones from the previous post)and now instead of the Not found error, I get one that says this (when i try to create a file using vim):
ld.so.1: vim: fatal: libncurses.so.5: open failed: No such file or directory
Killed
So obviously it is telling me that i am missing something.libncurses.so.5. At the risk of sounding silly, do you think that means that vim did not install correctly?
And also, thank you for the log out tip...i did not know that!
btw, after the last post I went back to the download site and i thought you would like to know...if only to laugh, that the reason it was giving me an error is because i did not download the three dependencies that are required. I only downloaded two. Funny that i missed the one called curses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.