LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install wget and configure (https://www.linuxquestions.org/questions/linux-newbie-8/install-wget-and-configure-4175439886/)

casperdaghost 12-03-2012 10:10 PM

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?

pan64 12-04-2012 12:37 AM

you would need to read the documentation. in general you can use any dir.

sarath@slashroot.in 12-04-2012 01:08 AM

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

casperdaghost 12-05-2012 01:30 AM

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

routers 12-05-2012 02:14 AM

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

markush 12-05-2012 02:26 AM

Quote:

Originally Posted by casperdaghost (Post 4843007)
...
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

casperdaghost 12-06-2012 01:37 PM

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

markush 12-06-2012 01:53 PM

Quote:

Originally Posted by casperdaghost (Post 4844008)
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

pan64 12-07-2012 12:33 AM

Quote:

Originally Posted by casperdaghost (Post 4844008)
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

casperdaghost 01-19-2013 01:28 PM

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.

pan64 01-20-2013 02:51 AM

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)


All times are GMT -5. The time now is 05:04 PM.