1753514 Members
7873 Online
108795 Solutions
New Discussion юеВ

gtar - how to install

 
SOLVED
Go to solution
BrianDoyle
Trusted Contributor

gtar - how to install

Hi,
Downloaded gtar as well as all the dependencies.
Installed the dependencies first without problem.
Then for the tar-122.tar i did tar -xvf on it and in the tar-122 directory I did the commands:
./configure
make
make install

All seem to have went smoothly. I don't have gtar listed as a command anywhere.

# which gtar
no gtar in /usr/sbin /usr/bin /usr/ccs/bin /usr/contrib/bin /usr/contrib/Q4/bin /opt/perl/bin /opt/ipf/bin /opt/nettladm/bin /opt/fcms/bin /opt/wbem/bin /opt/wbem/sbin /opt/sas/bin /opt/graphics/common/bin /opt/atok/bin /usr/bin/X11 /usr/contrib/bin/X11 /opt/sec_mgmt/bastille/bin /opt/drd/bin /opt/dsau/bin /opt/dsau/sbin /opt/resmon/bin /opt/firefox /opt/gnome/bin /usr/contrib/kwdb/bin /opt/mozilla /opt/perl_32/bin /opt/perl_64/bin /opt/sfm/bin /opt/swm/bin /opt/sec_mgmt/spc/bin /opt/ssh/bin /opt/swa/bin /opt/hpsmh/bin /opt/thunderbird /opt/gwlm/bin /usr/local/bin /opt/ignite/bin /sbin /home/root


How do I know if it installed correctly?
HP-UX 11.31
10 REPLIES 10
Michal Kapalka (mikap)
Honored Contributor

Re: gtar - how to install

hi,

use find command to find the binary app, it is not in the $PATH variable.

mikap
DeafFrog
Valued Contributor

Re: gtar - how to install

Hello Yalla ,

your in stallatio process is correct.this is from my system :

# whereis tar
tar: /sbin/tar /usr/bin/tar /usr/local/bin/tar /usr/share/man/man1.Z/tar.1 /usr/share/man/man4.Z/tar.4

so can you please check in /usr/local/bin to find the gnu tar.
FrogIsDeaf
Vivek Bhatia
Trusted Contributor

Re: gtar - how to install

Hi Yalla,

Use the commands to check where is the gtar command.

#find / -name gtar

#whereis gtar

After that you can set the path by running

export PATH=$PATH:/NEW_PATH

Regards
Vivek
Nido
Trusted Contributor

Re: gtar - how to install

Hello,

For future installs, not now :-)
>>>>./configure
You can run ./configure with prefix like below:

./configure --prefix=PREFIX_PATH
This install architecture-independent files in PREFIX_PATH. When you run make install, libraries will be placed in PREFIX_PATH/lib, executables in PREFIX_PATH/bin, and so on.

By default all lib/bin files go to /usr/local if you don't define any argument in ./configure.

Check the Binaries under /usr/local or in the current path from where you run 'make install' else run `find`


Cheers!!
" Let Villagers Be Happy!! "
Steven Schweda
Honored Contributor

Re: gtar - how to install

> [...] I don't have gtar listed as a command
> anywhere.

Perhaps because the GNU people think of
"gtar" as "tar". Did you look at what "make
install" actually did? Did you look for
"tar" in "/usr/local/bin"?

I normally do something like this:

ln -s tar /usr/local/bin/gtar
Dennis Handly
Acclaimed Contributor

Re: gtar - how to install

>Steven: I normally do something like this:
> ln -s tar /usr/local/bin/gtar

Did you want that reversed?
ln -s gtar /usr/local/bin/tar
Dennis Handly
Acclaimed Contributor

Re: gtar - how to install

>ME: Did you want that reversed?

(Never mind, you had it right.)
Shinji Teragaito_1
Respected Contributor
Solution

Re: gtar - how to install

As Nido said, /usr/local is the default prefix.

As Steven said, your GNU tar is installed in /usr/local/bin as
tar, not gtar.

% /usr/local/bin/tar --version
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
%
Steven Schweda
Honored Contributor

Re: gtar - how to install

> (Never mind, you had it right.)

As a VMS user (and an easily entertained one,
at that), I take some small satisfaction in
remembering that "ln" arguments are the
reverse of "ls" output. I just say to
myself, "UNIX is backward", every time I use
"ln -s", and smile (smirk?) inwardly.

It's not altogether illogical, it's just not
altogether consistent. Of course,
SET FILE /ENTER may not win any prizes,
either.