LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


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: 63
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: 63
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: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration