LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   wget not working! but "man wget is" ??? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/wget-not-working-but-man-wget-is-659180/)

wrapster 07-30-2008 01:35 AM

wget not working! but "man wget is" ???
 
Hi all,

I was trying to use wget command!
but all i can access is the man page and thats it!
when ever i try using wget with url, i get "command not found" indication?
do i need to install any dependencies to get it working?

Mr. C. 07-30-2008 01:46 AM

Like this?

-bash: wget: command not found

This means you don't have either wget's directory in your PATH, don't have it installed, or it is not executable by you. The first two are the most likely options.

wrapster 07-30-2008 02:17 AM

Yeah you where right!!
Apparently the pkg is present but not in the PATH
a ./wget <url>
IS working but some errors being thrown up.

Mr. C. 07-30-2008 02:24 AM

Sometimes I get lucky.

Add wget's directory to your PATH. Assuming it is in /usr/local/bin :

PATH=$PATH:/usr/local/bin

and place this in your shell startup file (eg. .bashrc, .profile, ,kshrc).

I can't guess what the other errors are.

wrapster 07-30-2008 02:27 AM

ok i will do it and let you know
Thanks for you help

jlliagre 07-30-2008 03:00 AM

The location of many Gnu commands including wget is /usr/sfw/bin under Solaris.

You can add /usr/sfw/bin to the PATH and SUPATH variables in the /etc/default/login file.


All times are GMT -5. The time now is 08:09 PM.