LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-03-2012, 10:10 PM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 343

Rep: Reputation: 16
install wget and configure


i have a mac and want to install wget.

http://www.makeuseof.com/tag/wget-mac/

I have to download these files
untar them...

xz -d wget-1.13.tar.xz
tar -xf wget-1.13.tar

Change into the new wget directory and run these commands in order:

cd wget-1.13
./configure
make
sudo make install

thing is i never know which directory to untar them to - it is in the
Downloads directory now. where should i put these files?
 
Old 12-04-2012, 12:37 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,447

Rep: Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210
you would need to read the documentation. in general you can use any dir.
 
Old 12-04-2012, 01:08 AM   #3
sarath@slashroot.in
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
Hi,

Actually your question is not quite clear...If you are asking how to install from the tar ball...then the steps mentioned by you is enough for the installation.
Normally the configure,make and make install script will install the application(you dont need to worry about the path's). However some applications do have options to specify the installation directory, like ./configure --prefix <LOCATION>. Where location is the directory where you want to install. You can try something like ./configure --help.

And if you want more information on wget options and usage then http://www.slashroot.in/wget-command-usage-and-examples might be useful...

Regards
 
Old 12-05-2012, 01:30 AM   #4
casperdaghost
Member
 
Registered: Aug 2009
Posts: 343

Original Poster
Rep: Reputation: 16
SO I am going to install the perl module HTML::TreeBuilder to my mac, because it does not come with the nativ eperl installation.


the MCPAN is not working
********
make test had returned bad status, won't install without force
Macintosh:casperdaghost$ perl -MCPAN -e 'install HTML::TreeBuilder'
*******
so here are the directions:

Code:
 
1. Download the tarball file from www.cpan.org to your computer

2. Decompress and unpack the tarball file:

gzip -dc file.tar.gz | tar xvf -

3. Go into the folder that was created by the previous command

4. Build the module executing the 

 commands:

perl Makefile.PL
make
make test
5. If everything went well so far, install the module:
make install  is
however notice, in no 1 - they say to download the tarball - but they do not say where to download it to. that is what i am asking - what is the acceptable place - in linux nomenclature - to download these files . if i untar this from the Download directory, that where is uncompresses to.
compiled netcat from my home directory. - it seems wrong
i
 
Old 12-05-2012, 02:14 AM   #5
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
dear OP
sometime when you see page in the web it is look like tutorial but that is incomplete
because some of them make tutorial for them self not for public and some of them make tutorial is not for
beginner user , mean that note is for most advance user

same for me , i have a website that purpose for note in technical but only can be followed by half intermediate user.


then what you need to do is google, just example i google then i found ftp://ftp.gnu.org/gnu/wget/
so many file is there, you can take it as test to your system by following that incompleted example

so is there any problem here come linuxquestions is exist

cheers
 
Old 12-05-2012, 02:26 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by casperdaghost View Post
...
however notice, in no 1 - they say to download the tarball - but they do not say where to download it to. that is what i am asking - what is the acceptable place - in linux nomenclature - to download these files . if i untar this from the Download directory, that where is uncompresses to.
compiled netcat from my home directory. - it seems wrong
As pan64 wrote it doesn't matter (to) where you download the tarball. Only restriction is that you need writepermissions for the directory where you extract it. In Linux I use the /tmp/ directory for package-building. The download and the build-directory have nothing to do with the directory(s) where the package is installed, these are configured when ./configure runs or in your example Makefile.PL
In General you do
Code:
tar -xf package-xy.tgz
cd package-xy
./configure
make 
make install
Markus
 
Old 12-06-2012, 01:37 PM   #7
casperdaghost
Member
 
Registered: Aug 2009
Posts: 343

Original Poster
Rep: Reputation: 16
ok so configure makes the directory.

so shoild i download the file to bin and then compile it?

or shuld i download it ti usr and make a bin directory in there

where do all the cool linux people build their perl modules.

i have netcat built in my home directory and that seems uncool
 
Old 12-06-2012, 01:53 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by casperdaghost View Post
ok so configure makes the directory.

so shoild i download the file to bin and then compile it?

or shuld i download it ti usr and make a bin directory in there

where do all the cool linux people build their perl modules.

i have netcat built in my home directory and that seems uncool
Cool people install Perl modules from cpan with the cpan command.

I build other packages in /tmp/ and when I don't use a Slackbuild.script I do it in /tmp/ as a normal user, only the installation is done as root.

Markus
 
Old 12-07-2012, 12:33 AM   #9
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,447

Rep: Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210
Quote:
Originally Posted by casperdaghost View Post
ok so configure makes the directory.

so shoild i download the file to bin and then compile it?

or shuld i download it ti usr and make a bin directory in there

where do all the cool linux people build their perl modules.

i have netcat built in my home directory and that seems uncool
I as wrote you already you can build it anywhere you want, especially your home is fine (or a subdir inside). Using bin or usr is not cool at all
 
Old 01-19-2013, 01:28 PM   #10
casperdaghost
Member
 
Registered: Aug 2009
Posts: 343

Original Poster
Rep: Reputation: 16
I think i was just looking for the general accepted place to put programs that you compile. I could put them anwhere - but linux has conventiosn, and i was just wondering where netcat should, for a standpoint of conventions ' which directory should go.

Last edited by casperdaghost; 01-19-2013 at 01:32 PM.
 
Old 01-20-2013, 02:51 AM   #11
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,447

Rep: Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210
Yes, there are conventions, but also there is some freedom. For example there is a dedicated directory for the installed package (usually), and there is no way to restrict the user to do what he/she wants. So if you want to compile/build anything you can use any directory (in a real multiuser environment a subdir is suggested in your own home). It depends only on you. Probably better to have a subdir for your work to avoid mixing different packages.
configure will not make any directory but will use what you want. installation will copy the content to the destination directory. (and you can even remove that subdir afterward)
 
  


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
How to resume an interrupted wget using wget.log? misterJ Linux - Software 2 06-19-2011 01:21 PM
Configure Php for wget.....Anybody????? rajnair0278 Linux - Software 2 03-21-2006 02:30 AM
wget won't install from ports :-( purpaboo *BSD 1 08-19-2004 05:46 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
How to install wget sofasurfer Linux - Software 2 12-18-2003 06:09 AM


All times are GMT -5. The time now is 11:03 PM.

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