LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-30-2008, 01:35 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
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?
 
Old 07-30-2008, 01:46 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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.
 
Old 07-30-2008, 02:17 AM   #3
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
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.
 
Old 07-30-2008, 02:24 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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.
 
Old 07-30-2008, 02:27 AM   #5
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
ok i will do it and let you know
Thanks for you help
 
Old 07-30-2008, 03:00 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,492

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with wget... "Temporary failure in name resolution" beantier Linux - Newbie 1 04-19-2008 03:49 AM
How to "wget" this kind of link sadohert Linux - Software 5 01-11-2008 04:34 PM
wget fails when i want to download from a URL which contains "=" or "&' noware Linux - General 7 11-13-2005 07:35 AM
"Using wget command" manikantha Linux - General 3 05-02-2005 01:57 AM
Can any body tell me if "wget" is an C program? wuzhong Linux - Networking 2 09-17-2004 02:00 PM


All times are GMT -5. The time now is 10:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration