Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
...
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
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.